-
Notifications
You must be signed in to change notification settings - Fork 10
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
ESMF conservative regrid problems #195
Comments
Yikes! This is very concerning. Until this is resolved consider using regrid2 |
I'm guessing ESMF can easily handle a case where you go from one latxlon grid to another with (or without) masking, so it's either a problem with CDAT or perhaps the input is incorrectly configured (or wrong). Does the destination grid input have (or need to have) a "ghost" longitude, padding the eastern-most and/or western-most grid cells? Might account for the problem at 180 deg. Harder, perhaps, to explain the problem at the equator. |
@taylor13 the longitude values are Out[13]:
array([ 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5,
...
-7.5, -6.5, -5.5, -4.5, -3.5, -2.5, -1.5, -0.5], dtype=float32) So these seem fine to me.. |
@durack1 You don't use the mask right. You should have an array of mask values you want to activate. Since your mask is "True" or "False" you need to set the mask to 1. srcMaskValuesArr = numpy.array([1], dtype=numpy.int32)
|
@dnadeau4 is the URL of where you obtained the info above available? A major issue for users is that none of the documentation for ESMF is obviously available through inline documentation or web docs |
Thanks @durack1. It was an email between Ben and I. Here is the reference I found. |
Using your example, I was able to convert the code in native format. I did not have time to convert to conservative more.
|
@durack1 algorithm for gap 0,(-180), 180-0 (westward grid) |
esmfissue.zip That would mess up the regridder. I got these 2 cases to work!!!
|
@dnadeau4 @doutriaux1 @gleckler1 @taylor13 I’ll reopen this to double check (regenerate the outputs above) to make sure there’s not a |
I've just been trying to regrid a standard lat/lon dataset, and am getting very weird results using the
conservative
regrid option from ESMF.The input data looks like:

The output from


regridMethod='bilinear'
looks likeregridMethod='patch'
looks likeBut

regridMethod='conservative'
is problematic, with missing equatorial values, and a weird striping down the centreAn example script to generate these results is below:
Along with the required data attached below
171116_esmfExample.zip
@dnadeau4 @doutriaux1 @rokuingh any tips would be appreciated
The text was updated successfully, but these errors were encountered: