Table of Contents
Web
Services and Data Ingestion
Streamflow
and Groundwater Level Data - USGS National Water Information System (NWIS)
Computer
and Skill Requirements
Retrieving
Data with Weather Downloader
Adding
Weather Downloader to ArcMap
Downloading
Weather and Streamflow Data
National hydrologic observation repositories such as the USGS National Water Information System (NWIS), EPA STORET, and Daymet are now available online and can be accessed through a web browser or programmatically. CUAHSI (the Consortium of Universities for the Advancement of Hydrologic Science) has developed a set of web services called WaterOneFlow, which provides a consistent means of accessing and delivering data from these repositories. WaterOneFlow eliminates the need for a user to understand the complexities of a given data provider’s website or data retrieval mechanism. By learning how to use WaterOneFlow services once, the user will have the skills necessary to retrieve data from all data providers for which a WaterOneFlow web service has been created. And no matter which data provider the user is accessing with WaterOneFlow, the look and feel of data access and the resulting data files is the same. This is made possible by WaterML, an XML schema that defines how WaterOneFlow web services accept inputs from users, as well as the format of the responses (the data you download) from WaterOneFlow.
A full description of WaterML and the structure of WaterOneFlow web services is beyond the scope of this document. For more information on WaterOneFlow, visit http://water.sdsc.edu/waterOneFlow/.
WaterOneFlow web services are designed to scour a given repository for a desired subset of data and return the data to the user in a format (i.e. xml) that can be ingested into a variety of applications, such as Microsoft Excel, Matlab and ArcGIS. The figure below illustrates the concept behind WaterOneFlow web services. The exercise included here demonstrates the use of a custom ArcMap tool called Weather Downloader that invokes these web services to download meteorological data from Daymet and streamflow data from NWIS.

Weather Downloader is a very useful tool for downloading time series data needed to describe the hydrology of a given geographical area. It utilizes WaterOneFlow web services to access meteorological , streamflow and groundwater data stored in public data repositories. Weather Downloader’s user interface allows the user to extract data by specifying the following inputs:
1) a point feature class in ArcGIS that contains locations of interest;
2) variables of interest (e.g. precipitation, temperature), and;
3) time periods of interest.

When executed, Weather Downloader cycles through each location in the point feature class, downloads the desired data through CUAHSI’s web services and writes them to the TimeSeries table of an Arc Hydro geodatabase specified by the user.
Weather Downloader
downloads daily historical meteorological data (i.e. anywhere between 1/1/1980
to 12/31/2003) from Daymet and forecasted data (in
the next 3.5 days) in 3 hour intervals from
Data providing organization:
Numerical Terradynamic Simulation Group (NTSG) at
Website: http://www.Daymet.org/dataSelection.jsp
Daymet is a numerical model that
provides daily surfaces of temperature, precipitation, humidity, and radiation
over large regions of complex terrain. Daymet was
developed to create fine resolution daily meteorological and climatological data necessary for plant growth model
inputs. The input to Daymet includes digital
elevation model and observations of maximum temperature, minimum temperature
and precipitation from ground-based meteorological stations. The data are
available as surfaces or as numerical estimates at single points for the
contiguous
Data providing organization: Unidata program at the University Cooperation for Atmospheric Research (UCAR).
Website: http://www.nco.ncep.noaa.gov/pmb/nwprod/analysis/
Weather Downloader downloads historical and forecasted
weather data from Daymet and
Data providing organization: United States Geological Survey (USGS)
Website: http://waterdata.usgs.gov/nwis
The USGS NWIS is a comprehensive and distributed program that supports acquisition, processing and storage of water data. Most of the data stored in NWIS is available through NWIS website provided above (NWIS Web). The data available via NWIS web mainly include information on quantity and quality of surface and ground water. NWIS web serves both historical and real time data. The real time data, however, is not available for all sites.
Data provided by NWISWeb are regularly updated from NWIS. Real-time data are generally updated upon receipt at local Water Science Centers. NWISWeb provides access to data by category, such as surface water, ground water, or water quality, and by geographic area. NWIS data are available for all 50 states, plus border and territorial sites, and include data from as early as 1899 (at few stations) to present. Of the over 1.5 million sites with NWIS data, the vast majority (about 800,000) are for groundwater wells, about 25,000 sites are for streamflow data, and about 9,800 of the sites provide real-time data. In addition there are many sites with atmospheric data such as precipitation, and there are nearly 70 million water-quality results from about 4 million water samples collected at hundreds of thousands of sites.
To complete this exercise, your computer must meet the following requirements:
This exercise assumes that you have some familiarity with the ArcGIS 9.1 software environment.
To install the Weather Downloader tool:



Besides installing the weather downloader, the installation process also adds two files (weather_downloader.mxd and weather_downloader.mdb ) in C:\Program Files\CUAHSI\Weather Downloader (or any other location specified during the set up) that you will use in this exercise.
In this exercise, you will use Weather Downloader to
retrieve climate and streamflow time series data for
the

This map shows the

From the table, we see that this feature class contains five points representing USGS stream gages. The values in the field HydroCode are the unique stream gage IDs assigned to each gage by the USGS. These are public identifiers by which these features may be identified in any system. The field HydroID stores the unique ID of these features in the geodatabase. The HydroID links each stream gage to other features in the geodatabase, such as time series records which you will download in this exercise.



(If you see a message saying “No new objects” or something similar, check to see that you have administrator privileges on your computer. You must be able to register DLLs in order to add Weather Downloader to ArcMap.)

The weather downloader tool will appear as a button in the ArcMap toolbar as shown below:


Selecting a point
layer

Selecting
identifier field in the point layer
Selecting data
output location
Selecting
variables




Specifying period
of interest
![]()
Note: For Unidata,
the tool is set to download the most recent forecast results from the NCEP
North American Mesoscale Model (12km). Because forecasts are generated for a fixed
period of time into the future (i.e. 84 hours), the web service is “hard-wired”
to download all the data in this period. The North American Mesoscale
model is run every six hours at
Replace/Append to Timeseries table

The completed form should look like the following under the Atmospheric tab; and,

it should look like the following under the surface tab:

Running the tool

Besides highlighting the points, the progress of the tool is shown in the status bar in ArcMap at the bottom-left corner of the ArcMap window. Please note that the tool may take a few minutes to complete the data download.
Once the download is complete, the tool will display the time taken in a dialog box as shown below.

Inspecting the
results


The time values are stored in the TSDateTime field, and the corresponding data are stored in the TSValue field. The TSTypeID field stores variable codes which can be looked up in the TSType table for more information such as units, time interval, etc.
You can export the attribute table into a .dbf file and do
some fancy plots with it. For instance the
following are the hyetograph and hydrograph of USGS gage 08170500 (

This concludes the exercise.
Ernest Sin Chit To
Center for Research in Water Resources
e-mail: eto@mail.utexas.edu
Tim Whiteaker
Center for Research in Water Resources
e-mail: twhit@mail.utexas.edu
These
materials may be used for study, research, and education, but please credit the
authors and the Center for Research in Water Resources, The