This program generates CPD2 style records by reading the CPD3 archive directly. This is normally only used as part of the legacy interface to work with old CPD2 programs.
Usage
da.output.cpd2 [station] [records] times [archive]
Arguments
- station
-
This argument is used to specify the station used to look up variables that do not include a station as part of an archive read specification. The station is the three letter GAW station code of the location, such as
BND
. The argument accepts multiple stations specified as regular expressions and separated by:
or;
or,
. For exampleBND,MLO
and(BND|MLO)
are two ways of selecting both the BND and MLO stations.The special value
allstations
may also be specified to select all stations. - records
-
This argument is a list of CPD2 record names, separated by
:
or;
or,
to be generated. For exampleS11a
for the S11 instrument a record type. Regular expressions are accepted but note that the stations specification is evaluated first, so they must not match both if the station is omitted. The special valueeverything
is accepted to generate data for all available records. - times
-
This argument may be split into multiple actual program arguments. This full list of time arguments defines a time bounds list that sets the range of data queried. The final resulting data are clipped to the given time bounds but any values that intersect them are returned.
- archive
-
This argument is used to specify the archive used to look up variables that do not include an archive as part of an archive read specification. The archive is the internal name, such as
raw
orclean_meta
. The argument accepts multiple archives specified as regular expressions and separated by:
or;
or,
. For exampleraw(_meta)?
selects both theraw
andraw_meta
archives.The special value
allarchives
may also be used to select all available archives.
Examples
- General usage
-
This generates CPD2 style S11a records for BND.
da.output.cpd2 bnd S11a 2016-05-01 1d