gas_baseline - bruno-beloff/scs_mfr GitHub Wiki

docs > software repositories > scs_mfr > commands > calibration


DESCRIPTION

The gas_baseline utility is used to adjust the zero offset for electrochemical sensors, as interpreted by the current gas interpretation machine learning model.

WARNING: because ML models typically do not report negative values, the effect of raising the offset above zero is to raise the limit of detection of the sensor system.

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 scs_dev/gasses_sampler and greengrass processes must be restarted for changes to take effect.

SYNOPSIS

gas_baseline.py [{ -b GAS | { -s | -o } GAS VALUE | -c GAS CORRECT REPORTED | -z | -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
-c CORRECT, --correct=CORRECT change offset for GAS, by the difference between CORRECT and REPORTED values
-z, --zero zero all offsets
-d, --delete delete the baseline configuration
-v, --verbose report narrative to stderr

EXAMPLES

./gas_baseline.py -c NO2 10 23

DOCUMENT EXAMPLE

{"CO": {"calibrated-on": "2021-01-19T10:07:27Z", "offset": 2}, "NO2": {"calibrated-on": "2021-01-19T10:07:27Z", "offset": 1}}

FILES

~/SCS/conf/gas_baseline.json

SEE ALSO

scs_analysis/baseline

scs_dev/gases_sampler

scs_mfr/afe_baseline
scs_mfr/afe_calib
scs_mfr/gas_model_conf