-
Notifications
You must be signed in to change notification settings - Fork 295
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
Resample HRV channel of Eumetsat image #2906
Comments
Hi, Your code isn't complete so it can't be run. Do you resample the cropped scene? That should not be necessary and you can play around with the scn_resampled = original_scn.resample(area_def, reduce_data=True, mask_area=True) In general the For me loading HRV, resampling to the built-in |
thank you for you quick response and your explanation. What I need to do is to crop the image for different countries, for example Spain, Great Britain, etc. With all channel except HRV I can just load the scene and crop it using the coordinates of the place I want to crop. However in the HRV channel, I think because of the grid (which is different from the other channels), I need to resample de image first and the crop it and it is in this process when I get the warning. |
Indeed. One option is to create an area definition from the other cropped channels and resample the HRV channel directly to that/those area/areas. cropped_area = cropped_scene["IR_108"].attrs["area"] |
Thank you very much for your help, I receive the same warning but I like more the way you proposed so I changed it :) |
Describe the bug
I am trying to do a resample of the Eumetsat image ("EO:EUM:DAT:MSG:HRSEVIRI") in channel HRV with the aim of crop an area and I got a RuntimeWarning that makes my code goes slowly and I can not fix:
/opt/miniconda3/envs/helios/lib/python3.10/site-packages/dask/core.py:127: RuntimeWarning: invalid value encountered in sin
I try to create a mask if the image have nan values but the result is the same
To Reproduce
The text was updated successfully, but these errors were encountered: