This component provides a mechanism to correct various measurements from ambient conditions to STP.
Usage
da.corr.stp [switches…] [[station] variables times [archive]|[file]]
Switches
- --correct-concentration=SELECTION
-
These are the variables to correct that are inversely proportional to the ambient air volume. For example, light scattering. This option is mutually exclusive with instrument specification.
Default: All counts and extinction components
- --correct-volume=SELECTION
-
These are the variables to correct that are proportional to the ambient air volume. For example, volumetric flows. This option is mutually exclusive with instrument specification.
Default: All flows
- --instruments=SUFFIX…
-
These are the instrument suffixes to correct. For example S11 would usually specifies the reference nephelometer. This option is mutually exclusive with manual variable specification.
Default: All instrument suffixes
- --p=INPUT
-
This is the pressure that the measurements where sampled at in hPa. The result is the correction of the data from this pressure STP.
Default: Resolved automatically by instrument suffix
- --stp-p=INPUT
-
This is the pressure that the input is corrected to in hPa.
Default: 1013.25 hPa
- --stp-t=INPUT
-
This is the temperature that the input is corrected to. This is assumed to be in kelvin if it is greater than 150, otherwise it is in degrees celsius.
Default: 273.15 K
- --t=INPUT
-
This is the temperature that the measurements where sampled at. The result is the correction of the data from this temperature STP. This is assumed to be in kelvin if it is greater than 150, otherwise it is in degrees celsius.
Default: Resolved automatically by instrument suffix
Arguments
If no bare word input specification is supplied then data are read from standard input.
- 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. - variables
-
This argument may be split into multiple actual program arguments. Each part consists of one or more variable specifications separated by
,
(commas). The station and archive used if none are explicitly given are defined in the other arguments or inferred from system defaults. For example simplyBsB_S11
selects the blue scattering from the S11 instrument and returns all cut sizes and metadata. If instead::BsB_S11:pm10
is used then only PM10 scattering is returned. That is, the selection specifies "any" station and archive (the defaults are set in the other arguments) then requires that it has the "PM10" flavor. A specification such asbnd:BsB_S11,thd:BsB_S11
allows for data selection from multiple stations.This may also be used to select a "record" type alias such as "S11a". In this mode all the variables defined in the alias are returned.
Finally the special value
everything
can be used to select all available data for the given station(s) and archive(s). - 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. - file
-
This argument is used to specify the the file to read data from. If it is present and exists then data is read from the given file name instead of from standard input. Alternatively
-
(a single dash) may be used to explicitly specify standard input.
Examples
- Defaults
-
This will correct all counts, flow rates, and light scattering, absorption, or extinction values present in the data stream. The values are corrected using a temperature and pressure from the same suffix (e.x. BsG_S11 uses T_S11 and P_S11). They are corrected to 273.15 K and 1013.25 hPa.
da.corr.stp bnd S11a 2015-05-01 2015-05-03
Or:
da.corr.stp input_file.c3d
Or:
da.get bnd S11a 2015-05-01 2015-05-03 | da.corr.stp
- Single instrument with manual pressure
-
This will correct all parameters for S11 to its temperature (from T_S11 for example) and 880.0 hPa.
da.corr.stp --instruments=S11 --p=880 bnd S11a 2015-05-01 2015-05-03
- Single variable and alternate temperature
-
This will correct only the variable BsG_S11 and specifies an alternate sample temperature (Tu_S11).
da.corr.stp --correct-concentration=bnd:raw:BsG_S11 --t=bnd:raw:Tu_S11 bnd S11a 2015-05-01 2015-05-03