Skip to content
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

Add support for remapping to or from MPAS vertices #33

Merged
merged 2 commits into from
May 25, 2021

Conversation

xylar
Copy link
Collaborator

@xylar xylar commented May 24, 2021

This is useful for visualizing and comparing quantities that live on vertices like vorticity and the barotropic streamfunction. It could also potentially be useful for cleaner visualization of coastlines.

ESMF will only create mapping files for corners (vertices) from meshes described in the ESMF unstructured mesh format. Therefore, this merge adds ESMF mesh output for all descriptor types. So far, it is only used for MPAS meshes but may be useful for other mesh types in the future. (I didn't initially realize you could mix and match -- ESMF mesh for the source but SCRIP for the destination.) The downside to the ESMF mesh format is that it doesn't preserve the regular structure of lon/lat or projection meshes, so it isn't very convenient for those and thus hasn't been adopted there.

@pep8speaks
Copy link

pep8speaks commented May 24, 2021

Hello @xylar! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-05-25 07:34:28 UTC

@xylar xylar self-assigned this May 24, 2021
@xylar xylar added the enhancement New feature or request label May 24, 2021
@xylar
Copy link
Collaborator Author

xylar commented May 25, 2021

Testing

This approach was used to remap barotropic streamfunctions from MPAS vertices to a projection grid covering the Filchner-Ronne Ice Shelf. This approach worked fine for both remap and remap_file, and both bilinear and patch methods:

draft_barotropic_streamfunction

It also does no harm to existing MPAS-Analysis runs:
https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.xylar/analysis_testing/chrysalis/test_projection_dim_fix/

@xylar xylar merged commit 4854b80 into MPAS-Dev:master May 25, 2021
@xylar xylar deleted the add_esmf_format branch May 25, 2021 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants