vcal_baseline - bruno-beloff/scs_mfr GitHub Wiki

docs > software repositories > scs_mfr > commands > calibration


DESCRIPTION

The vcal_baseline utility is used to adjust the zero offset of the reported vCal value. A positive offset value cause the output to be higher.

In normal circumstances, the vCal offset should be set so that the minimum vCal value for the given gas on the given device matches the minimum vCal value in the model compendium.

Important note: the vCal baseline does not change the vCal value as reported by the gases_sampler utility. Instead, it is used by the gas exegesis system, as part of the preprocessing of data that is passed to the interpretation model.

Each sensor is identified by the gas that it detects. For example, a nitrogen dioxide sensor is identified as NO2, and an ozone sensor is identified as Ox.

Note that the greengrass processes must be restarted for changes to take effect.

SYNOPSIS

vcal_baseline.py [{ -b GAS | { { -s | -o } GAS VALUE [-r SAMPLE_REC -t SAMPLE_TEMP -m SAMPLE_HUMID] } | -d }] [-v]

Options
--version show program's version number and exit
-h, --help show this help message and exit
-b BASELINE, --baseline=BASELINE report offset for GAS
-s SET, --set=SET set offset for GAS to integer VALUE
-o OFFSET, --offset=OFFSET change offset for GAS, by integer VALUE
-d, --delete delete the baseline configuration
-r SAMPLE_REC, --sample-rec=SAMPLE_REC sample ISO 8601 datetime
-t SAMPLE_TEMP, --sample-temp=SAMPLE_TEMP sample temperature
-m SAMPLE_HUMID, --sample-humid=SAMPLE_HUMID sample humidity
-i INDENT, --indent=INDENT pretty-print the output with INDENT
-v, --verbose report narrative to stderr

EXAMPLES

./vcal_baseline.py -s NO2 16

FILES

~/SCS/conf/vcal_baseline.json

DOCUMENT EXAMPLE

{"NO2": {"calibrated-on": "2022-06-23T08:40:06Z", "offset": 134, "env": null}}

SEE ALSO

scs_dev/gases_sampler
scs_mfr/gas_model_conf