argopy.extensions.OpticalModeling.Z_iPAR_threshold#
- OpticalModeling.Z_iPAR_threshold(axis: str = 'PRES', par: str = 'DOWNWELLING_PAR', threshold: float = 15.0, tolerance: float = 5.0, inplace: bool = True) DataArray | Dataset[source]#
Depth where PAR reaches some threshold value (closest point)
- Parameters:
axis (str, optional, default='PRES') β Name of the pressure axis to use.
par (str, optional, default='DOWNWELLING_PAR') β Name of the PAR variable to use.
threshold (float, optional, default: 15.) β Target value for
par.tolerance (float, optional, default: 5.) β PAR value tolerance with regard to the target threshold. If the closest PAR value to
thresholdis distant by more thantolerance, consider result invalid and return NaN.inplace (bool, optional, default: True) β Should we return the new variable (False) or the dataset with the new variable added to it (True).
- Returns:
Z_iPAR as a
xarray.DataArrayor, if theinplaceargument is True, dataset is modified in-place with new variableZ_iPAR.- Return type:
See also
Dataset.argo.optic,argopy.utils.optical_modeling.Z_iPAR_thresholdNotes
This is the closest level $z$ in the vertical axis for which PAR is about a threshold value $t$, with some tolerance $epsilon$:
\[z | abs(PAR(z) - t) < \epsilon\]A default value of 15 is used because it is the theoretical value below which the Fchla is no longer quenched (For correction of NPQ purposes).