-
Notifications
You must be signed in to change notification settings - Fork 110
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
Update orography code for low-res grids #1012
Update orography code for low-res grids #1012
Conversation
'grid' files. Fixes ufs-community#1000.
one of the polygon's corner points. Fixes ufs-community#1000.
data from the file. This will make unit testing easier. Also, update the routine to use the f90 netcdf routines. Fixes ufs-community#1000.
9-degrees for the coarsest atmospheric resolutions. Fixes ufs-community#1000.
The
The utility ran to completion and successfully created model coldstart files. |
Hi George, |
Denise created ocean mask files for those resolutions. And I created grids using those mask files. Everything is on Hera: These grids are being created for low resolution UFS weather model tests. I don't know if they will be officially baselined in the 'fix' directory. This PR fixes a problem in the orog code that caused a crash at these resolutions. While fixing that error, I added some additional unit testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the latest commit. I was able to compile with no errors. tested a default C96.mx100 grid. All grid generation related functions are unaffected. The gdas_init utility ran successfully and created model cold start files as expected for C12 and C24 cases.
DESCRIPTION OF CHANGES:
Low-resolution grids are defined as C24/C18/C12.
1 - Updates to the orography code:
read_global_orog
andread_global_mask
- A check was added to ensure the i/j-dimensions of the global data match the dimensions passed in as arguments.qc_orog_by_ramp
was updated to read the j-dimension of the RAMP data from the file itself, instead of being declared in the routine. This made writing a unit test easier.makemt2
- variable "maxsum" is now calculated dynamically instead of being hardwired. The hardwired value was not large enough for grids coarser than C48.make_mask
- variable "maxsum" is not used and was removed.remove_isolated_pts
- This routine was originally written for the global gaussian grid. Some of the logic did not work for FV3 tiles. To fix, the check along the "east/west" tile edges was removed. Also removed was logic that was (I believe) used for reduced gaussian grids (where the number of 'i' points decreased toward the poles).gdas_init
utility was updated to set the "fixed" file directory for C24/C18/C12.2 - New unit tests for the following routines/functions:
TESTS CONDUCTED:
grid_gen
consistency tests locally on all Tier 1 machines. Done on Hera, Hercules, Jet, Cactus and Orion using 64d26a4. All tests passed as expected.orog.fd
code had no warnings.Describe any additional tests performed.
/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/fix/orog.lowres
gdas_init
utility was tested on a C12 grid. See: Update orography code for low-res grids #1012 (comment)DEPENDENCIES:
None.
DOCUMENTATION:
Doxygen successfully created. See above.
ISSUE
Fixes #1000.
RELATED ISSUES
ufs-community/ufs-weather-model#2508