You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the error is in the part of the logic that deals with "stats" computation, min/max/avg pixel statistics. Error itself seems to be coming from numpy implementation of masked arrays, or possibly the interaction with Dask DataArray and numpy2
You can disable stats computation with stats=False parameter, that way COG generation succeeds, at least on my system, however without those stats large images might take long time to load up in QGIS for the first time.
Hello,
With numpy <2,
save_cog_with_dask
fails because illegal casting.OverflowError: Python integer 999999 out of bounds for uint8
TypeError: Cannot cast scalar from dtype('int64') to dtype('uint8') according to the rule 'same_kind'
This issue is based on this discussion: https://discourse.pangeo.io/t/save-cog-with-dask-cannot-convert-fill-value-999999-to-dtype-uint8/4713/9
As @maxrjones said there:
Minimal working example:
Data : not_cog.zip
I'm on Windows, maybe this doesn't help...
The text was updated successfully, but these errors were encountered: