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)')
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.1.tar.gz
(112.8 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.1-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file ctd-1.4.1.tar.gz.
File metadata
- Download URL: ctd-1.4.1.tar.gz
- Upload date:
- Size: 112.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24c455e58399fbc102b28c37eedae0ff8206c9b012555999f35f252fd6760f67
|
|
| MD5 |
932a6709c6aff6722714f67abfded49a
|
|
| BLAKE2b-256 |
5eed25c26036bf490181e3e12f02af5d7445e18ed0de2f07ebd2a5b15aac2bfd
|
File details
Details for the file ctd-1.4.1-py3-none-any.whl.
File metadata
- Download URL: ctd-1.4.1-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fa2ac81ea6fca11c5b0855d62f7f218e0fd75fc3ccc3aac1508e3d5462b81c0
|
|
| MD5 |
87628f2be164e97a622418d5e247179a
|
|
| BLAKE2b-256 |
95d963dc3867bf6e6c7e1c3e3dad9eea4d9dda77f66a81ccf93559374972fde7
|