ctdproc.proc.preen_ctd
- ctdproc.proc.preen_ctd(ds)[source]
Replace out-of-range values in
p,t1,t2,c1,c2.Each variable is filtered against the per-channel bounds stored in
ds.attrs["bounds_p"],ds.attrs["bounds_t"], andds.attrs["bounds_c"]; out-of-range samples are replaced by linear interpolation between adjacent in-range samples.- Parameters:
ds (xarray.Dataset) – Dataset with CTD time series.
- Returns:
ds – Dataset with each channel cleaned and reinterpolated.
- Return type: