About NWM Plot
NWM Plot Demo
NWM Plot on GitHub
This project demonstrates how to plot a time series of streamflow using Chart.js.
Data Sources
Streamflow data originate from the NOAA's
National Water Model (NWM). The data can
be read
from two sources:
-
a
map service hosted by Esri - This service is for the medium range forecast only, and is only updated
daily.
This project was initially developed for this service. With the introduction of the National Water Prediction
Service API for the NWM,
relying on Esri to harvest and provide access to the data is not required; however, it may be still beneficial
to use the Esri service so that plotted data match
with what is available from the Esri map service.
-
National Water
Prediction Service (NWPS) API -
This service provides access to estimates of recent streamflow via
Analysis and Assimilation results, and the latest forecast for
Short Range, Medium Range, and Long Range model runs. While medium and long range forecasts include ensembles,
only the mean value is currently plotted for this project.
Usage
All times in the chart are in the user's local time zone, even if the user is viewing a stream segment that is not
in the user's time zone.
NWM Plot accepts these inputs:
-
Feature ID - The identifier for the National Water Model stream reach for which streamflow should be downloaded
-
Source - Choose from the four NWPS products or the Esri medium range forecast data
-
Show Ensemble Members If Available - If this is checked and the source is an ensemble forecast (medium range and long range as of this writing),
then each ensemble member is included in the graph along with the mean. If unchecked, only the mean is included. This option does nothing if
no ensembles are available.
-
Show Cumulative Volume - Select this option to include a series representing the cumulative volume of water
-
Hide Input Form - Select this option to hide the input form. The input form is useful if you are trying out the
application, but you may want to hide it
if you are linking to the application from another page and are supplying URL arguments for data retrieval.
-
Plot - Click this to plot data after adjusting inputs.
Use the input form and click Plot to see URL argument names and values.
LICENSE