-
Notifications
You must be signed in to change notification settings - Fork 105
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
downsampling results in 0 or 1 raster without float #238
Comments
Trying to debug this if others face the same issue |
I am trying to understand why the cutout raster has either a 0 or a 1 availability and nothing in between... ( as the expected image behaviour would suggest). I was looking now into the function Looking into the variables:
So here I am with a bit more knowledge but haven't found the cause of the problem. Maybe it has something to do with the "src_nodata" stuff described here. :) Lines 473 to 519 in e3d0865
|
@pz-max thank you very much for testing this, this was extremely important. I found the error. Rasterio changed the order of the resampling methods (without a warning). I'll push a fix with a safe method selection. |
I can confirm it is still not working. :) |
Fixed the issue PR is coming @FabianHofmann |
constraining rasterio in the - rasterio>=1.0,<1.2.10 # until 1.3.0 is released solves the issue we experienced (even though the anaconda installation quite a bit longer). The solved rasterio version is 1.2.8 (yes not 1.2.9) I checked the pytest to confirm everything runs well One note, the rasterio team has a pre-release in the beta (v.1.3.0) with several improvements that also impact the downsampling/upsampling. This beta version also solves our issues (I tested it). Once fully released we should change our package constraints. |
Description
Pictures tell more than words
Expected Behavior
Actual Behavior
Error Message
Your Environment
atlite
version used:atlite
(conda
,pip
orgithub
):(output of `conda list`)
``` ```The text was updated successfully, but these errors were encountered: