width: 450px; height: 450px; border: 2px solid black; } </style> <p>This application plots a timeseries of data from an Iowa RWIS site of your choice. You can optionally select which variables to plot and for which time period in the archive.</p> <form method="GET" action="sf_fe.php" name="olselect"> EOF; if (strlen($station) > 0) { $ys = yearSelect2(1995, $syear, "syear"); $ms = monthSelect2($smonth, "smonth"); $ds = daySelect2($sday, "sday"); $ds2 = daySelect2($days, "days"); $nselect = networkSelect("IA_RWIS", $station); $c0 = iemdb('rwis'); $q0 = "SELECT * from sensors WHERE station = '" . $station . "' "; $r0 = pg_exec($c0, $q0); $row = @pg_fetch_array($r0, 0); $ns0 = $row['sensor0']; $ns1 = $row['sensor1']; $ns2 = $row['sensor2']; $ns3 = $row['sensor3']; pg_close($c0); $cgiStr = "&mode={$mode}&sday={$sday}&smonth={$smonth}&syear={$syear}&days={$days}&"; $table = "<table border=\"1\" cellpadding=\"3\" cellspacing=\"0\">\n <tr><th colspan=\"3\">Plot Options</th></tr>\n <tr><td><b>Restrict Plot:</b>\n <br><input type=\"checkbox\" name=\"limit\" value=\"yes\" "; if (isset($_GET["limit"])) {
\t\t<th>Format</th></tr></thead> <tr> <th></th> \t<th></th> <th>Year</th><th>Month</th><th>Day</th> <th>Hour</th><th>Minute</th> <td rowspan="3"><select name="fmt"> \t\t<option value="shp">ESRI Shapefile</option> \t\t<option value="csv">Comma Delimited</option> \t\t</select></td> </tr> <tr> <td rowspan='2'> EOF; $content .= networkMultiSelect(array("NEXRAD", "TWDR"), 'ALL', array("ALL" => "ALL"), "radar") . "</td>\n <th>Start:</th>\n <td>\n " . yearSelect2(2005, date("Y"), "year1") . "\n </td>\n <td>\n " . monthSelect2(0, "month1") . "\n </td>\n <td>\n " . daySelect2(0, "day1") . "\n </td>\n <td>\n " . gmtHourSelect(0, "hour1") . "\n </td>\n <td>\n " . minuteSelect(0, "minute1") . "\n </td>\n </tr>\n\n <tr>\n <th>End:</th>\n <td>\n " . yearSelect2(2005, date("Y"), "year2") . "\n </td>\n <td>\n " . monthSelect2(0, "month2") . "\n </td>\n <td>\n " . daySelect2(0, "day2") . "\n </td>\n <td>\n " . gmtHourSelect(0, "hour2") . "\n </td>\n <td>\n " . minuteSelect(0, "minute2") . "\n </td>\n </tr>\n</table>"; $content .= <<<EOF <p><input type="submit" value="Giveme data right now!"> </form> <h4>Shapefile DBF schema:</h4> <pre> Field 0: Type=C/String, Title='VALID', Timestamp in UTC Field 1: Type=C/String, Title='STORM_ID', 2 character Storm ID Field 2: Type=C/String, Title='NEXRAD', 3 character NEXRAD ID Field 3: Type=N/Integer, Title='AZIMUTH', Azimuth of storm in degrees from North Field 4: Type=N/Integer, Title='RANGE', Range of storm in miles from RDA Field 5: Type=C/String, Title='TVS', Tornado Vortex Signature Field 6: Type=C/String, Title='MESO', Mesocyclone strength (1=weak,25=strongest) Field 7: Type=N/Integer, Title='POSH', Probability of Hail Field 8: Type=N/Integer, Title='POH', Probability of Hail
$s1 = make_select("significance", $significance, $vtec_significance); $p2 = make_select("phenomena2", $phenomena2, $vtec_phenomena); $s2 = make_select("significance2", $significance2, $vtec_significance); $p3 = make_select("phenomena3", $phenomena3, $vtec_phenomena); $s3 = make_select("significance3", $significance3, $vtec_significance); $p4 = make_select("phenomena4", $phenomena4, $vtec_phenomena); $s4 = make_select("significance4", $significance4, $vtec_significance); $e2 = sprintf("<input type='checkbox' name='enabled2'%s>Include</input>", $enabled2 ? " checked='checked'" : ""); $e3 = sprintf("<input type='checkbox' name='enabled3'%s>Include</input>", $enabled3 ? " checked='checked'" : ""); $e4 = sprintf("<input type='checkbox' name='enabled4'%s>Include</input>", $enabled4 ? " checked='checked'" : ""); $y1 = yearSelect2(2005, $year1, 'year1'); $m1 = monthSelect2($month1, 'month1'); $d1 = daySelect2($day1, 'day1'); $h1 = gmtHourSelect($hour1, 'hour1'); $y2 = yearSelect2(2005, $year2, 'year2'); $m2 = monthSelect2($month2, 'month2'); $d2 = daySelect2($day2, 'day2'); $h2 = gmtHourSelect($hour2, 'hour2'); $t->content = <<<EOF <ol class="breadcrumb"> <li><a href="/nws/">NWS Resources</a></li> <li>WWA Product Counts by WFO</li> </ol> <h3>WWA Product Counts by WFO</h3> <p>This application generates a map of the number of VTEC encoded Watch, Warning, and Advisory (WWA) events by NWS Forecast Office for a time period of your choice. The archive of products goes back to October 2005. Note: Not all VTEC products go back to 2005. You can optionally plot up to 4 different VTEC phenomena and significance types.
<table class="table"> <thead><tr><th colspan="6">Time Interval</th> \t\t<th>Format</th></tr></thead> <tr> \t<th></th> <th>Year</th><th>Month</th><th>Day</th> <th>Hour</th><th>Minute</th> <td rowspan="3"><select name="fmt"> \t\t<option value="shp">ESRI Shapefile</option> \t\t<option value="csv">Comma Delimited</option> \t\t</select></td> </tr> <tr> EOF; $content .= "\n <th>Start:</th>\n <td>\n " . yearSelect2(2015, date("Y"), "year1") . "\n </td>\n <td>\n " . monthSelect2(0, "month1") . "\n </td>\n <td>\n " . daySelect2(0, "day1") . "\n </td>\n <td>\n " . gmtHourSelect(0, "hour1") . "\n </td>\n <td>\n " . minuteSelect(0, "minute1") . "\n </td>\n </tr>\n\n <tr>\n <th>End:</th>\n <td>\n " . yearSelect2(2015, date("Y"), "year2") . "\n </td>\n <td>\n " . monthSelect2(0, "month2") . "\n </td>\n <td>\n " . daySelect2(0, "day2") . "\n </td>\n <td>\n " . gmtHourSelect(0, "hour2") . "\n </td>\n <td>\n " . minuteSelect(0, "minute2") . "\n </td>\n </tr>\n</table>"; $content .= <<<EOF <p><input type="submit" value="Giveme data right now!"> </form> <h4>Shapefile DBF schema:</h4> <pre> Field 0: Type=C/String, Title='VALID', Timestamp in UTC Field 1: Type=C/String, Title='URGENT', Was this an urgent PIREP Field 2: Type=C/String, Title='AIRCRAFT', Reported Aircraft type Field 3: Type=C/String, Title='REPORT', The PIREP Report Field 4: Type=N/Double, Title='LAT', Latitude Field 5: Type=N/Double, Title='LON', Longitude </pre> <h4>Archive notes:</h4>
<?php include "../../../config/settings.inc.php"; include "../../../include/myview.php"; $t = new MyView(); $t->title = "Birthday Weather"; $t->thispage = "archive-birthday"; include "../../../include/forms.php"; include "../../../include/imagemaps.php"; $startYear = isset($_GET['startYear']) ? $_GET['startYear'] : 1951; $cselect = networkSelect("IACLIMATE", "IA0200", array(), "city"); $mselect = monthSelect2("1", "month"); $dselect = daySelect2("1", "day"); $t->content = <<<EOF <H3 class="heading">The Weather on your Birthday!!</H3> <BR> If you were born in Iowa between 1900 and 2005, you can fill out the form below and discover the weather conditions at a location near to you. Just follow the instructions below. <BR><BR> <form method="GET" action="/cgi-bin/onsite/birthday/getweather.py"> <p><H3 class="subtitle">1. Select the city nearest to you:</H3><p> {$cselect} <p><H3 class="subtitle">2. Enter your Birthdate:</H3><p> <table><TR><TH>Year:</TH><TH>Month:</TH><TH>Day:</TH></TR>
} </script> <style type='text/css'> #map { width: 100%; height: 200px; border: 2px solid black; } </style> EOF; $t->bodyextra = "onload=\"init();\""; $y1select = yearSelect2(2012, 2010, "year1"); $m1select = monthSelect2(1, "month1"); $d1select = daySelect2(1, "day1"); $y2select = yearSelect2(2012, 2010, "year2"); $m2select = monthSelect2(1, "month2"); $d2select = daySelect2(1, "day2"); $t->content = <<<EOF <h3>Soil Moisture & Ocean Salinity (SMOS) Satellite Data</h3> <p>The <a href="http://www.esa.int/SPECIALS/smos/">SMOS</a> satellite is a polar orbiting satellite operated by the European Space Agency. The satellite provides estimates of soil moisture in the approximate top 5 centimeters of soil and the amount of vegetation on the land surface. <a href="mailto:bkh@iastate.edu">Dr Brian Hornbuckle</a> leads a <a href="http://bkh.public.iastate.edu/research/index.html">local research team</a> here at Iowa State that works with this data. The IEM collects processed data from this satellite, generates analysis plots, and makes the raw data available. <h4>Download Data</h4> <p>This form allows you to download a single grid cell's worth of data based on
<?php // List out HPD data for a date and station of your choice require_once "../../config/settings.inc.php"; define("IEM_APPID", 91); require_once "../../include/myview.php"; require_once "../../include/imagemaps.php"; require_once "../../include/forms.php"; require_once "../../include/database.inc.php"; $station = isset($_GET["station"]) ? $_GET['station'] : null; $year = isset($_GET["year"]) ? $_GET["year"] : date("Y"); $month = isset($_GET["month"]) ? $_GET["month"] : date("m"); $day = isset($_GET["day"]) ? $_GET["day"] : date("d"); $yselect = yearSelect2(2008, $year, "year"); $mselect = monthSelect2($month, "month"); $dselect = daySelect2($day, "day"); $table = "<p>Please select a station and date.</p>"; if ($station) { $dbconn = iemdb('other'); $rs = pg_prepare($dbconn, "SELECT", "select * from hpd_alldata\n\t\t\tWHERE station = \$1 and valid >= \$2 and valid < \$3\n\t\t\tORDER by valid ASC"); $valid = mktime(0, 0, 0, $month, $day, $year); $sts = date("Y-m-d 00:00", $valid); $ets = date("Y-m-d 23:59", $valid); $rs = pg_execute($dbconn, "SELECT", array($station, $sts, $ets)); $table = '<table class="table table-striped"><tr><th>Valid</th><th>Precip</th><th>Counter</th><th>Temp C</th><th>Battery</th></tr>'; for ($i = 0; $row = @pg_fetch_assoc($rs, $i); $i++) { $table .= sprintf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>", $row["valid"], $row["calc_precip"], $row["counter"], $row["tmpc"], $row["battery"]); } $table .= "</table>"; } $t = new MyView();