@@ -495,8 +495,7 @@ def local_exceedance_intensity(
495495 ):
496496 """Compute local exceedance intensity for given return periods. The default method
497497 is fitting the ordered intensitites per centroid to the corresponding cummulated
498- frequency with linear interpolation on log-log scale. Intensities are binned according
499- to their n_sig_dig significant digits, see Notes.
498+ frequency with linear interpolation on log-log scale.
500499
501500 Parameters
502501 ----------
@@ -519,16 +518,15 @@ def local_exceedance_intensity(
519518 Minimum threshold to filter the hazard intensity. If set to None, self.intensity_thres
520519 will be used. Defaults to None.
521520 log_frequency : bool, optional
522- This parameter is only used if method is set to "interpolate". If set to True,
523- (cummulative) frequency values are converted to log scale before inter- and
524- extrapolation. Defaults to True.
521+ If set to True, (cummulative) frequency values are converted to log scale before
522+ inter- and extrapolation. Defaults to True.
525523 log_intensity : bool, optional
526- This parameter is only used if method is set to "interpolate". If set to True,
527- intensity values are converted to log scale before inter- and extrapolation.
528- Defaults to True.
529- n_sig_dig : int, optional
530- Number of significant digits for the binning of the intensity values, see Notes.
531- Defaults to 3 .
524+ If set to True, intensity values are converted to log scale before
525+ inter- and extrapolation. Defaults to True .
526+ bin_decimals : int, optional
527+ This parameter is only used if method is set to "extrapolate". Number of decimals
528+ for the binning of the intensity values, see Notes. If None,
529+ intensity values are not binned. Defaults to None .
532530
533531 Returns
534532 -------
@@ -549,12 +547,11 @@ def local_exceedance_intensity(
549547
550548 Notes
551549 -------
552- Contrary to Impact.calc_freq_curve(), intensities are binned according to their n_sig_dig
553- significant digits. This results in a smoother (and coarser) interpolation, and a
554- more stable extrapolation. To not bin the values, please use a large value for n_sig_dig,
555- e.g., n_sig_dig=7. For more information about the binning, see
556- util.interpolation.preprocess_and_interpolate_ev().
557-
550+ If method = "extrapolate" and an integer bin_decimals is provided, intensites are binned
551+ according to their bin_decimals decimal places. This results in a smoother (and coarser)
552+ interpolation, and a more stable extrapolation. The default bin_decimals=None results in
553+ not binning the values. For more information about the binning, see
554+ climada.util.interpolation.preprocess_and_interpolate_ev().
558555 """
559556 if not min_intensity and min_intensity != 0 :
560557 min_intensity = self .intensity_thres
@@ -648,8 +645,7 @@ def local_return_period(
648645 ):
649646 """Compute local return periods for given hazard intensities. The default method
650647 is fitting the ordered intensitites per centroid to the corresponding cummulated
651- frequency with linear interpolation on log-log scale. Intensities are binned according
652- to their n_sig_dig significant digits, see Notes.
648+ frequency with linear interpolation on log-log scale.
653649
654650 Parameters
655651 ----------
@@ -673,16 +669,16 @@ def local_return_period(
673669 Minimum threshold to filter the hazard intensity. If set to None, self.intensity_thres
674670 will be used. Defaults to None.
675671 log_frequency : bool, optional
676- This parameter is only used if method is set to "interpolate". If set to True,
677- (cummulative) frequency values are converted to log scale before inter- and
678- extrapolation. Defaults to True.
672+ If set to True, (cummulative) frequency values are converted to log scale before
673+ inter- and extrapolation. Defaults to True.
679674 log_intensity : bool, optional
680- This parameter is only used if method is set to "interpolate". If set to True,
681- intensity values are converted to log scale before inter- and extrapolation.
682- Defaults to True.
683- n_sig_dig : int, optional
684- Number of significant digits for the binning of the intensity values, see Notes.
685- Defaults to 3.
675+ If set to True, intensity values are converted to log scale before
676+ inter- and extrapolation. Defaults to True.
677+ bin_decimals : int, optional
678+ This parameter is only used if method is set to "extrapolate". Number of decimals
679+ for the binning of the intensity values, see Notes. If None,
680+ intensity values are not binned. Defaults to None.
681+
686682
687683 Returns
688684 -------
@@ -703,10 +699,10 @@ def local_return_period(
703699
704700 Notes
705701 -------
706- Contrary to Impact.calc_freq_curve(), intensities are binned according to their n_sig_dig
707- significant digits . This results in a smoother (and coarser) interpolation, and a
708- more stable extrapolation. To not bin the values, please use a large value for n_sig_dig,
709- e.g., n_sig_dig=7 . For more information about the binning, see
702+ If method = "extrapolate" and an integer bin_decimals is provided, intensites are binned
703+ according to their bin_decimals decimal places . This results in a smoother (and coarser)
704+ interpolation, and a more stable extrapolation. The default bin_decimals=None results in
705+ not binning the values . For more information about the binning, see
710706 climada.util.interpolation.preprocess_and_interpolate_ev().
711707 """
712708 if not min_intensity and min_intensity != 0 :
0 commit comments