@@ -521,9 +521,9 @@ def local_exceedance_intensity(
521521 If set to True, intensity values are converted to log scale before
522522 inter- and extrapolation. Defaults to True.
523523 bin_decimals : int, optional
524- This parameter is only used if method is set to "extrapolate". Number of decimals
525- for the binning of the intensity values, see Notes. If None,
526- intensity values are not binned. Defaults to None.
524+ Number of decimals to group and bin intensity values. Binning results in smoother (and
525+ coarser) interpolation and more stable extrapolation. For more details and sensible
526+ values for bin_decimals, see Notes. If None, values are not binned. Defaults to None.
527527
528528 Returns
529529 -------
@@ -544,11 +544,15 @@ def local_exceedance_intensity(
544544
545545 Notes
546546 -------
547- If method = "extrapolate" and an integer bin_decimals is provided, intensites are binned
548- according to their bin_decimals decimal places. This results in a smoother (and coarser)
549- interpolation, and a more stable extrapolation. The default bin_decimals=None results in
550- not binning the values. For more information about the binning, see
551- climada.util.interpolation.preprocess_and_interpolate_ev().
547+ If an integer bin_decimals is given, the intensity values are binned according to their
548+ bin_decimals decimals, and their corresponding frequencies are summed. This binning leads
549+ to a smoother (and coarser) interpolation, and a more stable extrapolation. For instance,
550+ if bin_decimals=1, the two values 12.01 and 11.97 with corresponding frequencies 0.1 and
551+ 0.2 are combined to a value 12.0 with frequency 0.3. The default bin_decimals=None results
552+ in not binning the values.
553+ E.g., if your intensities range from 1 to 100, you could use bin_decimals=1, if your
554+ intensities range from 1e6 to 1e9, you could use bin_decimals=-5, if your intensities
555+ range from 0.0001 to .01, you could use bin_decimals=5.
552556 """
553557 if not min_intensity and min_intensity != 0 :
554558 min_intensity = self .intensity_thres
@@ -672,9 +676,9 @@ def local_return_period(
672676 If set to True, intensity values are converted to log scale before
673677 inter- and extrapolation. Defaults to True.
674678 bin_decimals : int, optional
675- This parameter is only used if method is set to "extrapolate". Number of decimals
676- for the binning of the intensity values, see Notes. If None,
677- intensity values are not binned. Defaults to None.
679+ Number of decimals to group and bin intensity values. Binning results in smoother (and
680+ coarser) interpolation and more stable extrapolation. For more details and sensible
681+ values for bin_decimals, see Notes. If None, values are not binned. Defaults to None.
678682
679683
680684 Returns
@@ -696,11 +700,15 @@ def local_return_period(
696700
697701 Notes
698702 -------
699- If method = "extrapolate" and an integer bin_decimals is provided, intensites are binned
700- according to their bin_decimals decimal places. This results in a smoother (and coarser)
701- interpolation, and a more stable extrapolation. The default bin_decimals=None results in
702- not binning the values. For more information about the binning, see
703- climada.util.interpolation.preprocess_and_interpolate_ev().
703+ If an integer bin_decimals is given, the intensity values are binned according to their
704+ bin_decimals decimals, and their corresponding frequencies are summed. This binning leads
705+ to a smoother (and coarser) interpolation, and a more stable extrapolation. For instance,
706+ if bin_decimals=1, the two values 12.01 and 11.97 with corresponding frequencies 0.1 and
707+ 0.2 are combined to a value 12.0 with frequency 0.3. The default bin_decimals=None results
708+ in not binning the values.
709+ E.g., if your intensities range from 1 to 100, you could use bin_decimals=1, if your
710+ intensities range from 1e6 to 1e9, you could use bin_decimals=-5, if your intensities
711+ range from 0.0001 to .01, you could use bin_decimals=5.
704712 """
705713 if not min_intensity and min_intensity != 0 :
706714 min_intensity = self .intensity_thres
0 commit comments