glidertools.utils.calc_dive_phase
- glidertools.utils.calc_dive_phase(time, depth, dive_depth_threshold=15)
Determine the glider dive phase
- Parameters:
time (np.array [datetime64]) – glider time dimension
depth (np.array [float]) – depth (m) or pressure (dbar) if depth not avail
dive_depth_threshold ([float]) – minimum dive depth (m or dbar), should be less than your most shallow dive
- Returns:
phase – phase according to the EGO dive phases
- Return type:
np.array [int]