Skip to main content

python-ctd

DOI Build Status PyPI Build status 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

conda install ctd --channel conda-forge
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

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.1.0.tar.gz (308.7 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.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ctd-1.1.0.tar.gz
  • Upload date:
  • Size: 308.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for ctd-1.1.0.tar.gz
Algorithm Hash digest
SHA256 29bbca3373d8b594994bdb41ef55e490d552b326a569e875e5d836c00f78d697
MD5 a084d145dca528fa6573becd4f7eb3c9
BLAKE2b-256 2beaf7cf5baa4055e1cc8dc508fdcc385162d8d29d18d887bc03a39112c3f2e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ctd-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for ctd-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86705613a13fa142e1c95dcae98f741c7c3aa1e44a261973539d8d17d5403457
MD5 bbc01ace213bb967f3c64554632f73b7
BLAKE2b-256 eba0fec8e2a266d31c59326180cb94465e8775e15f3cb6e2a045110eee4e1b5a

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

1.4.5

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

This release

1.1.0 This release

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