Skip to main content
DOI Version_status Build_status license

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

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]')
Good Processing

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.

Download files

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

Source Distribution

ctd-0.3.0.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file ctd-0.3.0.tar.gz.

File metadata

  • Download URL: ctd-0.3.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ctd-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c5144bf2200cd366fabacdd3c4dbe6cfd234a57beaf1aa221b159f5462bc4677
MD5 1dd5964f0af69aafe1369e99e32786c3
BLAKE2b-256 4374c9bfdcc1aeefa7aea4675c23a925e72dcac04d8df70b945fba5a9dcef916

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.0

2 files

1.4.7

2 files

1.4.6

2 files

1.4.5

2 files

1.4.4

2 files

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.4.0

2 files

This release

0.3.0 This release

1 file

0.2.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page