DEOS Data Retrieval Component Operations Guide

DEOS Technical Note #2

Dr. Geoffrey E. Quelch

Research Fellow,
University of Delaware,
Center for Climatic Research


   University of Delaware
   NewarkDE 19716
   
  

Version 2

All material herein is copyright by the Delaware Environmental Observing System

Published: February 24th 2004

Revision History
Revision 1.12004/02/24GEQ
Initial version
Revision 1.22005/02/02GEQ
Added description of which streams can be processed.
Revision 2.12006/09/26GEQ
Incremented version number of this document to 2.
Revision 2.22007/04/02GEQ
Incremented version number of this document to 2.
Revision 2.32007/05/17GEQ
Added DNERR stream.
Revision 2.42007/06/20GEQ
Added DNERR buoy streams.
Revision 2.52007/07/18GEQ
Added retries command line option.
Revision 2.62007/07/27GEQ
Added USACE streams.
Revision 2.72007/08/07GEQ
Added description of creating url for retrieval.
Revision 2.1.62008/01/02GEQ
Added description of the %2 option.
Revision 2.1.82010/01/31GEQ
Added NOS options.
Revision 2.1.112010/10/15GEQ
Added %B and %E options for URL construction.

Abstract

This technical note describes the DEOS retrieve program, and the options for its use.


Table of Contents

Introduction
Streams
Running the Program
Command Line Options
User Option
Password Option
Database Option
Stream Option
Retries Option
Verbose Option
Help Option
Database Parameters
Protocols
Retrieve_Methods
Streams
Construction of URL's
Operational Use

Introduction

The DEOS retrieve function provides the functionality to remotely retrieve meteorological data and store it locally to provide input to the retrieve program.

Streams

The retrieve program utilizes streams for retrieval. The following table describes the streams supported.

Table 1. Retrieve Station Metadata

Stream NameDescription
METAR-SFSSThis is the stream for single-station in a single file METAR data as provided on the NWS web site.
USGS-STREAMUSGS stream-flow stations.
USGS-TIDALUSGS tidal stations.
RAWSNWS fire weather stations.
NDBC-BUOYNDBC Ocean buoy stations.
DGS-WellsDelaware Geologic Survey water wells.
DNERR-WQ-MultiDelaware National Estuarine Research Reserve multi-station water quality data.
DNERR-Buoy-StatusDelaware National Estuarine Research Reserve buoy status data.
DNERR-Buoy-WaveDelaware National Estuarine Research Reserve wave buoy data.
USACE-Buoy-CurrentUS Army Corps of Engineers buoy data (current data.)
NOS-Water-Level-PredictionNOS data (prediction data.)
NOS-Water-Level-ObsNOS data (observed data.)

Running the Program

The program is executed by the command retrieve from the command line.

retrieve { -u username | --user username } { -p password | --password password } { -d database | --database database } { -s stream-name | --stream stream-name } [ -rvalue | --retries value ] [ -vvalue | --verbose value ] [ -h | --help ]

Command Line Options

The retrieve program uses database configuration parameters to determine which data streams require data retrieval, as well as the method needed to retrieve them, and any associated parameters.

User Option

The specification for the user option is:

{ -u username | --user username | --user=username }

This option will allow the program to connect to the database using the username provided. The user must already exist, and have sufficient permissions to access the database specified. This item is required.

Password Option

The specification for the password option is:

{ -p password | --password password | --password=password }

This option in combination with the username allows the program to connect to the database using the username provided. This item is required.

Database Option

The specification for the database option is:

{ -d database | --database database | --database=database }

This option will specify which database the program should use as a source of data, configuration items and a destination for any event logging items. This item is required.

Stream Option

The specification for the stream option is:

{ -s stream name | --stream stream name | --stream=stream name }

This option specifies the stream name for retrieval. This is a required argument.

Retries Option

The specification for the retries option is:

[ -r value | --retries value | --retries=value ]

This option specifies the number of connection retries that the program will attempt. The default is 1.

Verbose Option

The specification for the verbose option is:

[ -v value | --verbose value ]

The value provided for the verbose setting (a digit between 0 and 5) indicates how much output is generated, 0 being minimal and 5 being extremely verbose. Positive values of setting send data to the ELF, negative value also print the message to the screen. If no value is provided, the setting is assumed to be 1.

Help Option

The specification for the help option is:

[ -h | --help ]

This option prints a summary of all the command line options and exits.

Database Parameters

The following database tables provide configuration options for the retrieve program.

Protocols

This table contains data about the various protocols, such as FTP, and associated information required to specify data retrieval.

Retrieve_Methods

This table contains data such as the specified retrieval method, protocol, hostname, user, source path, and associated information.

Streams

This table contains data for the specified retrieval method for the stream, such as destination path, retrieval method associated information.

Construction of URL's

The heart of the retrieve program is the construction of a dynamic url according to the URL specification document. The components are defined in the Retrieve_Methods table and utilize a number of dynamic codes to represent changing data items as outlined in the following table.

Operational Use

For operational use, it is expected that the retrieve program be run from inside the cron system, and to be run at an appropriate time interval depending upon the frequency of data updates at the remote site.