You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable the vector_regrid flag via the backend (#436)
Vector regridding was recently added to ESMF's C and Python APIs
(esmf-org/esmf@c153f29350). This commit
exposes this option via the xesmf backend to ESMPy. (See
https://earthsystemmodeling.org/docs/release/latest/ESMF_refdoc/node5.html#SECTION050121700000000000000
for general information on vector regridding in ESMF.)
I looked into making changes to expose this via the xesmf frontend as
well, but it seems like this is going to be more involved, so I held off
on this: For most regridding operations, the regridding matrix only
considers the spatial dimensions, and then this matrix can be applied
separately across all non-spatial dimensions. However, for vector
regridding, the regridding matrix accounts for the vector dimension
(which must be of size 2) in addition to the spatial dimensions, and
then the regridding operation acts on all of these dimensions. My sense
is that xesmf is set up to assume the typical operation, and some work
will be needed to add flexibility to handle this new vector regridding
configuration.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: raphael dussin <[email protected]>
0 commit comments