-
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
Cacheing doesn't work with scn.crop
#2483
Comments
Can you print out the chunks for each DataArray after cropping? Something like:
This is supposed to be handled already as documented here: satpy/satpy/modifiers/angles.py Lines 66 to 71 in bc9c089
So this suggests zarr or dask is now doing a more strict check than before and/or that my check in |
For my own future reference: I bet it is this case that I'm not catching: Basically, when you only have two chunks in one dimension and the last chunk is bigger than the first chunk. |
Looks like your assumption is correct. This is the printout you requested:
|
Ok I'll need to make a test case for this and update the condition in the code. Shouldn't be a hard fix or test, but I'm not sure I'll have time today or even this week. |
Describe the bug
If I enable cacheing of lats + lons + sensor angles and then crop a GOES scene, I get an error message rather than a successfully cropped image.
To Reproduce
Expected behavior
A resampled image to be produced.
Actual results
The following error message is generated:
Screenshots
If applicable, add screenshots to help explain your problem.
Environment Info:
The text was updated successfully, but these errors were encountered: