batch script for generating parameter file from a diff file #765
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This set of changes add the scripting capability to generate a fates parameter file from a base file, using diff file. The diff file uses and XML format, and contains the list of PFTs to maintain from the original file, and the list of parameters that should be changed from the original file.
This new scripting makes use of already existing scripts modify_fates_paramfile.py and FatesPFTIndexSwapper.py to do most of the work.
The input here is the cdl file. The scripting has the same python dependencies as the existing python scripts it uses, but also now assumes that the netcdf command-line utilities ncdump and ncgen are available as system calls.
Fixes: #761
Fixes: #763
Expectation of Answer Changes:
Does not affect the FATES code, ancillary scripting only
Checklist:
Test Results:
I've tested the scripts and they generate expected output.