ctdam.proc.modules.create_bottlefile module

exception ctdam.proc.modules.create_bottlefile.InvalidArgumentCombination[source]

Bases: Exception

Exception raised when an invalid combination of arguments is provided.

class ctdam.proc.modules.create_bottlefile.OwnBtlFile(ctd_data=None, blf=None, path_to_file='')[source]

Bases: object

create_btl()[source]
Return type:

str

ctdam.proc.modules.create_bottlefile.create_bottle_file(input='', arguments={}, output_name='', original_input_path='', **kwargs)[source]

Creates a custom bottle file, given a .cnv and .bl file.

The resulting file strongly adheres to the format of a regular .btl file. Specifically, the header is the same, only the data table features a different format. Its a 11-character wide tsv, as a cnv data table. In contrast to a .btl, only average values are used.

In general, this custom bottle file (.obtl) can be generated at any time during the CTD processing. This improves over the standard Sea-Bird variant that allows this only during .cnv creation using Datcnv. With the .obtl file one can ensure the very same data quality from a .cnv file inside a bottle file.

Return type:

OwnBtlFile | CTDData

ctdam.proc.modules.create_bottlefile.add_whitespace(data, space=11)[source]