wsular / EasyFlux-DL-CR3000

CR3000 datalogger program for Campbell open-path eddy-covariance systems, by @campbell-scientific
https://www.campbellsci.com/easyflux-dl
3 stars 5 forks source link

Tracking unique sensor calibration values #6

Open patricktokeeffe opened 8 months ago

patricktokeeffe commented 8 months ago

Base version of EasyFlux-DL relies on unique sensor calibration values being updated in the program file. Any changes to those unique values would be (hopefully) tracked by the user before they deploy their changes.

Our version is modified so users can update unique values without editing (and subsequently redeploying) the program file. Since changes to the unique values file are not tracked in version control, we conditionally add relevant columns to the final data tables which contain the sensitivity values used for that record:

Table name Relevant columns
Flux NRLITE_SENS,
NR01_SW_IN_SENS, NR01_SW_OUT_SENS, NR01_LW_IN_SENS, NR01_LW_OUT_SENS,
CNR1_SW_IN_OUT, CNR1_SW_OUT_SENS, CNR1_LW_IN_SENS, CNR1_LW_OUT_SENS,
PYRAN_MULT, PYRAN_OFFSET,
QUANTUM_SENS, QUANTUM_OFFSET,
SI111_m0, SI111_m1, SI111_m2, SI111_b0, SI111_b1, SI111_b2,
SHFP_1_SENS, SHFP_2_SENS, SHFP_3_SENS, SHFP_4_SENS
LTAR_Met SHFP_1_SENS, SHFP_2_SENS, SHFP_3_SENS, SHFP_4_SENS
LTAR_Met_1min SHFP_1_SENS, SHFP_2_SENS, SHFP_3_SENS, SHFP_4_SENS

These unique sensor calibration values change very infrequently and consequently we store large amounts of identical values.