Open CeresBarros opened 1 year ago
I looked at the LANDIS-II documentation for Biomass Succession Extension v3.2.1 and there it says that a year 0 must be present in speciesEcoregion
. I wonder if this is the reason behind the "rescaling" of years mentioned above.
Biomass_core does the following during
init
I believe this ensures that when there are trait values for years lower than
successionTimestep
, the simulation uses the last available year prior tosuccessionTimestep
. I am unsure why this is important and think this can be problematic when the user supplies a table that has species traits calculated for several years of the simulation. WhencohortData
andspeciesEcoregion
are joined usingupdateSpeciesEcoregionAttributes
the function searches for traits withyear <= time(sim)
and from those takes themax(year)
. Hence, given the code above the following will happenstart(sim) == 0
toend(sim) == 100
, with asuccessionTimestep == 10
, all trait values for years 0-9 are ignored.start(sim) == 2000
toend(sim) == 2100
, irrespective of the time step, all years will be "rescaled" to 0-100 meaning that again only the last available year of values is used during the simulation.I am unsure of the true intention of the code snippet posted above, as there are no comments. So I ask @eliotmcintire, @achubaty , @ianmseddy if you have any clue as to what the code is trying to achieve (if different from my interpretation) and also whether it would be possible to think of a way that preserves the original years in the table