This component calculates the liquid water concentration based on a heating element probe. It takes the heating power, air and sensor temperatures, air speed, and pressure to produces a concentration of liquid water.

Usage

da.calc.lwcprobe [switches…​] [[station] variables times [archive]|[file]]

Switches

--input-air-p=INPUT

This is the air pressure to use in calculations.

Default: 1013.25 hPa

--input-air-speed=INPUT

This is the air speed past the sensor used in calculations.

Default: 1 m/s

--input-air-t=INPUT

This is the air temperature to use in calculations. This is the ambient air temperature being sampled.

Default: 273.15 K

--input-power=INPUT

This is the power in watts being consumed by the sensing element. This option is mutually exclusive with with instrument specification.

Default: All powers

--input-probe-diameter=INPUT

This is the diameter of the sensing element in the probe.

Default: 0.18 cm

--input-probe-length=INPUT

This is the length of the sensing element in the probe.

Default: 2.0 cm

--input-probe-temperature=INPUT

This is temperature the probe sensing element is being maintained at.

Default: 125 °C

--instruments=SUFFIX…​

These are the instrument suffixes to calculate concentrations for. This option is mutually exclusive with manual variable specification.

Default: All instrument suffixes

--output-concentration=SELECTION

This is the output concentration that is calculated. This option is mutually exclusive with with instrument specification.

Default: Calculated from input powers

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 example BND,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 simply BsB_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 as bnd: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 or clean_meta. The argument accepts multiple archives specified as regular expressions and separated by : or ; or ,. For example raw(_meta)? selects both the raw and raw_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 calculate concentrations for all power readings in the input using assumed defaults. For example, it will calculate X_N11 from VA_N11.

da.calc.lwcprobe bnd S11a 2015-05-01 2015-05-03

Or:

da.calc.lwcprobe input_file.c3d

Or:

da.get bnd S11a 2015-05-01 2015-05-03 | da.calc.lwcprobe
Single instrument with measured temperature and pressure

This will calculate the concentration for the N11 instrument using temperature T_V01 and the pressure P_XM and assumed air speed.

da.calc.lwcprobe --input-air-p=bnd:raw:P_XM --input-air-speed=10 --input-air-t=bnd:raw:T_V01 --instruments=N11 bnd S11a 2015-05-01 2015-05-03
Single variable

This will calculate X_X1 from VA_XM for assumed probe parameters.

da.calc.lwcprobe --input-power=bnd:raw:VA_XM --output-concentration=bnd:raw:X_X1 bnd S11a 2015-05-01 2015-05-03