ctdproc.proc.cleanup_ud
- ctdproc.proc.cleanup_ud(ds)[source]
Clean a single down- or up-cast and calculate derived variables.
Despikes
t1/t2, glitch-correctsc1/c2/t1/t2, computes salinity (practical and absolute) viactdproc.calcs.calc_sal(), despikes/glitch-corrects the salinity fields, and finally callsctdproc.calcs.calc_temp()andctdproc.calcs.calc_sigma()to add conservative/potential temperature and potential density anomaly.- Parameters:
ds (xarray.Dataset) – CTD time series for a single cast (down or up). Required attrs:
spike_thresh_t,spike_thresh_s,diff_t/prod_t,diff_c/prod_c,diff_s/prod_s,bounds_s.- Returns:
ds – Cleaned cast with derived salinity, temperature and density fields.
- Return type: