glidertools.optics.par_dark_count

glidertools.optics.par_dark_count(par, dives, depth, time)

Calculates an in situ dark count from the PAR sensor.

The in situ dark count for the PAR sensor is calculated from the median, with masking applied for values before 23:01 and outside the 90th %

Parameters:
  • par (numpy.ndarray or pandas.Series) – The par array after factory calibration in units uE/m2/sec.
  • dives (numpy.ndarray or pandas.Series) – The dive count (round is down dives, 0.5 is up dives).
  • depth (numpy.ndarray or pandas.Series) – The depth array in metres.
  • time (numpy.ndarray or pandas.Series) – The date & time array in a numpy.datetime64 format.
Returns:

par_dark – The par data corrected for the in situ dark value in units uE/m2/sec.

Return type:

numpy.ndarray or pandas.Series