ctdproc.io.add_default_proc_params

ctdproc.io.add_default_proc_params(ds)[source]

Attach the default processing parameters to ds.attrs in place.

Sets bounds for valid pressure / temperature / conductivity / salinity (bounds_p/bounds_t/bounds_c/bounds_s); spike thresholds for despiking (spike_thresh_t, spike_thresh_s); glitch-correction thresholds (diff_*/prod_* for p/t/c/s); the sinking-velocity threshold used by ctdproc.proc.rmloops() (wthresh); and plotting flags (plot_spectra, plot_path).

Parameters:

ds (xarray.Dataset) – CTD time series. Modified in place; nothing is returned.