NOVACProject / MobileDOAS

MobileDOAS is a software package developed by Chalmers University of Technology in Sweden as an easy to use software package for performing gas flux measurements using the mobile DOAS technique.
2 stars 7 forks source link

NumScans parameter set to 0 in spectra with long exposure times #160

Closed christophkern closed 2 years ago

christophkern commented 3 years ago

When collecting spectra in 'Adaptive' mode, the parameters ExpTime and NSpec are chosen such that NSpec * ExpTime is approximately equal (but does not exceed) the total integration time given in the Spectrometer configuration dialog ("Save a spectrum every: XX ms."). The maximum permitted ExpTime is equal to the total integration time and in this case NSpec should be equal to 1. However, recent tests at Kilauea have shown that when the ExpTime reaches the total integration time, NSpec was erroneously set to 0. This causes significant problems in the analysis, as the evaluation code does not know how many spectra were averaged, and thus the offset and dark current cannot be corrected (along with other problems). It's possible that this bug is being caused by a rounding issue, but the fix should be fairly simple: Just don't allow NSpec values of less than 1.

christophkern commented 3 years ago

Attaching an evaluation log from a sample dataset where this happens..

Sum02_20210929_1640evaluationLog_SO2.txt

mattias42 commented 2 years ago

Resolved in the latest build of MobileDoas. Setting to closed now, but consider reopening if any remaining issues is found.