data.legacy.get

data.legacy.get is the interface to access archived data before the switch the the current archive system. It functions by reading calling handlers defined in its configuration file for the requested time range. These handlers are expected to access their respective data sources and convert any data found within that time range into CPD2 formatted data for the requested record. The handlers and their applicable times are defined by legacy.conf.

data.legacy.get is normally called as part of data.get's lookup procedure, instead of directly.

Command Line Usage

data.localdata.cpd1 station records start end source

Arguments

start and end

The time specifiers for the data to be retrieved. Start is inclusive while end is exclusive, so all data contained within the half open interval [start,end) will be returned. Any convertible time format is accepted.

station

The station identifier code. For example 'brw'. Case insensitive.

records

The cpd2 record type to be retrieved. For example: 'S11a'. Case sensitive. Multiple record types may be separated by ”,”, ”;” or ”:”. The results will be interwoven in time. Note that this is a single argument and that spaces are not allowed.

source

Set source archive to request data from. Only raw and clean are supported.

Example Usage

data.legacy.get amf S11a 2008:100 2008:101 raw