Skip to main content

python-ctd

DOI Build Status PyPI Build status Llicense

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,

import pandas as pd
import ctd

cast = pd.DataFrame.ctd.read_cnv('g01l06s01.cnv.gz')
downcast, upcast = cast.split()
fig, ax = downcast['t090C'].plot_cast()

Bad Processing

We can do better:

downcast, upcast = cast.split()

temperature = downcast['t090C']

fig, ax = plt.subplots(figsize=(5.5, 6))
temperature.plot_cast(ax=ax)
temperature.remove_above_water()\
           .despike()\
           .lp_filter()\
           .press_check()\
           .bindata()\
           .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.0.0.tar.gz (31.0 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.0.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ctd-1.0.0.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for ctd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c354b87d0ba4af2b39105ce1f2e91339da5d2bf2a869b8f74da6be5dab3dbaec
MD5 459dfba16f60c8628d087c03187d0fa2
BLAKE2b-256 82b8d10b51c66751a8c5915b65a68145d7956fe5c9c0a28245c2a13d9c111ade

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ctd-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for ctd-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f1a3be07fc18987c1ec5a9dce5eb4cd4c9b567836ba93b4fe49edc4204f9677
MD5 389faddd598770171d24bc9b695c4e37
BLAKE2b-256 b4d44c668b2763f900e7ec7a9b2a25f24f78e754e913343f4a65478e6bf2197e

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

1.1.0

2 files

This release

1.0.0 This release

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