Skip to content

The tool modify_fates_paramfile.py could change the variable have other dimension? #1015

Answered by rgknox
LianGong98 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @LianGong98 , This is a great question and might help other users, so I'll re-open. Sorry for the delay. Below is a patch file I created to demonstrate how I would do this.

In the example, I want to change the hydraulic vulnerability parameter "fates_hydro_avuln_node". This is a 2d array, with dimensions PFT x hydraulic-organ. There are 4 hydraulic organs, and they are leaves, stems, transporting roots and absorbing roots (in that order). Note that this parameter, and every other 2D parameter in the parameter file, assumes that the PFT dimension is the outer dimension.

I create a "patch" file, that will direct a python script to read in a base CDL file "ie base_file", make the changes …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LianGong98
Comment options

@LianGong98
Comment options

@rgknox
Comment options

Answer selected by glemieux
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