Usage
This is a code library that is not meant to be run on its own, so no cli or other kind of entrypoint is available.
The individual parsers are meant to be intuitive python representations of the respective text files. They provide basic sorting of the individual information bits present in each file.
At the moment, the .cnv file parser is the most advanced one, tested on a wide variety of CNVs, obtained on different german research vessels and operated by wildly different personnel from the various german marine research institutions.
from seabirdfilehandler import CnvFile
cnv = CnvFile('path_to_file', create_dataframe=True)
# access data as pandas dataframe:
cnv.df
# access data as numpy array:
cnv.parameters.full_data_array
# check for a certain parameters presence:
if 'Oxygen' in cnv.parameters.get_parameter_names():
# do something
# export data back to cnv format:
cnv.to_cnv('some_new_name.cnv')