Load CTD#
Castaway#
- ctdfjorder.loadctd.castaway.extract_lat_long_castaway(ctd_file_path)[source]#
Extracts the start latitude and longitude from a Castaway file.
- Parameters:
ctd_file_path (str) – The file path to the Castaway CTD file.
- Returns:
A tuple containing the latitude and longitude as strings, or None if not found.
- Return type:
tuple
- ctdfjorder.loadctd.castaway.extract_utc_cast_time(ctd_file_path)[source]#
Extracts the UTC cast time from a Castaway file and converts it to ISO 8601 format.
- Parameters:
ctd_file_path (str) – The file path of the Castaway file to extract the time from.
- Returns:
The cast time (UTC) of the Castaway file in ISO 8601 format, or None if not found.
- Return type:
datetime.datetime | None
- ctdfjorder.loadctd.castaway.load_file_castaway(castaway_file_path)[source]#
Loads and processes a Castaway CTD file.
- Parameters:
castaway_file_path (str) – The file path to the Castaway CTD file.
- Returns:
The processed Castaway CTD data.
- Return type:
pl.DataFrame
- Raises:
CTDError – If the Castaway CTD profile is empty or if no samples are found in the file, or if the start time is missing.
RBR#
- ctdfjorder.loadctd.rsk.load_file_rsk(rbr_file_path: str = None) DataFrame[source]#
Loads and processes an RSK file, extracting profiles and adding geospatial information.
- Parameters:
rbr_file_path (str, optional) – The file path to the RSK file.
- Returns:
The processed RSK file data.
- Return type:
pl.DataFrame
- Raises:
CTDError – If the RSK profile is empty or if no samples are found in the file.