aldivi / caland

ca carbon accounting model
Other
7 stars 7 forks source link

Apply annual climate effects to baseline soil and veg c fluxes in CALAND() #34

Closed msimmond closed 6 years ago

msimmond commented 6 years ago

28 CALAND now reads in 2 new worksheets from the scenario files (i.e. annual climate scalars for veg and soil c fluxes). They are applied to the baseline c fluxes from carbon_input.xls within the annual loop.

I tested that the update works using a dummy scenario input file with the 2 new worksheets and all scalars equal to 1. The output file was equal to the previous version output.

msimmond commented 6 years ago

We're talking about this: climate_soil_df[,year-2005]. year always starts in 2010, and the annual climate effects start in the 5th column of the dataframe. Hence, starting in year 2010, the 5th column is selected, in year 2011, the 6th, and so on.

aldivi commented 6 years ago

Ah. I see now. But then it won’t work if the start year changes. Alan

-- Alan Di Vittorio, Ph.D. Lawrence Berkeley National Laboratory Climate and Ecosystem Sciences Division avdivittorio@lbl.gov 510-486-7798

On Feb 15, 2018, at 9:36 AM, Maegen Simmonds notifications@github.com wrote:

We're talking about this: climate_soil_df[,year-2005]. year always starts in 2010, and the annual climate effects start in the 5th column of the dataframe. Hence, starting in year 2010, the 5th column is selected, in year 2011, the 6th, and so on.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.