Skip to content

Commit f612fff

Browse files
trop_cyclone.apply_climate_scenario_knu: make yearly_steps argument explicit
1 parent 0bcbc61 commit f612fff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

climada/hazard/trop_cyclone/trop_cyclone.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def apply_climate_scenario_knu(
380380
percentile: str = "50",
381381
scenario: str = "4.5",
382382
target_year: int = 2050,
383-
**kwargs,
383+
yearly_steps: int = 5,
384384
):
385385
"""
386386
From current TC hazard instance, return new hazard set with future events
@@ -422,6 +422,9 @@ def apply_climate_scenario_knu(
422422
'8.5' for RCP 8.5
423423
target_year : int
424424
future year to be simulated, between 2000 and 2100. Default: 2050.
425+
yearly_steps : int
426+
yearly resolution at which projections are provided. Default is 5 years.
427+
425428
Returns
426429
-------
427430
haz_cc : climada.hazard.TropCyclone
@@ -450,11 +453,11 @@ def apply_climate_scenario_knu(
450453
for basin in np.unique(tc_cc.basin):
451454
scale_year_rcp_05, scale_year_rcp_45 = [
452455
get_knutson_scaling_factor(
453-
percentile=percentile,
454456
variable=variable,
457+
percentile=percentile,
455458
basin=basin,
456459
baseline=(np.min(years), np.max(years)),
457-
**kwargs,
460+
yearly_steps=yearly_steps,
458461
).loc[target_year, scenario]
459462
for variable in ["cat05", "cat45"]
460463
]

0 commit comments

Comments
 (0)