Choose different values of the variable nyear (or nmonth, ndays) depending on the currently running model year #985
-
How to set up a runscript that allows to choose different values of the variable For example: Choose |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I think this should be possible with a normal choose block. https://esm-tools.readthedocs.io/en/latest/yaml.html?highlight=choose#switches-choose |
Beta Was this translation helpful? Give feedback.
-
Choosing the value for runscript variables like |
Beta Was this translation helpful? Give feedback.
Choosing the value for runscript variables like
nday
,nmonth
ornyear
is not possible. These variables are immutable and can therefore not be changed from the runscript.In order to run a simulation from 1.1.2000 to 31.12.2014 with
nyear: 5
and not ignoring the final date 31.12.2014, an easy solution would be to split the simulation into two. The first one running from 1.1.2000 to 31.12.2010 withnyear: 5
and the second run from 1.1.2014 to 31.12.2014 withnyear: 4
.This is a solution that most user propably do already.
By keeping
nyear: 5
the simulation will ignore the final date (31.12.2014) and run for the full chunk length ofnyear: 5
(until 31.12.2015).