CALIPSO-project / SPINacc

A spinup acceleration procedure for land surface models (LSM)
4 stars 0 forks source link

ORCHIDEE-v3: Tool crashed when writing redundant restart variables #29

Closed dsgoll123 closed 1 year ago

dsgoll123 commented 1 year ago

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

dsgoll123 commented 1 year ago

closed