generate square grid SCRIP files for coupling FastIsostasy to MALI#740
generate square grid SCRIP files for coupling FastIsostasy to MALI#740hollyhan wants to merge 2 commits into
Conversation
|
Hi @matthewhoffman, This PR ready to be reviewed. A sample test run result is shown below: |
|
@hollyhan , thanks for getting this rolling! I have a couple thoughts to run by you. Could we instead use the projected ISMIP diagnostic grid at 8km (or any resolution) rather than the custom regular grid produced by this PR? It seems like the approach in this PR will result in a somewhat inexact grid spacing, and it might be useful to have the GIA results on a standardized grid. If we did that, we could use the existing scrip file creation tool (https://github.com/MPAS-Dev/MPAS-Tools/blob/master/conda_package/mpas_tools/scrip/from_planar.py) and not need a specialized one just for this MALI application. What do you think? @xylar , do you you have input on this? |
xylar
left a comment
There was a problem hiding this comment.
Seems fine to me at a quick glance. Let me know if you want more specific feedback.
Maybe you meant feedback on your comment to Holly. If so, I agree that this tool might be redundant with ones we already have. It might be better to see if the existing tools work. And I agree that using a standard grid (e.g. ISMIP) might be best. |
|
Thanks so much, @matthewhoffman and @xylar for your comments! Somehow it didn't appear to me I could have used the existing tool! I totally agree with you it might be best to use the ISMIP standardized grid. I'll close this PR upon testing the coupled MALI-FI simulation with based on the scrip file generated using the |
|
@hollyhan , that sounds good. Maybe it would make sense to put the FI set up entirely in the ismip7_run test case - there could be an option added there to use FI, and if true, it would set up the FI grid to match one of the standard ISMIP7 regular grids, and then generate the scrip and mapping files (similar to how the ismip6_run test case set up the SLM). You could copy this function to the ismip7_run test case for setting up the regular grid: |
Add Python script to create square grid SCRIP files for
FastIsostasy MALI coupling
Summary
create_square_grid_scripfile.pytool to generateSCRIP-format files for FastIsostasy coupling
for bedrock deformation coupling
bounds, and creates a square regular lat-lon grid
ESMF_RegridWeightGen
Motivation
FastIsostasy coupling in MALI requires two mapping weight
files:
mpas_to_fastisostasy.nc(MALI mesh → square grid)fastisostasy_to_mpas.nc(square grid → MALI mesh)The target grid must be a perfect square (code checks `nX
inmpas_li_bedtopo.F:1021-1027`). Thisscript automates the creation of the required square grid
SCRIP file.
Changes
create_square_grid_scripfile.pyUsage Example