<?php
require_once "../../config/settings.inc.php";
define("IEM_APPID", 66);

require_once "../../include/myview.php";
$t = new MyView();
$t->title = "GIS RADAR Information";
$t->content = <<<EOM

<h3>IEM Provided RADAR Information for GIS</h3>

<p>Our RadView project is an effort to get real time NWS NEXRAD information
into GIS applications.  We have no magic bullets for getting this information
into GIS systems, but have a number of things for you to try out!

<div class="alert alert-info">These services are provided with-out
warranty and with
program interfaces that may change or go away!</div>

<h3>Quick links to specific products</h3>
<div class="row">
        <div class="col-md-3">
<a href="/docs/nexrad_mosaic"><strong>NEXRAD Mosaic</strong><br />
<img src="/docs/nexrad_mosaic/example_raster.png" class="img img-fluid" /></a>
</div>
        <div class="col-md-3">
        <a href="ridge.phtml"><strong>Single RADAR Imagery</strong><br />
<img src="TLX_N0R_199905032356.png" class="img img-fluid" /></a>
</div>
        <div class="col-md-3">
        <a href="model.phtml"><strong>HRRR Reflectivity Imagery</strong><br />
<img src="/data/gis/images/4326/hrrr/refd_0060.png" class="img img-fluid" /></a>
</div>
        <div class="col-md-3">
<a href="/ogc/"><strong>OGC Web Services</strong><br />
<img src="olcode.png" class="img img-fluid" /></a>
</div>

</div>

<h3>News:</h3>
<ul>
 <li><strong>14 Jul 2017:</strong> Release the <a href="model.phtml">HRRR Model Forecasted Reflectivity</a> services.</li>
 <li><strong>28 Jan 2012:</strong> Release the <a href="ridge.phtml">Single Site NEXRAD</a> services.</li>
 <li><b>26 Apr 2004:</b> Add in links for the nationwide mosaics of NTP (storm total precip) and N1P (1 hour precip)!
 <li><b>13 Jan 2004:</b> Release the nationwide mosiac WMS!
 <li><b>16 Sep 2003:</b> Add US base reflectivity, remove Iowa NTP product.
 <li><b>04 Jul 2003:</b> The mosaic base reflectivity plot has been
greatly improved.  The geo-referencing is nearly perfect!
 <li><b>01 Jul 2003:</b> Initial release to the public.</li>
</ul>

<h3>NEXRAD + Mapserver Howto:</h3>

<br>Here is a <a href="/docs/radmapserver/">HOWTO</a> on generating NEXRAD
mosiacs with GEMPAK and then displaying them in Mapserver.  Feedback
is certainly welcome.<p>

<h3>Geo-referenced Images:</h3>

<br>Using geo-referenced images is probably the simpliest way of getting data
into your GIS.  Displaying timestamps and color bars are tricky business. The
following URLs contain pure RASTER data layers.

<table class="table table-striped">
<tr>
  <th>RADAR</th>
  <td><a href="https://epsg.org">EPSG Proj Code</a></td>
  <td>Data Files</td>
  <td>World File</td>
</tr>

<tr>
  <td>US Base Reflectivity (N0R) Composite<br>(generated every 5 minutes)</td>
  <td>4326<br> <i>(Lat-Lon)</i></td>
  <td>
  <ul>
   <li><a href="/data/gis/images/4326/USCOMP/n0r_0.png">PNG format</a></li>
   <li><a href="/data/gis/images/4326/USCOMP/n0r_0.tif">8bit TIFF</a></li>
   </ul>
   </td>
  <td><a href="/data/gis/images/4326/USCOMP/n0r_0.wld">Decimal Degree Units</a></td>
</tr>

<tr>
  <td>US Base Reflectivity (N0Q) Composite<br>(generated every 5 minutes)</td>
  <td>4326<br> <i>(Lat-Lon)</i></td>
  <td>
  <ul>
   <li><a href="/data/gis/images/4326/USCOMP/n0r_0.png">PNG format</a></li>
   <li><a href="/data/gis/images/4326/USCOMP/n0r_0.tif">8bit TIFF</a></li>
   </ul>
   </td>
  <td><a href="/data/gis/images/4326/USCOMP/n0r_0.wld">Decimal Degree Units</a></td>
</tr>


<tr>
  <td>US Storm Total Precip (DTA) Composite<br>(generated every 5 minutes)</td>
  <td>4326<br> <i>(Lat-Lon)</i></td>
  <td>
  <ul>
   <li><a href="/data/gis/images/4326/USCOMP/dta_0.png">PNG format</a></li>
   <li><a href="/data/gis/images/4326/USCOMP/dta_0.tif">8bit TIFF</a></li>
   </ul>
   </td>
  <td><a href="/data/gis/images/4326/USCOMP/dta_0.wld">Decimal Degree Units</a></td>
</tr>

<tr>
  <td>US 1 Hour Precip (DAA) Composite<br>(generated every 5 minutes)</td>
  <td>4326<br> <i>(Lat-Lon)</i></td>
  <td>
  <ul>
   <li><a href="/data/gis/images/4326/USCOMP/daa_0.png">PNG format</a></li>
   <li><a href="/data/gis/images/4326/USCOMP/daa_0.tif">8bit TIFF</a></li>
   </ul></td>
  <td><a href="/data/gis/images/4326/USCOMP/daa_0.wld">Decimal Degree Units</a></td>
</tr>

</table><p>

<h3 class="subtitle">Web Map Service (WMS):</h3>

<br><a href="https://www.ogc.org/standards/wms/">WMS</a> is a neat way to pull in images into your GIS, if your GIS can act
as a WMS client.  Describing WMS is beyond the scope of this page, but we have
set up a WMS on our webserver.  Point your WMS aware client at
<br><br><code>{$EXTERNAL_BASEURL}/wms/radar.php?</code><br><br>
for Iowa imagery in EPSG: 26915 (<i>NAD83 / UTM Zone 15N</i>)

<br><b>-or</b>

<br />Base Reflectivity: &nbsp; <code>{$EXTERNAL_BASEURL}/cgi-bin/wms/nexrad/n0r.cgi?</code>
<br />1 Hour Rainfall: &nbsp; <code>{$EXTERNAL_BASEURL}/cgi-bin/wms/nexrad/daa.cgi?</code>
<br />Storm Total Rainfall: &nbsp; <code>{$EXTERNAL_BASEURL}/cgi-bin/wms/nexrad/dta.cgi?</code>

<br /><br />for United States imagery in EPSG: 4326 (<i>unprojected lat-lon</i>)

<p><b>Note:</b> The WMS service should be able to send back an image in the
projection of your choice.  This has worked during the limited testing done in house.

<p>
There are many free web WMS clients available on the Internet.  Recently,
ESRI has released an <a href="https://ogc.org">OGC</a> extension
supporting WMS for their free client called ArcExplorer.
After downloading ArcExplorer, you will want to also download
the Interoperability Extension.  ESRI has also released an extension for
ArcIMS!
</p>

<h3>Notes and Caveats:</h3>
<ol>
<li>The storm total precipitation (NTP) product does not directly mosiac.  Each
NEXRAD site reports the value for a different timespan.  Basically, once the
radar detects rain, it will begin to accumulate the rainfall in the NTP product.
Once it stops raining for an hour, the value is reset to zero.  Since all sites
reset at different times, you see the issue.</li>
</ol>
EOM;
$t->render('single.phtml');
