ctdproc.proc.add_tcfit_default

ctdproc.proc.add_tcfit_default(ds)[source]

Set the default pressure range used for the t/c phase fit.

The range is chosen by maximum cast pressure: 500 dbar to max for casts deeper than 1000 dbar, 200 dbar to max for casts deeper than 300 dbar, 50 dbar to max otherwise. The result is stored in ds.attrs["tcfit"]; nothing is returned.

Parameters:

ds (xarray.Dataset) – CTD time series. Must contain pressure variable p. Modified in place.