We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54433e0 commit 7241da8Copy full SHA for 7241da8
pyCIAM/io.py
@@ -310,14 +310,16 @@ def _load_lslr_for_ciam(
310
.set_index(scen_mc=ix_names)
311
)
312
313
- # interpolate to yearly
+ # add on base year where slr is 0
314
slr_out = slr_out.reindex(
315
year=np.concatenate(([slr_0_year], slr.year.values)),
316
fill_value=0,
317
318
319
+ # interpolate to desired years
320
if interp_years is not None:
321
slr_out = slr_out.interp(year=interp_years)
322
+
323
return slr_out
324
325
0 commit comments