Skip to main content
U.S. FlagAn official website of the United States government
icon dot gov
Official websites use .gov

A .gov website belongs to an official government organization in the United States.

icon https
Secure .gov websites use HTTPS

A lock () or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

data.legacy.cpd1

data.legacy.cpd1 locates and converts cpd1 data from the archive into cpd2 style data. It will search the cum file and any quarter archive files for the data it needs. It does not do any caching and so is relative slow alone. It is intended to be called by data.get.

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

Uses records.conf to generate the record and variable mappings and legacyheaders.conf for header creation.

Command Line Usage

data.legacy.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.cpd1 amf S11a 2008:100 2008:101 raw