GliderToolsCommunity / GliderTools

A toolkit for processing Seaglider base station NetCDF files: despiking, smoothing, outlier detection, backscatter, fluorescence quenching, calibration, gridding, interpolation.
https://glidertools.readthedocs.io
GNU Affero General Public License v3.0
69 stars 28 forks source link

fix quenching correction #184

Closed MartinMohrmann closed 1 year ago

MartinMohrmann commented 1 year ago

This fixes issue #182. The initial error was caused, because the selection loc[False] would select the night values, but the table has actually a multi-index, of which all values are chosen (e.g. non night).