diff --git a/climada/hazard/trop_cyclone/trop_cyclone.py b/climada/hazard/trop_cyclone/trop_cyclone.py index ae01332ca..2a203ed53 100644 --- a/climada/hazard/trop_cyclone/trop_cyclone.py +++ b/climada/hazard/trop_cyclone/trop_cyclone.py @@ -380,7 +380,7 @@ def apply_climate_scenario_knu( percentile: str = "50", scenario: str = "4.5", target_year: int = 2050, - **kwargs, + yearly_steps: int = 5, ): """ From current TC hazard instance, return new hazard set with future events @@ -422,6 +422,9 @@ def apply_climate_scenario_knu( '8.5' for RCP 8.5 target_year : int future year to be simulated, between 2000 and 2100. Default: 2050. + yearly_steps : int + yearly resolution at which projections are provided. Default is 5 years. + Returns ------- haz_cc : climada.hazard.TropCyclone @@ -450,11 +453,11 @@ def apply_climate_scenario_knu( for basin in np.unique(tc_cc.basin): scale_year_rcp_05, scale_year_rcp_45 = [ get_knutson_scaling_factor( - percentile=percentile, variable=variable, + percentile=percentile, basin=basin, baseline=(np.min(years), np.max(years)), - **kwargs, + yearly_steps=yearly_steps, ).loc[target_year, scenario] for variable in ["cat05", "cat45"] ]