-
Notifications
You must be signed in to change notification settings - Fork 287
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
FY4A REGC data resampling return all nan #2593
Comments
@LiangHongli1 thanks a lot for bringing this issue to our attention! I don't have a REGC file myself, I will ask around, but if you can share the file, that would be great! |
Also could you share the definition of the area you are resampling to? |
I have tested with Python 3.9 and it works well with native resampler. Could you (@LiangHongli1 ) share your area definition? That would make it easier to reproduce your problem. |
Thanks for reply! But sorry, I'm unable to upload the files due to its large size, for now. |
Thanks, I have tested using your area and it works well:
|
@zxdawn what's the satpy version you are using? |
Ha, I can reproduce your NaN problem if I use 0.43.0.post0. I tested the newest branch: |
Wow, it works for me too. Looks like the newest branch solved this. |
You're welcome ;) Actually, I don't know which commit fixes this problem ... Maybe @mraspaud knows. |
Probably someone fixes it without knowing it? Still, thanks and I'd be happy to know what causes this problem. |
Ok, good that it's fixed. Maybe it's time for a new release then. Closing this now as it seems to be solved. |
Describe the bug
When scn.resample FY4A REGC file, it returns all nan with version 3.8.0 and above. It works fine with version lower than 3.7.0. It might have something to do with FY4B compatibility. While version 3.7.0 supports FY4B and the reader name is still agri_l1, it doesn't work with FY4B.
------------ Here is the code. Files can be downloaded from the NSMC web. ----------
Expected behavior
After resampling, np.isnan(newdata).all() shoud be "False", yet it is "True", with REGC file, satpy version 3.8.0 and above. np.isnan(newdata).all() is False with DISK file.
The text was updated successfully, but these errors were encountered: