-
Notifications
You must be signed in to change notification settings - Fork 3
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
Web-tiling step fails to convert raster to Python Imaging Library image #14
Comments
The web tiling step fails at the step in the terminal:
and in the log:
A deeper look into the error reveals that it occurs at the specified line because there are still remaining |
The above comment is also posted in issue#16. Both issues identify ways to improve |
While processing the Circum-Arctic permafrost and ground ice map, the web-tiling step failed with the error:
cannot convert float NaN to integer
. This occurred withinviz-raster/pdgraster/WebImage.py
, when we convert a raster to a Python Imaging Library image. Withinto_image()
, we create ano_data_mask
that represents the values within the image data that have no data (0 in this case) and we replace all those values withnp.nan
. See the code here.This issue is described in the layer issue in this comment.
This issue was resolved by adding a step within
to_image()
that convertsimage_data
tofloat
before we create theno_data_mask
.to_image()
Since the solution has already been resolved, the purpose of creating this issue is to associate the bug with the
viz-raster
package and the branch to fix this bug. Here we can document if the added step has any unexpected consequences when processing other datasets.The text was updated successfully, but these errors were encountered: