ctdam.conv package

Submodules

Module contents

ctdam.conv.get_cast_borders(pressure, downcast_only=True, min_size_factor=0.01, min_soak_window=100, max_fd_quotient=6, prominence_divisor=7, win_size_divisor=500, min_velocity_quotient=15, min_velocity=0.045)[source]

Calculates start and end points of one CTD cast.

Uses first (fd) and second derivatives (sd) for that. Relies on carefully fine-tuned parameters that are set as default values. These can be fit to any kind of CTD data.

Parameters:
  • pressure (ndarray) – Pressure array

  • downcast_only (bool) – Whether to only work with downcast data (Default value = True)

  • min_size_factor (float) – Factor to check final dataset size against (Default value = 0.01)

  • min_soak_window (int) – Downcast_start: minimum size of soaking window (Default value = 100)

  • max_fd_quotient (int) – Downcast_start: Cut-off of fd height (Default value = 6)

  • prominence_divisor (int) – Downcast_start: Minimum size of sd peak prominence (Default value = 7)

  • win_size_divisor (int) – Downcast_start: Search window size to check fd means (Default value = 500)

  • min_velocity_quotient (int) – Downcast_start: Minimum velocity cut-off (Default value = 15)

  • min_velocity (float) – Downcast_start: Minimum velocity cut-off (Default value = 0.045)

Return type:

dict

ctdam.conv.oxygen_umolperl_to_umolperkg(data, potential_density)[source]
Return type:

ndarray

ctdam.conv.oxygen_mlperl_to_umolperkg(data, potential_density)[source]
Return type:

ndarray

ctdam.conv.oxygen_umolperkg_to_umolperl(data, potential_density)[source]
Return type:

ndarray

ctdam.conv.oxygen_mlperl_to_umolperl(data)[source]
Return type:

ndarray

ctdam.conv.get_potential_density(practical_salinity, temperature, pressure, longitude, latitude)[source]
Return type:

ndarray