ctdam.proc.utils module

ctdam.proc.utils.default_seabird_exe_path()[source]

Creates a platform-dependent default path to the Sea-Bird exes.

Return type:

Path

ctdam.proc.utils.is_directly_measured_value(parameter)[source]

Returns whether a parameter has been measured via a sensor or is calculated.

Return type:

bool

ctdam.proc.utils.get_alignment_delay_and_correlation_values(processing_info)[source]

Finds the two numerical values in the processing output produced by the custom alignment tool. These are extracted separately for each sensor and sorted inside of list[tuple] structure.

Return type:

list

ctdam.proc.utils.fill_file_type_dir(file_type_dir, file, copy=True)[source]

Copies the target input and output files into individual type directories.

A ‘file type directory’ is a directory that is meant to collect all the file of the same file extension that accumulate over multiple processings. For typical Sea-Bird processings you usually end up with something like this:

root-dir
  • hex

  • cnv

  • XMLCON

  • btl

  • bl

  • hdr

Parameters:
  • file (Path)

  • copy (bool) – (Default value = True)

exception ctdam.proc.utils.BinnedDataError(file_name, step_name)[source]

Bases: Exception

A custom error to throw when binned data has been detected.