This component removes contaminated values from the data stream. It replaces any affected value that occurs during a time when that values source instrument had a contaminated flag set with an undefined value. For example the variable BsG_S11 is removed when the variable F1_S11 has the flag "Contaminated" set. In this case S11 is the instrument and the contamination flags are always present in the F1 variable for an instrument. Any flag starting with "Contaminate" is considered to be a contaminating flag. The set of variables that are affected by contamination can either be specified directly or set base on the standard system definition for a processing stream.
Usage
da.corr.removecontam [switches…] [[station] variables times [archive]|[file]]
Switches
- --contamination=STRING
-
This defines the standard contamination system that is used. The variables affected by contamination are determined by which system is in use. For example, the "aerosol" system affects scatterings, absorptions, extinctions, and counts. This may not be used if variables are specified directly.
Default: aerosol
- --variables=SELECTION
-
This defines the variables that are affected by contamination. This may not be used if a system mode is specified.
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 remove all variables affected by the standard definition of "aerosol" processing.
da.corr.removecontam bnd S11a 2015-05-01 2015-05-03
Or:
da.corr.removecontam input_file.c3d
Or:
da.get bnd S11a 2015-05-01 2015-05-03 | da.corr.removecontam
- Alternate system mode
-
This will remove all variables affected by the standard definition of "met" processing.
da.corr.removecontam --contamination=met bnd S11a 2015-05-01 2015-05-03
- Single variable
-
This will remove only the variable T1_S11 when it is contaminated. All other variables are left unchanged even if they would normally be affected by system contamination.
da.corr.removecontam --variables=bnd:raw:T1_S11 bnd S11a 2015-05-01 2015-05-03