コード例 #1
0
ファイル: index.php プロジェクト: muthulatha/iem
<?php

include "../../../config/settings.inc.php";
define("IEM_APPID", 78);
include_once "../../../include/myview.php";
$t = new MyView();
$t->title = "School Network Data Download";
include "../../../include/forms.php";
include "../../../include/imagemaps.php";
$nselect = networkMultiSelect(array("KCCI", "KIMT", "KELO"), '', array(), 'station[]');
$y1 = yearSelect2(2002, date("Y"), "year1");
$m1 = monthSelect(date("m"), "month1");
$d1 = daySelect2(date("d"), "day1");
$h1 = hourSelect(0, "hour1");
$y2 = yearSelect2(2002, date("Y"), "year2");
$m2 = monthSelect(date("m"), "month2");
$d2 = daySelect2(date("d"), "day2");
$h2 = hourSelect(0, "hour2");
$t->content = <<<EOF
<h3 class="heading">SchoolNet Data Download</h3>

<p>With this form, you can download schoolnet data.  The 
archive starts on <b>12 Feb 2002</b> for stations that were online at that
time.  You may want to consult a 
<a href="/sites/networks.php?network=KCCI&format=html">listing</a>
of when the IEM started to archive data from a site.  Data from the current
day is not dumped into this archive until Midnight.  This means that the most
recent data is from yesterday.</p>

<form method="GET" action="worker.php">
コード例 #2
0
ファイル: nexrad_storm_attrs.php プロジェクト: muthulatha/iem
\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
コード例 #3
0
ファイル: 1min.php プロジェクト: muthulatha/iem
$awos_archive_end = strtotime(get_iemprop("awos.1min.end"));
include "../../../include/imagemaps.php";
include "../../../include/forms.php";
$bogus = 0;
$ys1 = yearSelect2(1995, date("Y"), "year1");
$ms1 = monthSelect($bogus, "month1");
$ds1 = daySelect2($bogus, "day1");
$mi1 = minuteSelect($bogus, "minute1");
$hs1 = hour24Select($bogus, "hour1");
$ys2 = yearSelect2(1995, date("Y"), "year2");
$ms2 = monthSelect($bogus, "month2");
$ds2 = daySelect2($bogus, "day2");
$mi2 = minuteSelect($bogus, "minute2");
$hs2 = hour24Select($bogus, "hour2");
$aend = date('d M Y', $awos_archive_end);
$sselect = networkMultiSelect("AWOS", '', array(), 'station[]');
$t->content = <<<EOF
<ol class="breadcrumb">
 <li><a href="/AWOS/">AWOS Network</a></li>
 <li class="active">Download One Minute Data</li>
</ol>

<p>The Iowa Department of Transportation (DOT) manages the 
network of AWOS sensors in the state of Iowa.  While 20 minute interval data
is published to the world in real-time, they also collect one minute interval
data internally.  Each month, the DOT kindly provides us with the previous
month's archive of one minute data.  We process this data into our database
and make the observations available here for download.  Please don't make
giant data requests through this interface, instead feel 
free to email Daryl (akrherz@iastate.edu) and make your request.</p>