Technical Support for Environmental Data Collection Software
Email This Article
Your Name: *  
Your Email: *
Friend's Email: *
Comment:
  *Required Field
Verification Code: *

Decode USGS Web Download

  • Author: Michael Maloney
  • Create Time: 01/06/2015 13:05:20
  • Last Update Time: 01/07/2015 01:27:28
This article will explain how to set up data-source, configuration, site, platform, and routing spec to decode data downloaded from USGS's website. The URL we will be using as a test is:

http://waterservices.usgs.gov/nwis/iv/?format=rdb&sites=08041749&period=P1D&parameterCd=00060

Note the USGS Site Number 08041749 in the URL. We will use that as the DECODES Transport Medium ID.

Step 1: Create the Data Source Record

On the "Sources" tab of the DECODES Database Editor create a new data source as shown below.
The important items are:
  • Select "abstractweb" for "Type" in the upper left.
  • Set property "OneMessageFile" to true. This tells DECODES that the entire file should be treated as a single message, rather than a collection of messages with some delimiter.
  • Set property "header" to "other". This tells DECODES to not make any assumptions about a formatted header at the top of the file.
  • Set property "abstractUrl" to the web site's URL. See in the figure below that the value is being edited. Note that ${MEDIUMID} will be replaced by the USGS number when the routing spec runs.