This component provides a mechanism to directly ingest CPD2 style data.

Usage

da.import.cpd2 [switches…​] [file]

Switches

--archive=STRING

This is the archive that the data is imported as. For example, "raw" or "clean"

Default: raw

--enable-cut-flags[=BOOLEAN]

If set then any available cut size flags are translated.

Default: Enabled

--translate-arrays[=BOOLEAN]

If set then variables that would form arrays in CPD3 are translated accordingly. For example, size distributions are converted to CPD3 arrays.

Default: Enabled

--translate-ends[=BOOLEAN]

If set then variables that have difference measurement ends are translated to CPD3 equivalents. For example, transmitance measurements.

Default: Enabled

--translate-legacy-flags[=BOOLEAN]

If set then translation is performed on legacy CPD1 style flags. This translates the bits into semantic flags for CPD3 processing.

Default: Enabled

--translate-neph-flags[=BOOLEAN]

If set then translation is performed CPD2 nephelometers flags. This translates the bits into semantic flags for CPD3 processing.

Default: Enabled

--translate-psap-flags[=BOOLEAN]

If set then translation is performed CPD2 PSAP or CLAP flags. This translates the bits into semantic flags for CPD3 processing.

Default: Enabled

--translate-system-flags[=BOOLEAN]

If set then translation is performed CPD2 style system flags. This translates the bits into semantic flags for CPD3 processing.

Default: Enabled

--buffer=INTEGER

This is the maximum number of instances of a type of record that can be buffered before output is forced. This limit only takes effect if a record type stops appearing, which forces all other records to be buffered.

Default: 10000

This option only accepts integers greater than or equal to 2.

--wait=NUMBER

This is the maximum number of seconds to wait for data before flushing buffers. This is used to keep realtime data output responsive, but it can be disabled (set to undefined) for batch output. A shorter wait time increased the amount of overhead generated in the output.

Default: 1 second

This option only accepts numbers greater than or equal to 0 and less than or equal to 86400. Undefined values are permitted, to indicate that the option is set but not to a specific value.

Arguments

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.

If no file is supplied then the input is read from standard input.

Examples

Defaults

This imports CPD2 data using all flags translation and sets the archive to raw.

da.import.cpd2