glidertools.physics.mixed_layer_depth
- glidertools.physics.mixed_layer_depth(ds, variable, thresh=0.01, ref_depth=10, verbose=True)
Calculates the MLD for ungridded glider array.
You can provide density or temperature. The default threshold is set for density (0.01).
- Parameters:
ds (xarray.Dataset Glider dataset)
variable (str) – variable that will be used for the threshold criteria
thresh (float=0.01 threshold for difference of variable)
ref_depth (float=10 reference depth for difference)
return_as_mask (bool, optional)
verbose (bool, optional)
- Returns:
mld – will be an array of depths the length of the number of unique dives.
- Return type:
array