You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ? -----========= E M P I R I C A L - Q U A N T I L E - M A P P I N G =========------
865
-
# @classmethod
866
-
# def empirical_quantile_mapping(
867
-
# cls,
868
-
# obs: xr.core.dataarray.DataArray,
869
-
# simh: xr.core.dataarray.DataArray,
870
-
# simp: xr.core.dataarray.DataArray,
871
-
# n_quantiles: int = 10,
872
-
# extrapolate: Union[str, None] = None,
873
-
# **kwargs,
874
-
# ) -> xr.core.dataarray.DataArray:
875
-
# """Method to adjust 1 dimensional climate data by empirical quantile mapping"""
876
-
# raise NotImplementedError(
877
-
# "Not implemented; please have a look at: https://svn.oss.deltares.nl/repos/openearthtools/trunk/python/applications/hydrotools/hydrotools/statistics/bias_correction.py "
878
-
# )
865
+
@classmethod
866
+
defempirical_quantile_mapping(
867
+
cls,
868
+
obs: xr.core.dataarray.DataArray,
869
+
simh: xr.core.dataarray.DataArray,
870
+
simp: xr.core.dataarray.DataArray,
871
+
n_quantiles: int=100,
872
+
extrapolate: Union[str, None] =None,
873
+
**kwargs,
874
+
) ->xr.core.dataarray.DataArray:
875
+
"""
876
+
Method to adjust 1-dimensional climate data by empirical quantile mapping
877
+
878
+
:param obs: The reference data set of the control period
879
+
(in most cases the observational data)
880
+
:type obs: xr.core.dataarray.DataArray
881
+
:param simh: The modeled data of the control period
882
+
:type simh: xr.core.dataarray.DataArray
883
+
:param simp: The modeled data of the scenario period (this is the data set
884
+
on which the bias correction takes action)
885
+
:type simp: xr.core.dataarray.DataArray
886
+
:param n_quantiles: Number of quantiles to respect/use, defaults to ``100``
887
+
:type n_quantiles: int, optional
888
+
:type kind: str, optional
889
+
:param extrapolate: Bounded range or extrapolate, defaults to ``None``
890
+
:type extrapolate: Union[str, None], optional
891
+
:return: The bias-corrected time series
892
+
:rtype: xr.core.dataarray.DataArray
893
+
:raises NotImplementedError: This method is not implemented
894
+
"""
895
+
raiseNotImplementedError(
896
+
"Not implemented; please have a look at: https://svn.oss.deltares.nl/repos/openearthtools/trunk/python/applications/hydrotools/hydrotools/statistics/bias_correction.py "
897
+
)
879
898
880
899
# ? -----========= Q U A N T I L E - D E L T A - M A P P I N G =========------
0 commit comments