Skip to content
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

GeoRaster reduce doesn't support fully masked rasters #159

Open
drnextgis opened this issue Oct 18, 2018 · 0 comments
Open

GeoRaster reduce doesn't support fully masked rasters #159

drnextgis opened this issue Oct 18, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@drnextgis
Copy link
Contributor

drnextgis commented Oct 18, 2018

>>> import numpy as np
>>> from test_georaster import some_raster
>>> fully_masked = some_raster.copy_with(
...     image=np.ma.array(some_raster.image.data, mask=True))
>>> fully_masked.min()  # ValueError
>>> fully_masked.max()  # ValueError
>>> fully_masked.sum()  # [0], should be [masked]
>>> fully_masked.mean() # [nan], should be [masked]
>>> fully_masked.var()  # [nan], should be [masked]
>>> fully_masked.std()  # [masked] OK!
@drnextgis drnextgis added the bug Something isn't working label Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant