Exceptions#

exception ctdfjorder.exceptions.exceptions.CTDCorruptError(filename=None)[source]#

Exception raised when a Ruskin file is corrupted and cannot be read.

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.CTDError(message, filename=None)[source]#

Base exception class for CTD-related errors.

Parameters:
  • message (str) – Explanation of the error.

  • filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.CorruptMasterSheetError(filename=None)[source]#

Exception raised when master sheet is corrupt.

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.DensityCalculationError(filename=None)[source]#

Exception raised when density calculation fails.

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.InvalidCTDFilenameError(filename=None)[source]#

Exception raised when a CTD filename has an invalid ending.

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.InvalidLocationDataError(filename=None)[source]#

Exception raised when location data is invalid, possibly due to malformed master sheet data.

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.MLDDepthRangeError(filename=None)[source]#

Exception raised when the depth range is insufficient to calculate Mixed Layer Depth (MLD).

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.MissingMasterSheetError(filename=None)[source]#

Exception raised when no master sheet is provided.

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.MissingTimestampError(filename=None, source='file')[source]#

Exception raised when there is no timestamp in the file or master sheet.

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.NoLocationError(filename=None)[source]#

Exception raised when no location could be found.

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.NoSamplesError(filename=None, func=None)[source]#

Exception raised when a function that requires samples as input is called on a CTD object with no samples.

Parameters:

filename (str, optional) – Input dataset which caused the error.

exception ctdfjorder.exceptions.exceptions.SalinityCalculationError(filename=None)[source]#

Exception raised when salinity absolute calculation fails.

Parameters:

filename (str, optional) – Input dataset which caused the error.

ctdfjorder.exceptions.exceptions.raise_warning_calculatuion(message, filename=None)[source]#

CTD calculation warning function.

Parameters:
  • filename (str, default None) – Input dataset which caused the error.

  • message (str) – Explanation of the error.

ctdfjorder.exceptions.exceptions.raise_warning_native_location(message, filename=None)[source]#

CTD location warning function.

Parameters:
  • filename (str, default None) – Input dataset which caused the error.

  • message (str) – Explanation of the error.