How to assign a new global variable in CWatM? #23
-
Hello, I wonder how to create a new global variable in CWatM and output it, just as the variables after "self.var."? Could you please help me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, For example: you can add this line to the groundwater.py module to create the variable "baseflow2": Best, |
Beta Was this translation helpful? Give feedback.
Hi,
yes you just have to create a variable using "self.var", but the variable format should be the same than the other variables (compressed in 1D). Then, you can add this new variable at the end of your settings file.
For example: you can add this line to the groundwater.py module to create the variable "baseflow2":
self.var.baseflow2 = self.var.baseflow * 2
and in the settings file in the [OUTPUT] section : "OUT_MAP_Daily = baseflow2"
Best,
Luca