glidertools.utils.calc_dive_number¶
-
glidertools.utils.
calc_dive_number
(time, depth)¶ Determine the glider dive number (based on dive phase)
Parameters: - time (np.array [datetime64]) – glider time dimension
- depth (np.array [float]) – depth (m) or pressure (dbar) if depth not avail
Returns: dive_number – the dive number where down dives are x.0 and up dives are x.5
Return type: np.ndarray [float]