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

Release files for ctd 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ctd 1.5.0
File Size Uploaded
ctd-1.5.0.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ctd 1.5.0
File Interpreter ABI Platform
ctd-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.5 kB

Release files / ctd-1.5.0.tar.gz

Download URL ctd-1.5.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
09ded6c3d595282a530924ccc1d2591fdf32bcd3d949dc0cd390c95353f1827d
BLAKE2b-256 checksum
How to use checksums
1009c8a69df0b33c40c270b2825ae9ec24a8601253c5e22a22e437758f745c4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Release files / ctd-1.5.0-py3-none-any.whl

Download URL ctd-1.5.0-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
142d9832ffd7cde9ca763adf11b5e63d1294f9131da0a24559101ab601ac100c
BLAKE2b-256 checksum
How to use checksums
ee3266629557e78ed58cfc09366ccfea1c2b5d5fa96a1a5480e9dafc5dc5cc78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

1 release file

0.2.1

1 release file

0.1.0

1 release 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