Skip to main content

python-ctd

DOI Tests PyPI License

Tools to load hydrographic data as pandas DataFrame with some handy methods for data pre-processing and analysis

This module can load SeaBird CTD (CNV), Sippican XBT (EDF), and Falmouth CTD (ASCII) formats.

Quick intro

You can install the CTD package with

conda install ctd --channel conda-forge

or

pip install ctd

and then,

from pathlib import Path
import ctd

path = Path('tests', 'data', 'CTD')
fname = path.joinpath('g01l06s01.cnv.gz')

down, up = ctd.from_cnv(fname).split()
ax = down['t090C'].plot_cast()

Bad Processing

We can do better:

temperature = down['t090C']

fig, ax = plt.subplots(figsize=(5.5, 6))
temperature.plot_cast(ax=ax)
temperature.remove_above_water()\
           .despike()\
           .lp_filter()\
           .press_check()\
           .interpolate(method='index',
                        limit_direction='both',
                        limit_area='inside')\
           .bindata(delta=1, method='interpolate')\
           .smooth(window_len=21, window='hanning') \
           .plot_cast(ax=ax)
ax.set_ylabel('Pressure (dbar)')
ax.set_xlabel('Temperature (°C)')

Good Processing

Try it out on mybinder

Binder

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ctd-1.4.5.tar.gz (72.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ctd-1.4.5-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file ctd-1.4.5.tar.gz.

File metadata

  • Download URL: ctd-1.4.5.tar.gz
  • Upload date:
  • Size: 72.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for ctd-1.4.5.tar.gz
Algorithm Hash digest
SHA256 69e3d7137438b0463b39dc79760997533e0ef4df712b2c9390636bfca8d7617e
MD5 ca35fe77554bf0bffeb8857125f6e6b2
BLAKE2b-256 2d710a1e88ca2df5637dac5c51652ad155f5b82a3f7d5de3e9214f168669e631

See more details on using hashes here.

File details

Details for the file ctd-1.4.5-py3-none-any.whl.

File metadata

  • Download URL: ctd-1.4.5-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for ctd-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c683e793f59f86fb0c61b12a914e02bc6e9cad5167cd5ec3e9670aa123187b78
MD5 7ba3f299701d88338af244331db10748
BLAKE2b-256 fc72237604ab509221819a7d0957c0e2feefb9d44f3ea2ff184dec27a6617ab4

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.0

2 files

1.4.7

2 files

1.4.6

2 files

This release

1.4.5 This release

2 files

1.4.4

2 files

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.4.0

2 files

0.3.0

1 file

0.2.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page