Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Tools to load hydrographic data as DataFrames

Project description

python-ctd

DOI Build Status PyPI Build status Llicense

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()

Bad Processing

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)')

Good Processing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ctd-1.0.0-py3-none-any.whl (14.8 kB) Copy SHA256 hash SHA256 Wheel py3
ctd-1.0.0.tar.gz (31.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page