python-ctd
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()
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)')
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ctd-1.0.0-py3-none-any.whl
(14.8 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c354b87d0ba4af2b39105ce1f2e91339da5d2bf2a869b8f74da6be5dab3dbaec
|
|
| MD5 |
459dfba16f60c8628d087c03187d0fa2
|
|
| BLAKE2b-256 |
82b8d10b51c66751a8c5915b65a68145d7956fe5c9c0a28245c2a13d9c111ade
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f1a3be07fc18987c1ec5a9dce5eb4cd4c9b567836ba93b4fe49edc4204f9677
|
|
| MD5 |
389faddd598770171d24bc9b695c4e37
|
|
| BLAKE2b-256 |
b4d44c668b2763f900e7ec7a9b2a25f24f78e754e913343f4a65478e6bf2197e
|