glidertools.utils.calc_dive_phase¶
-
glidertools.utils.
calc_dive_phase
(time, depth)¶ 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
Returns: phase – phase according to the EGO dive phases
Return type: np.array [int]