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 a function for vertical interpolation of MPAS-Ocean datasets #479

Open
xylar opened this issue Dec 8, 2022 · 0 comments
Open

Add a function for vertical interpolation of MPAS-Ocean datasets #479

xylar opened this issue Dec 8, 2022 · 0 comments

Comments

@xylar
Copy link
Collaborator

xylar commented Dec 8, 2022

It would be good to have one or more functions for performing interpolation from the MPAS vertical coordinate to a z-level coordinate. see E3SM-Project/E3SM#5335 for some discussion.

The function should be capable of extrapolating to the top of the top layer and the bottom of the bottom layer. Likely, linear interpolation would be sufficient to begin with, but conservative interpolation would be an added bonus. The function should use zMid, not the 1D reference coordinate so that is properly handles meshes with ice-shelf cavities and other non-z-level coordinates, and so that it accounts for variation of the z-star coordinate in time.

The following function in MPAS-Analysis is a starting point but it doesn't extrapolate beyond the middle of the top and bottom layers, which is a problem. It also has several other undesirable quirks:

  • it requires that the destination coordinate have a different dimension and coordinate name (in conflict with CF conventions)
  • it does not handle variables with a Time dimension.

https://github.com/MPAS-Dev/MPAS-Analysis/blob/8f29c53d63317b4bce10917b02fb982f5fbaac3c/mpas_analysis/shared/interpolation/interp_1d.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant