The ctdcal project is a library primarily designed to process data from CTD casts and calibrate them against Niskin bottle samples. This project is currently a work in progress and not yet in public production.
A final public release is planned for 2025.
To contribute or try using ctdcal for yourself, feel free to install it and reach a member of the SIO-ODF group!
ctdcal can be installed using pip:
$ pip install ctdcal
Initialize default /data/
folders by running:
$ ctdcal init
(Future versions of ctdcal are planned have more robust init options/flags/etc.)
To process data, copy over raw .hex
and .xmlcon
files into /data/raw/
and reference data to their appropriate folder (oxygen
, reft
, salt
).
Users can process their data with individual ctdcal functions or try:
$ ctdcal process [--group ODF]
to process using ODF procedures.
Most ctdcal functions get settings from user_settings.yaml
and subsequently config.py
. Call the configuration loader to explore default settings:
from ctdcal import get_ctdcal_config
cfg = get_ctdcal_config()
# directories for I/O purposes
print(cfg.dirs)
print(cfg.fig_dirs)
# experiment-specific settings (e.g., expocode, CTD serial number) from user_settings.yaml
print(cfg.settings)
# dictionary mapping of short/long column names
print(cfg.columns)
As ctdcal continues to be developed, more robust tutorials will be added to our documentation.
BSD 3-clause