ctdproc.proc.split_updn

ctdproc.proc.split_updn(ds)[source]

Split a cast into downcast and upcast at the pressure maximum.

Parameters:

ds (xarray.Dataset) – CTD time series with pressure variable p.

Returns:

Mapping with keys "down" and "up" containing the downcast and upcast time series.

Return type:

dict of xarray.Dataset