glidertools.physics.mixed_layer_depth¶
-
glidertools.physics.
mixed_layer_depth
(dives, depth, dens_or_temp, thresh=0.01, ref_depth=10, return_as_mask=False)¶ Calculates the MLD for ungridded glider array.
You can provide density or temperature. The default threshold is set for density (0.01).
Parameters: - dens_or_temp (array, dtype=float, shape=[n, ]) – temperature/density of the entire dataset
- depth (array, dtype=float, shape=[n, ]) – depth for each measurement
- dives (array, dtype=float, shape=[n, ]) – will be used to calculate MLD per dive
- thresh (float=0.01) – threshold for difference
- ref_depth (float=10) – reference depth for difference
- return_as_mask (bool=False) – sets output to be a mask or an array of depth values
Returns: mld – will be a mask of shape=[n, ] or an array of depths the length of the number of unique dives.
Return type: array