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
Nan values when resample with Kompsat #1664
Comments
Can you please share the code you're using to read and resample the data? |
Yes, for sure, @simonrp84. Here is my code.
Thanks in advance, @simonrp84 |
This isn't the issue, but I don't think Do you get these types of results for all data cases? There are certain patterns that we expect if some resampling parameters are misconfigured/sub-optimal, but not like what you're seeing. These results make me think that something in the reader is wrong...or I'm just wrong about the resampling. What does the image look like if you don't resample and call |
I tried the different resamplers and I forgot to remove the However, if I saved it from the original Do you have any suggestions for me? Thanks @djhoese |
In your resample call with the local scene, try passing |
Thank you so much for your helps @djhoese, It works 👯. I will play around more with this parameter. |
@simonrp84 you do a lot of AMI stuff, right? Do you do resampling? Have you seen results like this? @ptcongbk Satpy is supposed to make an educated guess about what this parameter should default to. I'm surprised it is this bad, especially near the middle of the full disk. Edit: actually Korea is higher up I guess, right (on mobile hard to tell)? Still, not great. |
@djhoese I always work in full disk or cropped disk, never resampled. Will have al ook and see what I can find, though. |
Hm, running the same code as @ptcongbk (only replacing |
@simonrp84 @ptcongbk What reader(s) are you using? I see somehow that the reader doesn't exist in the code example above. |
I'm using |
Hi @djhoese and @simonrp84, I am using |
@ptcongbk Where are you getting your data from (sorry if you've said this already)? Could you put it somewhere where we could try running it? Running from the GitHub main branch should still be fine. |
@djhoese I got a copy from my professor for research purposes (I am not sure how he got it). I uploaded it to google drive here https://drive.google.com/drive/folders/1nGq8w4xCH1ZqW6rkU6AYITtBW-N5CN0G?usp=sharing. |
@ptcongbk Do you normally provide all of these files to a single Scene? The Scene isn't able to handle more than one time step at a time. Try changing your glob pattern so you are only operating on one time step of data and see if that changes the results. |
@djhoese how stupid I am. It works. Sorry I missed it from the beginning. Thank you so much for your help. |
No, this is really our fault. This is probably the most frequent misunderstanding new users have when working with Satpy. We really need to make it more clear. |
Agreed |
Hi everyone,
I am trying to get samples from Kompsat full-disk using ami_l1b. The final results contained a lot of Nan values as the sample images. Do you have any ideas why it happened?
Much appreciated.
The text was updated successfully, but these errors were encountered: