<commit_before><?php 
include("../../../config/settings.inc.php");
define("IEM_APPID", 3);
$network = isset($_REQUEST["network"]) ? substr($_REQUEST["network"],0,10) : "IACLIMATE";
include("$rootpath/include/iemprop.php");
$coop_archive_end = strtotime( get_iemprop("iaclimate.end") );
$TITLE = "IEM | COOP Data Download";
$THISPAGE = "networks-coop";
include("$rootpath/include/header.php"); 
include("$rootpath/include/network.php"); 
include("$rootpath/include/forms.php"); 
$nt = new NetworkTable($network);
$cities = $nt->table;
?>
<div class="text">

<p>This page allows you to download daily observations for the NWS COOP network.Some items of note:
<ul>
	<li>In general, the snowfall data is mostly there.  Some years are missing data.</li>
	<li>If you are looking to download the entire dataset, please check out <a href="http://mesonet.agron.iastate.edu/pickup/coop_data/">This Directory!</a></li>
	<li>If you find errors in the dataset, please let us know!  There are 
numerous folks working on the data quality of this important dataset 
and we are always interested in feedback.</li>
</ul></p>

<p>The quality controlled data <strong>for Iowa</strong> is currently updated 
to <?php echo date('d M Y', $coop_archive_end); ?>.  While data is available for dates up 
until yesterday, the values are estimated by the IEM.</p>

<p>Data is available from the following states: 
<a href="fe.phtml?network=ILCLIMATE">Illinois</a> ,
<a href="fe.phtml?network=INCLIMATE">Indiana</a> ,
<a href="fe.phtml?network=IACLIMATE">Iowa</a> ,
<a href="fe.phtml?network=KSCLIMATE">Kansas</a>,
<a href="fe.phtml?network=KYCLIMATE">Kentucky</a> ,
<a href="fe.phtml?network=MICLIMATE">Michigan</a> ,
<a href="fe.phtml?network=MNCLIMATE">Minnesota</a> ,
<a href="fe.phtml?network=MOCLIMATE">Missouri</a> ,
<a href="fe.phtml?network=NECLIMATE">Nebraska</a> ,
<a href="fe.phtml?network=OHCLIMATE">Ohio</a> ,
<a href="fe.phtml?network=NDCLIMATE">North Dakota</a> ,
<a href="fe.phtml?network=SDCLIMATE">South Dakota</a> ,
<a href="fe.phtml?network=WICLIMATE">Wisconsin</a>.

<form method="GET" action="dl.php" name="dlform">
<input type="hidden" name="network" value="<?php echo $network; ?>" />
<table>
<tr><td width="50%">

<p><h3 class="subtitle">1. Select Station:</h3>
<i>Select One or More or All stations in the network.</i><br />
<select name="station[]" size="5" MULTIPLE>
	<option value="_ALL">--Select ALL--
<?php
while (list($key,$val) = each($cities)){
    echo "<option value=\"$key\">[$key] ". $cities[$key]['name'] ." -- ". 
      substr($cities[$key]["archive_begin"],0,10) ."\n";
}

?>
</select>


<p><h3 class="subtitle">2. Select Start/End Time:</h3>
<i>Please note the start year in the station selector. Some sites start
in 1951 others are earlier. If you only want data for one day, set the
start and end times to the same value.</i>
<table>
  <tr>
    <td></td>
    <th>Year</th><th>Month</th><th>Day</th>
  </tr>

  <tr>
    <th>Start:</th>
    <td>
     <?php echo yearSelect2(1893, 1893, "year1"); ?>
    </td>
    <td>
     <?php echo monthSelect2(1, "month1"); ?>
    </td>
    <td>
     <?php echo daySelect2(1, "day1"); ?>
    </td>
  </tr>

  <tr>
    <th>End:</th>
    <td>
     <?php echo yearSelect2(1893, date("Y"), "year2"); ?>
    </td>
    <td>
     <?php echo monthSelect2(date("m"), "month2"); ?>
    </td>
    <td>
     <?php echo daySelect2(1, "day2"); ?>
    </td>
  </tr>
</table>

<p><h3 class="subtitle">3. Select Variables / Model Input Format:</h3>
<i>Select either one or more data variables or a predefined format that 
should work within the specified Model input format.  Please <a href="../../info/contact.php">contact us</a>
to have your format added to the list!</i>
<select size=5 name="vars[]" MULTIPLE>
  <option value="daycent">Model: DailyDayCent (no extra drivers)</option> 
  <option value="high">Variable: High Temperature [F]</option>
  <option value="low">Variable: Low Temperature [F]</option>
  <option value="precip">Variable: Rainfall [inch]</option>
  <option value="snow">Variable: Snowfall [inch]</option>
  <option value="snowd">Variable: Snow Depth (since 1991) [inch]</option>
</select>

</td><td valign="TOP">

<p><h3 class="subtitle">4. How to view?</h3>
<select name="what">
  <option value="download">Download to Disk
  <option value="view">View on-line
</select>

<p><h3 class="subtitle">5. Data Delimitation:</h3>
How shall the output values be seperated?
<br><select name="delim">
    <option value="comma">Comma
    <option value="space">Space
    <option value="tab">Tab
   </select>

<p>
<h3 class="subtitle">6. Include Lat / Lons?</h3><img src="<?php echo $rooturl; ?>/images/gisready.png">
 <select name="gis">
   <option value="no">No
   <option value="yes">Yes
 </select>
<commit_msg>precip<commit_after><?php 
include("../../../config/settings.inc.php");
define("IEM_APPID", 3);
$network = isset($_REQUEST["network"]) ? substr($_REQUEST["network"],0,10) : "IACLIMATE";
include("$rootpath/include/iemprop.php");
$coop_archive_end = strtotime( get_iemprop("iaclimate.end") );
$TITLE = "IEM | COOP Data Download";
$THISPAGE = "networks-coop";
include("$rootpath/include/header.php"); 
include("$rootpath/include/network.php"); 
include("$rootpath/include/forms.php"); 
$nt = new NetworkTable($network);
$cities = $nt->table;
?>
<div class="text">

<p>This page allows you to download daily observations for the NWS COOP network.Some items of note:
<ul>
	<li>In general, the snowfall data is mostly there.  Some years are missing data.</li>
	<li>If you are looking to download the entire dataset, please check out <a href="http://mesonet.agron.iastate.edu/pickup/coop_data/">This Directory!</a></li>
	<li>If you find errors in the dataset, please let us know!  There are 
numerous folks working on the data quality of this important dataset 
and we are always interested in feedback.</li>
</ul></p>

<p>The quality controlled data <strong>for Iowa</strong> is currently updated 
to <?php echo date('d M Y', $coop_archive_end); ?>.  While data is available for dates up 
until yesterday, the values are estimated by the IEM.</p>

<p>Data is available from the following states: 
<a href="fe.phtml?network=ILCLIMATE">Illinois</a> ,
<a href="fe.phtml?network=INCLIMATE">Indiana</a> ,
<a href="fe.phtml?network=IACLIMATE">Iowa</a> ,
<a href="fe.phtml?network=KSCLIMATE">Kansas</a>,
<a href="fe.phtml?network=KYCLIMATE">Kentucky</a> ,
<a href="fe.phtml?network=MICLIMATE">Michigan</a> ,
<a href="fe.phtml?network=MNCLIMATE">Minnesota</a> ,
<a href="fe.phtml?network=MOCLIMATE">Missouri</a> ,
<a href="fe.phtml?network=NECLIMATE">Nebraska</a> ,
<a href="fe.phtml?network=OHCLIMATE">Ohio</a> ,
<a href="fe.phtml?network=NDCLIMATE">North Dakota</a> ,
<a href="fe.phtml?network=SDCLIMATE">South Dakota</a> ,
<a href="fe.phtml?network=WICLIMATE">Wisconsin</a>.

<form method="GET" action="dl.php" name="dlform">
<input type="hidden" name="network" value="<?php echo $network; ?>" />
<table>
<tr><td width="50%">

<p><h3 class="subtitle">1. Select Station:</h3>
<i>Select One or More or All stations in the network.</i><br />
<select name="station[]" size="5" MULTIPLE>
	<option value="_ALL">--Select ALL--
<?php
while (list($key,$val) = each($cities)){
    echo "<option value=\"$key\">[$key] ". $cities[$key]['name'] ." -- ". 
      substr($cities[$key]["archive_begin"],0,10) ."\n";
}

?>
</select>


<p><h3 class="subtitle">2. Select Start/End Time:</h3>
<i>Please note the start year in the station selector. Some sites start
in 1951 others are earlier. If you only want data for one day, set the
start and end times to the same value.</i>
<table>
  <tr>
    <td></td>
    <th>Year</th><th>Month</th><th>Day</th>
  </tr>

  <tr>
    <th>Start:</th>
    <td>
     <?php echo yearSelect2(1893, 1893, "year1"); ?>
    </td>
    <td>
     <?php echo monthSelect2(1, "month1"); ?>
    </td>
    <td>
     <?php echo daySelect2(1, "day1"); ?>
    </td>
  </tr>

  <tr>
    <th>End:</th>
    <td>
     <?php echo yearSelect2(1893, date("Y"), "year2"); ?>
    </td>
    <td>
     <?php echo monthSelect2(date("m"), "month2"); ?>
    </td>
    <td>
     <?php echo daySelect2(1, "day2"); ?>
    </td>
  </tr>
</table>

<p><h3 class="subtitle">3. Select Variables / Model Input Format:</h3>
<i>Select either one or more data variables or a predefined format that 
should work within the specified Model input format.  Please <a href="../../info/contact.php">contact us</a>
to have your format added to the list!</i>
<select size=5 name="vars[]" MULTIPLE>
  <option value="daycent">Model: DailyDayCent (no extra drivers)</option> 
  <option value="high">Variable: High Temperature [F]</option>
  <option value="low">Variable: Low Temperature [F]</option>
  <option value="precip">Variable: Precipitation (rain+melted snow) [inch]</option>
  <option value="snow">Variable: Snowfall [inch]</option>
  <option value="snowd">Variable: Snow Depth (since 1991) [inch]</option>
</select>

</td><td valign="TOP">

<p><h3 class="subtitle">4. How to view?</h3>
<select name="what">
  <option value="download">Download to Disk
  <option value="view">View on-line
</select>

<p><h3 class="subtitle">5. Data Delimitation:</h3>
How shall the output values be seperated?
<br><select name="delim">
    <option value="comma">Comma
    <option value="space">Space
    <option value="tab">Tab
   </select>

<p>
<h3 class="subtitle">6. Include Lat / Lons?</h3><img src="<?php echo $rooturl; ?>/images/gisready.png">
 <select name="gis">
   <option value="no">No
   <option value="yes">Yes
 </select>

{'fraction_non_alphanumeric': 0.19307813319349765, 'fraction_numerical': 0.013424226533822758, 'mean_word_length': 4.775893397940642, 'pattern_counts': {'":': 0, '<': 311, '<?xml version=': 0, '>': 313, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '897666', 'n_tokens_mistral': 3500, 'n_tokens_neox': 3394, 'n_words': 876}