Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ESMF linear regridding fails with periodic data #87
Regridding a cmds2 variable with the ESMF 'linear' regridder produces a re-gridded variable with missing values in the last row even with 'periodicity' option:
ESMF 'conservative' works:
Complete example: regrid.zip
Hi Charles, I can't say for sure without seeing the implementation in UV-CDAT. However, it seems like the periodic connection is not turned on in this case. I realize UV-CDAT is using the ESMP prototype code, but that is usually done in ESMPy using coord_sys=ESMF.CoordSys.SPH_DEG (instead of the CoordSys.CART). I believe this setting was handled with similarly named flags ESMP_COORDSYS_CART, ESMP_COORDSYS_SPH_DEG in ESMP. It would be worth a grep through the ESMP implementation in UVCDAT using these two strings to see if you can tell coordinate system is being used for the grids in this case.