Skip to main content

Parser for Sea-Bird's CTD and TSG

Project description

https://zenodo.org/badge/4645/castelao/seabird.svg https://readthedocs.org/projects/seabird/badge/?version=latest https://img.shields.io/travis/castelao/seabird.svg https://codecov.io/gh/castelao/seabird/branch/master/graph/badge.svg https://img.shields.io/pypi/v/seabird.svg https://mybinder.org/badge_logo.svg

This is a parser for Sea Bird CTD and TSG output files.

The Sea Bird CTD post processed data usually uses the .cnv extention. The purpose of the PySeabird is to parse this type of files, considering the different versions along the time, as well as different setups.

At this point my goal is to have an object with the attributes parsed from the header, and the data as Masked Arrays, so that the user doesn’t need to loose time evaluating the version and details of that cnv, but have it in a standard pattern, ready to use.

ATENTION, this is not an official package, so if you have trouble with it, do not complain to Sea-Bird. Open an issue at GitHub (https://github.com/castelao/seabird/issues), and I’ll try to help you.

Support and Documentation

The documentation is available at seabird.readthedocs.org.

The Seasoft manual might be the best reference for the format used.

If PySeabird doesn’t work with your .cnv files, send me a sample (just one .cnv) and I’ll fix to run it. The SeaBird changed the format several times along the time, so I need to see what do you have, to adjust PySeabird to work with it.

Quick howto use

To install:

pip install seabird

One way to use is running on the shell the cnvdump. Independent of the historical version of the cnv file, it will return a default structure:

seabird cnvdump your_file.cnv

To convert a .cnv (CTD output) into a NetCDF file, run:

seabird cnv2nc your_file.cnv

In a python script, one can use like this:

from seabird.cnv import fCNV

profile = fCNV(‘your_file.cnv’)

profile.attrs # It will return the header, as a dictionary.

profile.keys() # It will list the available variables.

profile[‘TEMP2’] # If TEMP2 was on the .keys(), this is how you get the data. It will be a masked array.

Check the example notebooks: http://nbviewer.ipython.org/github/castelao/seabird/tree/master/docs/notebooks/

License

seabird is licensed under a 3-clause BSD style license - see LICENSE.rst

Authors

Guilherme Castelão <guilherme@castelao.net> and Luiz Irber <luiz.irber@gmail.com>

Project details


Download files

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

Source Distribution

seabird-0.12.0.tar.gz (294.6 kB view details)

Uploaded Source

Built Distribution

seabird-0.12.0-py2.py3-none-any.whl (26.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file seabird-0.12.0.tar.gz.

File metadata

  • Download URL: seabird-0.12.0.tar.gz
  • Upload date:
  • Size: 294.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.16

File hashes

Hashes for seabird-0.12.0.tar.gz
Algorithm Hash digest
SHA256 f5902a3e795946f09e711a02e0b2dcc7efa782d5238cab5de2e2858d72af27aa
MD5 f7805f0106bbcc31352d988294fd5e32
BLAKE2b-256 099b0d78dbb97ddf4aba17f6c0d729409e994ba3b6c28211107d48b3744b81c3

See more details on using hashes here.

File details

Details for the file seabird-0.12.0-py2.py3-none-any.whl.

File metadata

  • Download URL: seabird-0.12.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.16

File hashes

Hashes for seabird-0.12.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a26934d2dcbbc32a81ac1f8f1a5922799bb7d6016c7031547bd14b24580cd812
MD5 a0874830aca115ef491a9c2d763bd4f8
BLAKE2b-256 c9c932a34c894ab90880a4d94fb542f20f9d536b7aa252edb2d1531dee4f0d5c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page