-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix issue with topo linking, pass in stretched grid options #14
Conversation
All, I moved it to draft until we test/confirm few more things. |
I definitely have these warning and error messages with regrid.pl. @mathomp4 ... I run regrid.pl with on screen questions not with command line options. I think it is same case you've run C1440 Ostia 137 lev to C2880 Ostia 137 lev. |
@biljanaorescanin Yeah, those "Use of uninitialized value" seem to be legion with regrid.pl. I usually ignore them if the script works. Does it work for you? |
Upper restarts have first error: |
There is no "high" qos on discover
@mathomp4: Many thanks for fixing the issue with |
@gmao-rreichle I edited regrid.pl mainly because:
But we can fix it in this one and announce its deprecation. At least then we can say Though that is up to @sdrabenh and others. I just wanted to fix bugs I saw. |
@mathomp4: Thanks for the insights. It makes sense to fix bugs since |
I find this error in both python and regrid.pl Used extreme measures 0 times Writing CH FAIL at line=02085 NCIO.F90 <status=1> I don't see this error if I run from M2 restarts. |
Turns out this error I had is due to input restarts we try to remap didn't match our input boundary conditions. Once that was changed there is no error. That is why M2 option worked from start since that is already predefined (all except date from which to start). I wonder could Bill's run crash also related to this mismatch ... since he did see at some point error pointing to LAI and that is coming from bcs files? What do you think @mathomp4 ? I will do more testing but so far all looks ok. |
Did the linked bcs have a different number of land tiles than the restart file? If so, it should be trivial to implement a check and clean exit with a helpful error message. |
@gmao-rreichle yes adding check would solve this. One other problem I see with this PR is with regid.pl and boundary conditions. For example if we run c1440 to c540 it will looks for bcs files on designated location which doesn't host them: Error; Cannot find bcs directory: /discover/nobackup/projects/gmao/share/gmao_ops/fvInput/g5gcm/bcs/Icarus-NLv3/Icarus-NLv3_Ostia/CF1440x6C_CF1440x6C; at ./regrid.pl line 2185, line 24. we don't have that problem with remap_restarts.py since we can give our own bcs path. But it really is a game of chance what I am running, I could have picked some other resolution and find it at that location. In this case right path would be this one: /gpfsm/dnb03/projects/p38/stage/BCS_FILES/Icarus-NLv3/Icarus-NLv3_Ostia/ @sdrabenh what do you think? Should we just go with what we have now and focus development to remap_restats.py or try to figure out what happens with missing resolutions and regrid.pl? |
@biljanaorescanin:
This particular error isn't as problematic because it generates a helpful error message. My understanding is that the error you encountered in testing this PR did not have a helpful error message, and that's what I'm most concerned about. |
@gmao-rreichle yes that first error was not helpful, and yes number of tiles was different mismatched. |
My initial thoughts are to just focus development on |
I have a regrid.pl that 'works' for most of these resolutions. I just committed this to feature/wmputman/hwt_modifications @GEOS_Util Many of the 'missing' BCS locs point to my project space |
But, ideally, we just need to move the BCS files I have staged in project space to the proper locations |
…l only be implemented into remap_restarts.py package
After discussion with Scott and Bill, we decided to implement the stretched-grid option only in the new remap_restart.py package, and not in the old regrid.pl script (which in any case would have needed additional mods to accommodate the new bcs output dir structure and naming conventions). I reverted regrid.pl back to the main branch. DONE: check merge compatibility of this PR with PR #17. Updated 12 May 2023, 5pm: This PR is now compatible with PR #17, see #17 (comment) |
The error message is already in the log. But maybe we can do more and make it exit without moving forward. |
As found by @wmputman and others, the python remap script did not work for stretched grid. Working with @weiyuan-jiang, the issue was found that the BCs dirs for the stretched grid had both nc4 and binary topographies, but the Fortran code doing the remapping in FV3 can only read binary.
But, the python was linking in the NC4 and boom. Bad things happen (aka NaNs). This is a fix to make sure only the binary .data files are found.
Also, working with @bena-nasa it was found the correct way to do the stretched grid is to pass in options to
interp_restarts.x
and not rely solely on the namelist.