ctdcal.process_bottle

Library to create SBE .btl equivalent files. TODO: allow for variable bottle fire scans instead of SBE standard 36

ex: user doesn’t know how to change the config for the cast to add more scans, instead does it post-cast?

Joseph Gum SIO/ODF Nov 7, 2016

Functions

add_btlnbr_cols

Initialize bottle number column and initialize WOCE bottle flags.

bottle_mean

Compute the mean for each bottle from a dataframe.

bottle_median

Compute the median for each bottle from a dataframe.

export_hy1

Write out the exchange-lite formatted hy1 bottle file.

export_report_data

Write out the data used for report generation as a csv.

load_all_btl_files

Load bottle and secondary (e.g. reference temperature, bottle salts, bottle oxygen) files for station/cast list and merge into a dataframe.

load_hy_file

Read in an exchange-formatted bottle file as a Pandas DataFrame.

process_reft

SBE35 reference thermometer processing function.

retrieveBottleData

Retrieve the bottle data from a dataframe created from a converted file.

retrieveBottleDataFromFile

Retrieve the bottle data from a converted file.