Metadata-Version: 2.4
Name: ctdam
Version: 1.1.2
Summary: Library to handle all steps when working with CTD data.
Project-URL: Homepage, https://github.com/DAM-CTD-Software/ctdam
Project-URL: Repository, https://github.com/DAM-CTD-Software/ctdam
Project-URL: Documentation, https://dam-ctd-software.github.io/ctdam
Project-URL: Issues, https://github.com/DAM-CTD-Software/ctdam/issues
Project-URL: Changelog, https://github.com/DAM-CTD-Software/ctdam/blob/main/CHANGELOG.md
Author-email: Emil Michels <emil.michels@iow.de>
License-File: LICENSE
Keywords: CTD,conversion,data,oceanography,parser,processing,seabird,visualization
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Oceanography
Requires-Python: >=3.12
Requires-Dist: docstring-parser>=0.17.0
Requires-Dist: numpydoc>=1.10.0
Requires-Dist: seabirdscientific>=2.7.0
Requires-Dist: tomlkit>=0.12.3
Requires-Dist: tqdm>=4.67.3
Requires-Dist: xmltodict>=0.13.0
Provides-Extra: all
Requires-Dist: beautifulsoup4; extra == 'all'
Requires-Dist: bokeh; extra == 'all'
Requires-Dist: ctkmessagebox; extra == 'all'
Requires-Dist: customtkinter; extra == 'all'
Requires-Dist: platformdirs; extra == 'all'
Requires-Dist: typer; extra == 'all'
Provides-Extra: cli
Requires-Dist: platformdirs; extra == 'cli'
Requires-Dist: typer; extra == 'cli'
Provides-Extra: docs
Requires-Dist: furo>=2024.8.6; extra == 'docs'
Requires-Dist: pyment>=0.3.3; extra == 'docs'
Requires-Dist: sphinx-autodoc-typehints>=2.5.0; extra == 'docs'
Requires-Dist: sphinx-copybutton>=0.5.2; extra == 'docs'
Requires-Dist: sphinx>=8.1.3; extra == 'docs'
Provides-Extra: gui
Requires-Dist: ctkmessagebox; extra == 'gui'
Requires-Dist: customtkinter; extra == 'gui'
Provides-Extra: test
Requires-Dist: pytest-xdist>=3.6.1; extra == 'test'
Requires-Dist: pytest>=7.4.2; extra == 'test'
Provides-Extra: vis
Requires-Dist: beautifulsoup4; extra == 'vis'
Requires-Dist: bokeh; extra == 'vis'
Description-Content-Type: text/x-rst

ctdam
=====

.. image:: https://img.shields.io/pypi/v/ctdam.svg
        :target: https://pypi.python.org/pypi/ctdam

.. image:: https://img.shields.io/pypi/l/ctdam.svg
        :target: https://pypi.python.org/pypi/ctdam

.. image:: https://img.shields.io/pypi/pyversions/ctdam.svg
        :target: https://pypi.python.org/pypi/ctdam

.. image:: https://github.com/DAM-CTD-Software/ctdam/actions/workflows/main_push.yaml/badge.svg
        :target: https://github.com/DAM-CTD-Software/ctdam/actions/workflows/main_push.yaml

.. image:: https://github.com/DAM-CTD-Software/ctdam/actions/workflows/pull_request.yaml/badge.svg
        :target: https://github.com/DAM-CTD-Software/ctdam/actions/workflows/pull_request.yaml

Intro
-----

Welcome to the ctdam software package, a library to help with all the
different stages in working with CTD data. For now, it focuses only on
Sea-Bird CTD data, but we are open to extend to other CTD data types in
the future. At the moment, the focus remains on fast and reliable
conversion and processing of Sea-Birds .hex files. Data and metadata are
stored inside python objects, with the possibility to export native .cnv
files, as well as NetCDFs. In general, there are parsers for all the
different Sea-Bird file formats: .hex, .xmlcon, .bl, .btl and .cnv .

To process CTD data, one needs to define workflow files, called
‘procedures’, .toml files which correspond to python dictionaries and
e.g. look like this:

.. code:: python

   processing_config = {
       "output_type": "cnv",
       "output_dir": "somewhere",
       "modules": {
           "airpressure": {},
           "wildedit_geomar": {},
           "wfilter": {},
           "celltm": {},
           "alignctd": {},
           "Helmholtz_energy_ice": {},
           "binavg": {'bin_size': 0.1},
       },

   }

All processing module behaviour can be modified via key-values, as seen
for ‘binavg’. In the example config you can also see, that the native
Sea-Bird processing modules can be mixed with custom ones (airpressure)
and all gsw functions (Helmholtz_energy_ice). The Sea-Bird ones are
either taken from
`seabirdscientific <https://github.com/Sea-BirdScientific/seabirdscientific>`__
or are more efficient rewrites that stick to the same core logic. Its
additionally possible to use the original Sea-Bird processing binaries,
as long as they are installed on your machine.

Context
-------

This software is developed for the `German Marine Research Alliance
(DAM) <https://www.allianz-meeresforschung.de/en>`__ in the context of
the Underway Research Data Project. The converter and parser are tested
against a variety of data, acquired on different German research
vessels. Because of the ongoing efforts to harmonise these
infrastructures, the diversity of the test data may be smaller than
thought and your data may pose problems to converter, parser or
processing. Please feel free to contribute to this project in order to
develop a toolkit, that is as general as possible.
