xarray.Dataset.climepi.months_suitable#
- Dataset.climepi.months_suitable(suitability_var_name=None, suitability_threshold=0)#
Calculate the number of months suitable each year from monthly suitability data.
- Parameters:
suitability_var_name (
str, optional) – Name of the suitability variable to use. If not provided, the method will attempt to automatically select a suitable variable.suitability_threshold (
floatorint, optional) – Minimum suitability threshold for a month to be considered suitable. Default is 0.
- Returns:
xarray.Dataset– Dataset with a single non-bound data variable “months_suitable”.