Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch script for generating parameter file from a diff file #765

Merged
merged 8 commits into from
Sep 27, 2021

Conversation

rgknox
Copy link
Contributor

@rgknox rgknox commented Jul 21, 2021

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:

  • [] I have updated the in-code documentation .AND. (the technical note .OR. the wiki) accordingly.
  • I have read the CONTRIBUTING document.

Test Results:

I've tested the scripts and they generate expected output.

@rgknox rgknox requested a review from ckoven July 21, 2021 14:58
@rgknox rgknox merged commit 70a3e13 into NGEET:master Sep 27, 2021
@rgknox rgknox deleted the mod-e3sm-testparam branch October 31, 2023 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant