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.6.tar.gz
(72.1 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.6-py3-none-any.whl
(15.6 kB
view details)
File details
Details for the file ctd-1.4.6.tar.gz.
File metadata
- Download URL: ctd-1.4.6.tar.gz
- Upload date:
- Size: 72.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19d2f29300added26d947740a609874588dccd57e0e48c459743bf11923ab764
|
|
| MD5 |
7188b343769c0cb73d99ff4126a8b7be
|
|
| BLAKE2b-256 |
864e2cac30ebd933e1e0b09a40bf867c5d41cd0462d0ac6d9194bc31c865011d
|
File details
Details for the file ctd-1.4.6-py3-none-any.whl.
File metadata
- Download URL: ctd-1.4.6-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f91f85e815da08162ba8e71b642d610a42cbd73315182e915a3ff10d3b11c04
|
|
| MD5 |
72fce82292a5176b46247defbeaab20f
|
|
| BLAKE2b-256 |
458673cfb8d5b2d9f4feab650e0990d37dfc245b317352105d09e0fd6132cef2
|