-
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
Cropping S3 image not working #2502
Comments
@system123 thanks for reporting this issue. From what I understand, the data you are working with (Sentinel 3, olci data, level 2) is not provided reprojected, but rather is provided with longitudes and latitude for every pixel. As we cannot make any assumptions on the pixel positions, this is a difficult problem and is indeed not implemented at the moment. As an alternative, I can suggest trying to resample the data to a gridded region of interest if that helps? |
Thanks that makes sense. Resampling the data to a grid appears to work fine. Ideally I wanted to crop images from other sensors to the bounds of the S3 image that I have, how could the be achieved if S3 doesn't have an associated AreaDefinition? Is there a way to extract the bounding box of the S3 image without resampling it? |
In principle you should be able to get the boundary longitudes and latitudes using the |
Is it ok closing this issue now? |
Describe the bug
I am loading a Sentinel-3 OLCI Level 2 image and trying to crop it to my ROI bounds (specified in EPSG:4326) but this fails with a
NotImplementedError
on theget_area_slices
method frompyresample
To Reproduce
Expected behavior
I'd expect the resultant image to be cropped to the region of interest specified.
Actual results
Screenshots
If applicable, add screenshots to help explain your problem.
Environment Info:
The text was updated successfully, but these errors were encountered: