<?php
require_once "../../config/settings.inc.php";
define("IEM_APPID", 25);
require_once "../../include/myview.php";
$t = new MyView();
require_once "../../include/forms.php";
require_once "../../include/mlib.php";

$t->title = "Other Data Networks";

$y1select = yearSelect(2012, 2012, "year1");
$m1select = monthSelect(1, "month1");
$d1select = daySelect(1, "day1");
$y2select = yearSelect(2012, date("Y"), "year2");
$y24select = yearSelect(2024, 2024, "year1");
$m2select = monthSelect(date("m"), "month2");
$d2select = daySelect(date("d"), "day2");
$y12select = yearSelect(2003, 2003, "year1");
$y22select = yearSelect(2003, date("Y"), "year2");
$y242select = yearSelect(2024, date("Y"), "year2");
$y13select = yearSelect(2013, 2013, "year1");
$y23select = yearSelect(2013, date("Y"), "year2");
$nselect = networkSelect("OT", "");

$t->content = <<<EOM
<h3>Other Data Networks</h3>

<p>This page contains links to miscellaneous IEM networks and standalone
stations.  The <a href="/schoolnet/">School-based Network</a> is no longer
collected and the <a href="/projects/iao/">Iowa Atmospheric Observatory</a>
equipment has been removed.</p>

<h3>Agronomy Hall, ISU:</h3>

<div class="card mb-4">
    <div class="card-body">
        <ul class="mb-0">
            <li><a href="/other/current.phtml">Sortable Currents</a></li>
            <li><a href="/plotting/mesoeast/">Ames (Northern, Dave Flory)</a></li>
            <li><a href="/plotting/mesonorth/ot_10min.phtml">Indoor Temperature for Met Cluster Room</a>, B548 Agronomy Hall.  Outfitted with 4 One-Wire sensors reporting every minute.</li>
            <li><a href="/plotting/isumet/ams2.phtml">ISU AMS Station</a>, On the roof.  Davis Vantage Pro 2, installed 8 Sep 2011.
            <a href="/request/daily.phtml?network=OT">Download daily summaries</a> for station.</li>
        </ul>
    </div>
</div>

<h3>City of Ames</h3>

<div class="card mb-4">
    <div class="card-body">
        <ul class="mb-0">
            <li><a href="daily_plot.phtml?station=OT0008&year=2007&month=2&day=13">Reiman Gardens station</a>, only some limited data from 2007 for the site.</li>
        </ul>
    </div>
</div>

<h3>Stuart Smith Park Hydrology Learning Lab, Ames</h3>

<p>These are four ground water monitoring wells and a stream gauge located at
the Stuart Smith Park in Ames.  These data are used by the Geology 100 class, but
are freely available to others.

<div class="row">
<div class="col-md-6">
<div class="card card-body">

<h4>Download Stream Gage Data ("Bubbler")</h4>
<form method="GET" action="/cgi-bin/request/ss.py" name="bubbler">
<input type="hidden" name="opt" value="bubbler" />
<table class="table table-bordered">
<tr>
 <th>Start Date:</th>
  <td>{$y1select}</td>
  <td>{$m1select}</td>
  <td>{$d1select}</td></tr>

<tr>
 <th>End Date:</th>
  <td>{$y2select}</td>
  <td>{$m2select}</td>
  <td>{$d2select}</td></tr>

</table>
<div class="form-check mb-3">
<input type="checkbox" name="excel" value="yes" id="ex1" class="form-check-input" />
<label for="ex1" class="form-check-label">Download as Excel File</label>
</div>
<input type="submit" value="Request Data" class="btn btn-primary" />
</form>

</div>
</div><div class="col-md-6">
<div class="card card-body">

<h4><i class="bi bi-download" aria-hidden="true"></i> Download Ground Monitoring Well Data</h4>
<form method="GET" action="/cgi-bin/request/ss.py" name="gage">
<input type="hidden" name="opt" value="gage" />
<table class="table table-bordered">
<tr>
  <td rowspan="2"><strong>Select Station(s):</strong><br />
  <select multiple size="4" name="station" class="form-select">
   <option value="9100131">SSP #1</option>
   <option value="9100104">SSP #6</option>
   <option value="9100156">SSP #7</option>
   <option value="9100135">SSP #8</option>
  </select>
  </td>
  <th>Start Date:</th>
  <td>{$y1select}</td>
  <td>{$m1select}</td>
  <td>{$d1select}</td></tr>

<tr>
 <th>End Date:</th>
  <td>{$y2select}</td>
  <td>{$m2select}</td>
  <td>{$d2select}</td></tr>

</table>
<div class="form-check mb-3">
<input type="checkbox" name="excel" value="yes" id="ex2" class="form-check-input" />
<label for="ex2" class="form-check-label">Download as Excel File</label>
</div>
<input type="submit" value="Request Data" class="btn btn-primary" />
</form>

</div></div>

<div class="card mb-4">
    <div class="card-header">
    <h3 class="mb-0"><a name="purpleair"><i class="bi bi-file-earmark" aria-hidden="true"></i></a> ISU Agronomy Hall - Purple Air Quality Sensor</h3>
    </div>
    <div class="card-body">
        <p>Data is collected every minute since 26 April 2024.  Values represent a
        two minute average.</p>

        <form name="purple" action="/cgi-bin/request/purpleair.py">
        <table class="table table-bordered">
        <tr>
         <th>Start Date:</th>
          <td>{$y24select}</td>
          <td>{$m1select}</td>
          <td>{$d1select}</td></tr>

        <tr>
         <th>End Date:</th>
          <td>{$y242select}</td>
          <td>{$m2select}</td>
          <td>{$d2select}</td></tr>

        </table>
        <div class="d-flex gap-2">
        <button type="submit" name="excel" value="yes" class="btn btn-success">Download Excel File</button>
        <input type="submit" value="Download CSV" class="btn btn-primary">
        </div>
        </form>
    </div>
</div>

<div class="card mb-4">
    <div class="card-header">
        <h3 class="mb-0">ISU FEEL Data</h3>
    </div>
    <div class="card-body">
        <p>This data is provided by The National Laboratory for Agriculture and the Environment.</p>

        <form name="feel" action="/cgi-bin/request/feel.py">
        <table class="table table-bordered">
        <tr>
         <th>Start Date:</th>
          <td>{$y13select}</td>
          <td>{$m1select}</td>
          <td>{$d1select}</td></tr>

        <tr>
         <th>End Date:</th>
          <td>{$y23select}</td>
          <td>{$m2select}</td>
          <td>{$d2select}</td></tr>

        </table>
        <input type="submit" value="Request Data" class="btn btn-primary" />
        </form>
    </div>
</div>

<div class="card mb-4">
    <div class="card-header">
        <h3 class="mb-0">Raw Data Download!</h3>
    </div>
    <div class="card-body">
        <form name="dl" action="/cgi-bin/request/other.py">
        <table class="table table-sm table-bordered">
        <tr><th rowspan="2">Select Location: {$nselect}</th>
         <th>Start Date:</th>
          <td>{$y12select}</td>
          <td>{$m1select}</td>
          <td>{$d1select}</td></tr>

        <tr>
         <th>End Date:</th>
          <td>{$y22select}</td>
          <td>{$m2select}</td>
          <td>{$d2select}</td></tr>

        </table>
        <input type="submit" value="Request Data" class="btn btn-primary" />
        </form>
    </div>
</div>

<div class="card mb-4">
    <div class="card-header">
        <h3 class="mb-0">WMO BUFR Surface</h3>
    </div>
    <div class="card-body">
        <p>During December 2023, the IEM started an ingest of surface data
        disseminated via NOAA in BUFR format.  There are thousands of stations within
        this IEM classified network.  The processing remains a work-in-progress, but
        you can <a href="/request/wmo_bufr_srf.php">download data</a> and view a large
        <a href="/sites/networks.php?network=WMO_BUFR_SRF">network table</a> or
        <a href="/sites/locate.php?network=WMO_BUFR_SRF">station map</a> to see
        what is available.</p>
    </div>
</div>

EOM;

$t->render('single.phtml');
