API reference
The public API is the four submodules re-exported from
ctdproc. The sections below group entries by their role in the
processing pipeline (ctdproc.proc.run_all()).
Pipeline orchestration
Run all standard processing steps on raw CTD time series. |
|
Split a cast into downcast and upcast at the pressure maximum. |
|
|
Depth-bin CTD time series. |
Cleaning
Clean up CTD raw time series. |
|
Clean a single down- or up-cast and calculate derived variables. |
|
|
Set spikes to NaN where the absolute first difference exceeds a threshold. |
|
Replace out-of-bounds values with NaN. |
Replace out-of-range values in |
|
Eliminate depth loops in CTD data based on sinking velocity. |
|
|
Compute sinking velocity from pressure record. |
Phase correction
Bring temperature and conductivity into phase via FFT-based fit. |
|
Set the default pressure range used for the t/c phase fit. |
Thermodynamic calculations
|
Calculate SA, s, CT, theta, sigma, oxygen, depth, z |
|
Add absolute and practical salinity for both sensor pairs. |
|
Add conservative and potential temperature for both sensor pairs. |
|
Add potential density anomaly for both sensor pairs. |
|
Add a |
|
Calculate absolute and practical salinity. |
I/O
|
Converter for Seabird 9/11 CTD data in hex format. |
|
Convenience wrapper that returns a ready-to-process xarray Dataset. |
Attach the default processing parameters to |
|
|
Save processed down- and up-cast Datasets to a single MATLAB file. |
Low-level utilities
Find contiguous segments in an array of indices. |
|
|
Find indices left and right of given indices and add them to the index array. |
|
Interpolate over segments of bad data. |
|
Remove glitches/spikes in array. |
|
Eliminate values outside given range and interpolate. |
|
Find unique elements in more than one numpy array. |
|
Convert Matlab datenum format to python datetime. |
Convert a numpy datetime64 array to MATLAB datenum. |