Skip to content

How to assign a new global variable in CWatM? #23

Answered by guillaumot
jane-627 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jane-627
Comment options

@jane-627
Comment options

@guillaumot
Comment options

@jane-627
Comment options

Answer selected by jane-627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants