The ctdcal project is a library designed to process CTD cast data and calibrate them against taken bottle samples, and scripts providing an example case of how to use the library.
In the future parts of the ctdcal library will be split off into additional packages, such as an "ocean sensors" package with Python implementations of conversion routines for in-situ sensors used for ocean measurement.
Run python setup.py
Dependencies:
Once installed, copy the test data set into the working directory. Afterwards go into the working directory and type:
This will run the scripts against the currently loaded data.
BSD 3-clause
usage: odf_convert_sbe.py [-h] [-d] [-r] [-o destDir] hex_file XMLCON_file
positional arguments:
hex_file the .hex data file to process
XMLCON_file the .XMLCON data file to process
optional arguments:
-h, --help show this help message and exit
-d, --debug display debug messages
-r, --raw return the raw data values
-o dest_dir location to save output files
usage: bottle.py [-h] [-o output file] [-d] cnv_file
positional arguments:
cnv_file the converted csv-formatted file to process
optional arguments:
-h, --help show this help message and exit
-o output_file name and location of output file
-d, --debug display debug messages
usage: odf_process_ctd.py [-h] [-d] [-i cnv_file] [-o dest_dir] ini_file
positional arguments:
ini_file the .ini file to use for processing
optional arguments:
-h, --help show this help message and exit
-d, --debug display debug messages
-i cnv_file the converted, csv-formatted ctd data to process, this
argument overrides any data file specified in the .ini file
-o dest_dir location to save output files
usage: sampleImport.py [-h] [-d] converted_File
positional arguments:
cnv_file the converted, csv-formatted data file to process
optional arguments:
-h, --help show this help message and exit
-d, --debug display debug messages
usage: sampleExport.py [-h] [-d] [-w] converted_file output_file
positional arguments:
cnv_file the converted, csv-formatted data file to import to a dataframe
output_file the filename to export the dataframe to
optional arguments:
-h, --help show this help message and exit
-d, --debug display debug messages
-w, --overwrite overwrite the pre-existing output file if found
usage: sampleConvert.py [-h] [-d] hex_file XMLCON_file
positional arguments:
hex_file the .hex data file to process
XMLCON_file the .XMLCON data file to process
optional arguments:
-h, --help show this help message and exit
-d, --debug display debug messages
BSD 3-clause