glidertools.utils.calc_dive_number
- glidertools.utils.calc_dive_number(time, depth, dive_depth_threshold=15)
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
dive_depth_threshold ([float]) – minimum dive depth (m or dbar), should be less than your most shallow dive
- Returns:
dive_number – the dive number where down dives are x.0 and up dives are x.5
- Return type:
np.ndarray [float]