-
Notifications
You must be signed in to change notification settings - Fork 86
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
Ensure workflow can point to user-created and staged UPP flat file rather than default #271
Comments
From @JeffBeck-NOAA: I think a good option would be to create a user-definable variable in config_defaults.sh, maybe a path to the user's new flat file, telling the workflow to use that instead of sourcing from EMC_post. |
Tagging @hertneky here too so she can be in the loop. |
Are there additional changes needed in the workflow at this point or has this been resolved? I thought more conversation had happened regarding this issue but they don't seem to be here. Is there another related issue that this should be pointing to? |
There was some additional discussion on the EMC_post issue for SRW release: NOAA-EMC/UPP#157 |
@jwolff-ncar @fossell This functionality still needs to be added to the workflow so that, if the user wishes, the workflow points to their own flat file, and not the one that is normally sourced from EMC_post. |
@JeffBeck-NOAA - would you like help from UPP team or is this too specific to SRW development? @hertneky - Have you already experimented with doing this for SRW? |
@JeffBeck-NOAA @fossell Being that it doesn't use CIME and that I have been using it, I feel more comfortable about tackling this than when it was done for the MRW. It might be helpful to have a quick meeting, as I imagine workflow folks might have an idea of how they might envision this customization working. e.g. a parameter that can be set in config.sh for passing to the workflow? |
@hertneky That's exactly how I envisioned it, something like a "UPP_flat_file_from_user" variable that would have a default "false" value in config_defaults.sh, and, when defined and set to "true" in config.sh, would then activate an "if" statement (based on the value of UPP_flat_file_from_user) around the following line in exregional_run_post.sh: cp_vrfy ${EMC_POST_DIR}/parm/postxconfig-NT-fv3sar.txt ./postxconfig-NT.txt We'd also need a user-defined path variable that would then be used in that "if" statement to locate the new flat file and copy it. If you'd like to meet, I'm happy to do that too! Thanks! |
@JeffBeck-NOAA Glad I'm thinking on the same page. This is definitely something I could do and test easily. There are obvious other questions;
I thought I had another question, but can't think of it now. I can likely tackle this next week and mock up some documentation. |
cp_vrfy ${UPP_flat_file_path} ./postxconfig-NT.txt
Thanks for your help with this! |
@JeffBeck-NOAA I've tested the customization addition and all tests work fine. Test 1: run as usual using default config file |
@hertneky Thanks for your work on this! The Google Doc instructions look great too. Please feel free to create a PR and we'll have the code review committee take a look. Thanks! |
@hertneky Is this done? If so, let's go ahead and close this. |
@jwolff-ncar This is done and can be closed. I do not have the capability to close this one myself. Can you go ahead and do it? Thanks! |
Generic instructions on how to modify the UPP flat file for different fields/levels/etc are available in the UPP UG (https://upp.readthedocs.io/en/ufs-v1.0.0/InputsOutputs.html section 3.1.2.3). If a user does create a new file, the workflow needs to use it so we need flexibility to stage/point to a specific file. The instructions on how to stage/point to a specific file will need to be documented in the SRW app UG.
The text was updated successfully, but these errors were encountered: