-
Notifications
You must be signed in to change notification settings - Fork 322
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
Subset mesh files for regional cases and add user-mods for regional cases. #1735
Conversation
@negin513 this appears to subset the files appropriately when I view them. |
@negin513 comments on using the script:
I did not see a way to specify the directory where these files would go. It took me a bit to figure out where they were located. |
In conversation with @adrifoster on a separate issue I shared this error in trying to get this to run a regional simulation. @adrifoster suggested that the below error was associated with a typo and to adjust to LND_DOMAIN_MESH
after fixing the typo to LND_DOMAIN_MESH I got it to build and submit, but then had the regional case fail with this error in the cesm.log:
|
@jkshuman Thanks for your comments.
You can see the subset_data help options using the following:
You can see specify to see options only specific to region or single point: Show only regional option:
Show only single point options:
|
@negin513 thanks. the help wasn't working yesterday, but it seems to be a python error. If I update my python environment it works.
for the help description on the regional lat and lon can you include the directions, as in NE corner etc? (rather than start and end) |
Thank Jackie. The additional messages will be printed out using
This is an xarray warning but I will change this to ignore this message. |
The interface is similar to single point subsetting. So by default it create a folder called You can specify the output directory using command line argument
|
@negin513 I updated the comment about the help failure to include the error associated with python. |
Good idea.I will change the help message to show westernmost/easternmost language instead of start and end. |
path to the latest case: /glade/work/jkshuman/FATES_cases/test/test9_mesh_user-mods_SAmer_0.9x1.25_b8c91151_e54a4947 |
@negin513 do you local changes to this PR that you can push so we can work on bringing this into main? |
I would like to give a quick presentation at this CTSM SE meeting (Nov 3 2022) about how this works and what additional capabilities it has. |
Looking forward to the presentation |
@chrystali2002 here are the joining details for the meeting. This will be 9:30am MDT and you can join on google meet, or in the 315 conference room at the Mesa Lab. https://meet.google.com/pkq-ghfn-gpv all of the conferencing info. is here...
|
This is replaced by #1892 |
The user-mods part of this already came in. So I'm closing this one. |
Description of changes
Specific notes
This PR adds capability to subset mesh files for a regional case based on the region of choice.
Contributors other than yourself, if any: @swensosc and @adrifoster
CTSM Issues Fixed (include github issue #): #1513
Are answers expected to change (and if so in what way)? No
Any User Interface Changes (namelist or namelist defaults changes)? No, option
--subset-mesh
is added tosubset_data
.Testing performed, if any:
Plotting the mesh files to make sure the extracted mesh file makes sense.