You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using the same glider data used in the GliderTools paper and I'm trying to conduct a quenching correction on the fluorescence data to eventually calculate chl_a from it. I keep getting the following error and I'm not quite sure how to fix it?
To Reproduce
`
##% Importing data with xarray
sg = xr.open_dataset(base_dir + 'GLIDER_SAZ_SOSCEx3_MERGED.nc')#,decode_times=False)
flr = sg.flr_raw
dives = sg.dives
depth = sg.depth
time = sg.time
lat = sg.latitude
lon = sg.longitude
Hi,
Thank you for reporting this issue! It is not obvious to me how the quenching_correction, and especially the crashing line night_ave = night_ave.dropna().loc[False] are supposed to work. I am not the author of the code, but I have the impression that the 'isday' variable should be used here to select only the nighttime, i.e. isday==False. I hope to find some more time to look into this in the start of July. If you in the meantime make any progress yourself with analyzing or fixing this issue let us know!
I'm also quite confused about how to fix the error. I've tried setting isday==False or even setting night_day_group=True but both did not fix the error. Still no progress with fixing the error on my side.
Describe the bug
I'm using the same glider data used in the GliderTools paper and I'm trying to conduct a quenching correction on the fluorescence data to eventually calculate chl_a from it. I keep getting the following error and I'm not quite sure how to fix it?
To Reproduce
`
##% Importing data with xarray
sg = xr.open_dataset(base_dir + 'GLIDER_SAZ_SOSCEx3_MERGED.nc')#,decode_times=False)
flr = sg.flr_raw
dives = sg.dives
depth = sg.depth
time = sg.time
lat = sg.latitude
lon = sg.longitude
Identify bad fluorescence profiles
flr_iqr = gt.cleaning.outlier_bounds_iqr(flr, multiplier=3)
bad_profiles = gt.optics.find_bad_profiles(dives, depth, flr_iqr,
ref_depth=300,
stdev_multiplier=4,
method='mean')
flr_goodprof = flr_iqr.where(~bad_profiles[0])
fluorescence dark count
flr_dark = gt.optics.fluorescence_dark_count(flr_iqr, depth)
flr_base, flr_spikes = gt.cleaning.despike(flr_dark, 11, spike_method='median')
Quenching correction
flr_qnch, flr, qnch_layer, [fig1, fig2] = gt.calc_fluorescence(
flr_base, bbp700, dives, depth, time, lat, lon, 53, 0.0121,
profiles_ref_depth=300, deep_method='mean', deep_multiplier=1,
spike_window=11, spike_method='median', return_figure=True,
night_day_group=False, sunrise_sunset_offset=2, verbose=True)`
Error obtained:
The text was updated successfully, but these errors were encountered: