processing.modules.create_bottlefile module

Inheritance diagram of processing.modules.create_bottlefile
exception processing.modules.create_bottlefile.InvalidArgumentCombination[source]

Bases: Exception

Exception raised when an invalid combination of arguments is provided.

class processing.modules.create_bottlefile.OwnBtlFile(cnv=None, blf=None, path_to_file='')[source]

Bases: DataFile

create_btl()[source]
Return type:

str

processing.modules.create_bottlefile.create_bottle_file(input='', parameters={}, output_name='')[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

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