DrylandEcology / rSFSTEP2

R program that interfaces with the STEPWAT2 C code and runs in parallel for multiple sites, climate scenarios, disturbance regimes, and time periods
0 stars 1 forks source link

New algorithm for rescaling % live fractions returned by scale_phenology #224

Closed kpalmqui closed 4 years ago

kpalmqui commented 4 years ago

Currently, we rescale the % live fractions return by scale_phenology by rescaling the dervied values to sum to the sum of the default values in InputData_PctLive.csv.

This implementation results in some undesirable outcomes. In particularly, for sites that are warmer than the default site, the peak is always compressed, while the opposite is true for sites that are colder than the default site.

Warmer site: image

Colder site: image

Thus, @dschlaep and I have decided to change the way the % live fractions are rescaled. New algorithm:

for each month{
 pct_live[month] = pct_live[month] * max(pct_live_default) / max(pct_live)
}
kpalmqui commented 4 years ago

Some initial Figures from current conditions and one future scenario that indicate the impact of the new implementation. More testing Figures to follow.

p cool grass_1-2_pctlive_graph

a cool grass_1-2_pctlive_graph

sagebrush_1-2_pctlive_graph

kpalmqui commented 4 years ago

We have decide to also implement this new scaling for litter fractions.

kpalmqui commented 4 years ago

Closed by a7c6c60