aphalo / ooacquire

Acquire spectral data and control array spectrometers from Ocean Optics from within R
https://docs.r4photobiology.info/ooacquire
1 stars 0 forks source link

Bug in "l" protocol #11

Closed aphalo closed 11 months ago

aphalo commented 12 months ago

Spectra acquired using "l" protocol are occasionaly affected by a large and fixed offset in the dark correction. It is an odd problem as occurence seems random, but causing an extremely consistent shift in dark counts when it happens. Protocol "ld" is not affected even with long series and using exactly the same settings. Seems difficult to diagnose. I need to work out what is going on.

aphalo commented 12 months ago

Looking at the raw-counts and the irradiance, the bug seems to be in the computations of irradiance. It is however surprising that the bug is triggered occasionally.

aphalo commented 11 months ago

A first step in checking this can be to pass qty.out = "raw" or qty.out = "cps" in the call to acq_irrad_interactive() and check how the 'cps' look like.

aphalo commented 11 months ago

Fixed. Setting option to get verbose messages provided a good clue of the problem.