Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Tools to load hydrographic data as DataFrames

Project Description

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

pip install ctd

and then,

kw = dict(compression='gzip')
fname = './test/data/CTD/g01l06s01.cnv.gz'
cast = DataFrame.from_cnv(fname, **kw)
downcast, upcast = cast.split()
fig, ax = downcast['t090C'].plot()

We can do better:

from ctd import DataFrame, lp_filter, movingaverage
kw.update(below_water=True)
cast = DataFrame.from_cnv(fname, **kw)
downcast, upcast = cast.split()
temperature = downcast['t090C'].despike(n1=2, n2=20, block=100)
temperature.index = lp_filter(temperature.index.values)
temperature = temperature.bindata(delta=1)
temperature = temperature.interpolate()
temperature = temperature.smooth(window_len=21, window='hanning')
fig, ax = temperature.plot()
ax.axis([0, 30, 2000, 0])
ax.set_ylabel("Pressure [dbar]")
ax.set_xlabel(u'Temperature [\u00b0C]')

Not so quick intro

Profiles and sections.

Author

Filipe Fernandes

Changelog

Version 0.2.2

  • Support for different searbird cnv pressure spellings (‘prDM’ and ‘prdM’) thanks @j08lue.
  • Lazy import for optinal dependencies (gsw and scipy).
  • Several small bug fixes

Version 0.2.1

  • None is assigned to position data when it is not available.

Version 0.2.0

  • Fixed compatibility fir 0.13.

Version 0.1.0

  • First version derived from oceans package.
Release History

Release History

This version
History Node

0.3.0

History Node

0.2.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ctd-0.3.0.tar.gz (13.5 kB) Copy SHA256 Checksum SHA256 Source May 4, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting