There is code which is specific for the CNP version. It writes a couple of restart variables which contain redundant information but help to reduce the number of model years to reduce the biases from the initialisation of ORCHIDEE steady state from restart files produced by the tool.
The issue: the list of variables is hard coded in main.py but should be controlled by varlist.json.
The solution: add an additional entry to {resp} which contains the list of variables.
I propose to add the following lines:
varlist.json, {resp} entry:
"additional_vars":["npp_daily","npp_week","gpp_week","maxgppweek_lastyear", "gpp_daily"],
main.py:
replace:
vars=['npp_daily','npp_week','gpp_week','maxgppweek_lastyear', 'gpp_daily']
with
additional_vars=varlist['resp']['additional_vars']
and
for var in vars:
with
for var in additional_vars:
I started a test run 1st June 10:11. If sucessful I will update the code
There is code which is specific for the CNP version. It writes a couple of restart variables which contain redundant information but help to reduce the number of model years to reduce the biases from the initialisation of ORCHIDEE steady state from restart files produced by the tool.
The issue: the list of variables is hard coded in main.py but should be controlled by varlist.json. The solution: add an additional entry to {resp} which contains the list of variables.
I propose to add the following lines: varlist.json, {resp} entry:
"additional_vars":["npp_daily","npp_week","gpp_week","maxgppweek_lastyear", "gpp_daily"],
main.py: replace:
vars=['npp_daily','npp_week','gpp_week','maxgppweek_lastyear', 'gpp_daily']
withadditional_vars=varlist['resp']['additional_vars']
and
for var in vars:
withfor var in additional_vars:
I started a test run 1st June 10:11. If sucessful I will update the code