function c2() { c3(); }
for ($j = 0; $row2 = @pg_fetch_assoc($rs2, $j); $j++) { if ($ostation != $row2["station"]) { if ($stfound > 0 && $stfound % 3 == 0) { $table .= "</td></tr>"; $ostation = ""; } if ($ostation == "") { $table .= "<tr><td valign='top'>"; } else { $table .= "</td><td valign='top'>"; } $ostation = $row2["station"]; $stfound += 1; $table .= sprintf("<u>UGC Code: %s</u><br/>", $station2ugc[$row2["station"]]); } $table .= sprintf("%s %sZ %s/%.0f %s %s %s%s<br>", $row2["station"], $row2["z"], c4($row2["tmpf"]), $row2["dwpf"], c1(relh(f2c($row2["tmpf"]), f2c($row2["dwpf"]))), c3($row2["vsby"]), c2($row2["sknt"], $row2["gust"]), c5($row2["wcht"])); } $table .= "</td></tr></table>"; } $t->content = <<<EOF <h2>NWS Watch/Warning/Advisory + ASOS Observations</h2> <p>This app allows you to view an office's warnings for a year and then looks for ASOS/AWOS observations valid for the warning period. The observations presented are coded like: <br />ID DDHHMI TMPF/DWPF RELH VSBY SKNT/GUST WC WINDCHILL <br />Where ID is the station identifier, DDHHMI is the day-hour-minute of the observation in UTC, TMPF is the air temperature in Fahrenheit, DWPF is the dew point temperature in Fahrenheit, RELH is the relative humidity, VSBY is the visibility, SKNT is the wind speed in knots and GUST is the wind gust in knots. The wind chill is displayed when the temperature is below 32°F.