Non official package to handle the output of Sea-Bird's CTD.
Project description
This is a parser for Sea Bird CTD 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.
The variables names were based on the pcmdi standard name table
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:
cnvdump your_file.cnv
To convert a .cnv (CTD output) into a NetCDF file, run:
cnv2nc your_file.cnv
In a python script, one can use like this:
from seabird.cnv import fCNV
profile = fCNV(‘your_file.cnv’)
profile.attributes # It will return the header, as a dictionary.
profile.keys() # It will list the available variables.
profile[‘temperature2’] # If temperature2 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 offered under the PSFL.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file seabird-0.5.10.tar.gz
.
File metadata
- Download URL: seabird-0.5.10.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b23bee932ab1b6b961ea9fe603b4f0d10bbf44dd89023747d06307e3e67123a |
|
MD5 | 3b4139fed6a24b69ab3e20569adccdc9 |
|
BLAKE2b-256 | 57df8c8ea2e181b5c406caa832280f039476f78e2d07fd8f27201224396ce75b |