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
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()
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)')
Try it out on mybinder
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.4.tar.gz
(72.4 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.4.4-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file ctd-1.4.4.tar.gz.
File metadata
- Download URL: ctd-1.4.4.tar.gz
- Upload date:
- Size: 72.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84cc9b6add63d09ffe89e188d33f5c7b49e0b84a9741ef9229e403f971d9fc76
|
|
| MD5 |
28d9da4c2b7d764d5932b1dfde0cbeb7
|
|
| BLAKE2b-256 |
99d1b87dedccdaf5a79d37d0c16524d165a0faa13967d2f32547700de1b8840e
|
File details
Details for the file ctd-1.4.4-py3-none-any.whl.
File metadata
- Download URL: ctd-1.4.4-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb944d8ec3e5cfc8d56f03d85874000d57205429b4f9809e241469f274466334
|
|
| MD5 |
d2d68177c06578d1c703bd7991463f4c
|
|
| BLAKE2b-256 |
dd152b5d99c77587f63af96a61bd576e27afbc198ff38d2c6926f44c8e25f547
|