GEOS-ESM / MAPL

MAPL is a foundation layer of the GEOS architecture, whose original purpose is to supplement the Earth System Modeling Framework (ESMF)
https://geos-esm.github.io/MAPL/
Apache License 2.0
27 stars 18 forks source link

Regrid and Dynamic Mask and Ungridded Dimensions #2437

Open darianboggs opened 10 months ago

darianboggs commented 10 months ago

When we do Regrid, the ESMF dynamic mask forces us to regrid 1 level at a time. This in turn means I need to create temporary in and out fields that have pointers into a given slice of the field.

What I want is an interface something like:

n = extra_dimensions(f_in)
do k = 1, n
   f_tmp = get_slice(f_in, k)
end do

Here get_slice() must first get the arrayPtr inside f_in and then get a pointer to the kth element of the (potentially multi-dimensional) set of extra dimensions. Finally it constructs a Field from that pointer. (There's also a minor twist for supporting ungridded dimensions before and between the gridded dimensions, but GEOS does not have that use case. Completeness and all that.)

This is the link to the documentation on ESMF changes to facilitate this.

This is the related issue in ESMF.

stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days, it will be closed. You can add the "long term" tag to prevent the Stale bot from closing this issue.

mathomp4 commented 8 months ago

Is this still open, @darianboggs ? I oddly can't see the ESMF issue so I'm not sure if it's been fixed on their end

darianboggs commented 8 months ago

Still open. I am going to start working on it again, check ESMF, etc.

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days, it will be closed. You can add the "long term" tag to prevent the Stale bot from closing this issue.