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,
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.1.1.tar.gz
(308.7 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.1.1-py3-none-any.whl
(14.8 kB
view details)
File details
Details for the file ctd-1.1.1.tar.gz.
File metadata
- Download URL: ctd-1.1.1.tar.gz
- Upload date:
- Size: 308.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200529 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0605bbbd182c8e3aaba8487559c8a1f0fc125738e38943678aaf3448326df011
|
|
| MD5 |
a0c70ae7926c5cc5ca32c645409c3ace
|
|
| BLAKE2b-256 |
bb0fcbef469ef7cb3fc5deef56a6e38b87ec95bfa5a1645bd63e44b4d3aceba9
|
File details
Details for the file ctd-1.1.1-py3-none-any.whl.
File metadata
- Download URL: ctd-1.1.1-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200529 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
936e5d3f51764e231b439db2f2b2d6e6c09155e360b09b7f32e03d3d1d223b72
|
|
| MD5 |
51f7233e1fd23ad50865f3335501216b
|
|
| BLAKE2b-256 |
d58b8d189db7c56807920388f7a2ec7a1296e8d085871d3d244a857f63617b49
|