Linkbcs Standalone Script - #823
Conversation
rtodling
left a comment
There was a problem hiding this comment.
have now tested this quite extensively. I run first a regular one-cycle experiment at a random date and got zero diff w/ my control. Then, just for the hack of it, I move the experiment to the edge of a year and cycled for a number of cycles from there. In the end I still got zero-diff.
So: I am happy with/ this - very happy.
Thank you so much.
This has been tested w/ what is basically v11.7.3 (in ADAS mode).
Updates for linkbcs.py from latest develop
|
Confirmed works at NAS with c24 and c12-MOM6 |
|
Here's an attempt to further answer @mathomp4's comment on #902:
precip_correction:
r21c: /discover/nobackup/projects/gmao/share/gmao_ops/fvInput/merra_land/precip_CPCUexcludeAfrica-CMAP_corrected_MERRA/GEOSdas-2_1_4
merra-2: /discover/nobackup/projects/gmao/share/gmao_ops/fvInput/merra_land/precip_CPCUexcludeAfrica-CMAP_corrected_MERRA/GEOSdas-2_1_4
ops: /gpfsm/dnb51/projects/p15/iau/merra_land/precip_CPCU-CMAP_corrected_MERRA/GEOSdas-2_1_4
The "r21c" path is definitely wrong. The MERRA-2 path may be right, but I can't say for sure. If in doubt, we have to ask Rob or reverse-engineer the MERRA-2 ADAS tag. The "ops" path doesn't make sense if by "ops" you mean FP. For FP, we don't do precipitation corrections or scaling.
The general idea is that users specify either PRECIP_FILE or PRECIP_FILE_CLIMSCALE (or neither). If you want to separate out the type of precipitation treatment ("none", "obs-correct", "clim-scale"), you could introduce such a variable, but you'd still have to provide product-specific path and file names for the "obs-correct" and "clim-scale" options. Hardcoding the precipitation file paths and names for either MERRA-2 or M21C is less than ideal because users probably need both options for at least some time going forward. And for M21C you'd also still have to decide whether you're before or after 30 September 2025, 21z (for M21C, see GEOS-ESM/GEOSadas#441 and https://github.com/GEOS-ESM/GEOSadas/releases/tag/GEOSadas-5.30.3-M21C-7)
I haven't been involved in the linkbcs revisions, so not sure what the exact needs are here.
If there is to be a catalog, it should have both the M2 and M21C options. To be safe, the exact paths should come from the ops team. Sorry I don't have great answers |
|
|
||
| # Is this necessary? | ||
| precip_correction: | ||
| r21c: /discover/nobackup/projects/gmao/share/gmao_ops/fvInput/merra_land/precip_CPCUexcludeAfrica-CMAP_corrected_MERRA/GEOSdas-2_1_4 |
There was a problem hiding this comment.
the value for r21c is incorrect
| precip_correction: | ||
| r21c: /discover/nobackup/projects/gmao/share/gmao_ops/fvInput/merra_land/precip_CPCUexcludeAfrica-CMAP_corrected_MERRA/GEOSdas-2_1_4 | ||
| merra-2: /discover/nobackup/projects/gmao/share/gmao_ops/fvInput/merra_land/precip_CPCUexcludeAfrica-CMAP_corrected_MERRA/GEOSdas-2_1_4 | ||
| ops: /gpfsm/dnb51/projects/p15/iau/merra_land/precip_CPCU-CMAP_corrected_MERRA/GEOSdas-2_1_4 |
There was a problem hiding this comment.
I don't think the value for "ops" makes any sense
| # Is this necessary? | ||
| precip_correction: | ||
| r21c: /discover/nobackup/projects/gmao/share/gmao_ops/fvInput/merra_land/precip_CPCUexcludeAfrica-CMAP_corrected_MERRA/GEOSdas-2_1_4 | ||
| merra-2: /discover/nobackup/projects/gmao/share/gmao_ops/fvInput/merra_land/precip_CPCUexcludeAfrica-CMAP_corrected_MERRA/GEOSdas-2_1_4 |
There was a problem hiding this comment.
the value for "merra-2" may be ok but needs to be run by the ops group
|
@sshakoor1 I'm wondering if we should update the scripts to use your I mean, I know you only need the year, but it wouldn't hurt to pass in the full timestamp. |
(This is the same as #820, just renamed as per request of @rtodling #820 (review))
The purpose of this PR is create a new linkbcs that is no longer a template file detemplated by gcm_setup, but rather a standalone python script ran via a config yaml. This new script should essentially be zero-diff from the old one.
To run, use
$INSTALL_DIR/bin/linkbcs.py --config <USER_CONFIG>.yaml --timestamp <YYYY>-<MM>-<DD>T<HH>:<MM>:<SS>from inside the directory you want your symlinks to be created.Here is a skeleton of what the config yaml should look like, along with valid options for each key:
SOME NOTES:
.../<user_dir>/GEOSgcm/install/