seabirdfilehandler.cast_borders module

seabirdfilehandler.cast_borders.smoothing(x)[source]
Return type:

ndarray

seabirdfilehandler.cast_borders.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]

Gets the borders of a given cast.

Return type:

dict

seabirdfilehandler.cast_borders.get_downcast_end(smoothed_pressure, first_derivative, second_derivative)[source]

Gets the downcast end of a given cast, accounting for heave due to waves. Returns the index of the highest pressure where the descent rate is below min_descent_rate.

Return type:

int

Parameters:

pressurenp.ndarray

The pressure array.

Returns:

: The index of the end of the downcast.

seabirdfilehandler.cast_borders.get_downcast_start(first_derivative, second_derivative, base_data_size, min_soak_window=100, max_fd_quotient=6, prominence_divisor=7, win_size_divisor=500, min_velocity_quotient=15, min_velocity=0.045)[source]

Gets the downcast start of a given cast, removing soaking/waiting time. Returns the index where the CTD begins to continuously move downward.

Return type:

Tuple[int, list, list]

Parameters:

pressurenp.ndarray

The pressure array.

Returns:

: The index of the start of the downcast.

seabirdfilehandler.cast_borders.get_upcast_start(ind_dc_end, smooth_velo)[source]
Return type:

int | None

seabirdfilehandler.cast_borders.get_upcast_end(ind_dc_end, smooth_velo)[source]
Return type:

int | None