This component calculates flow from a pressure difference measured with a pitot tube. That is, given a temperature, absolute pressure, cross-sectional area, and delta pressure it calculates the flow rate.

Usage

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

Switches

--diameter=NUMBER

This is the diameter of the flow tube in mm. This is used to set the cross sectional duct area for calculating the flow.

Default: 44.45 mm = 1.75 in

This option only accepts numbers strictly greater than 0.

--input-area=INPUT

This is cross sectional area of the duct at the pitot tube in m². This option is mutually exclusive with the diameter.

--input-dp=INPUT

This is the delta pressure at the pitot tube. This option is mutually exclusive with with instrument specification.

Default: All delta pressures

--input-p=INPUT

This is the temperature to use in calculations. This is the pressure of the air at the pitot tube.

Default: 1013.25 hPa

--input-t=INPUT

This is the temperature to use in calculations. This is the temperature of the air at the pitot tube.

Default: 273.15 K

--instruments=SUFFIX…​

These are the instrument suffixes to calculate flows for. For example P01 would usually specifies the stack flow pitot sensor. This option is mutually exclusive with manual variable specification.

Default: All instrument suffixes

--output-q=SELECTION

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

Default: Calculated from input pressures

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 flows for all delta pressures in the input assuming they are at STP with 1.75 in ID tubing. For example, it will calculate Q_P01 from Pd_P01.

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

Or:

da.calc.pitotflow input_file.c3d

Or:

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

This will calculate the flow for the P01 sensor using the measured temperature T_V01 and the pressure P_XM assuming a duct area of 0.002 m².

da.calc.pitotflow --input-area=0.002 --input-p=bnd:raw:P_XM --input-t=bnd:raw:T_V01 --instruments=P01 bnd S11a 2015-05-01 2015-05-03
Single variable

This will calculate Q_X1 from Pd_XM for a flow tube with a 30 mm inner diameter.

da.calc.pitotflow --diameter=30 --input-dp=bnd:raw:Pd_XM --output-q=bnd:raw:Q_X1 bnd S11a 2015-05-01 2015-05-03