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
Originally posted by mjyshin March 19, 2021
Hello, I have a lot of Shapely polygons as shapes that I want to rasterize into an output image, but the output will be huge. Is there a way to use make_geocube so that when I run something like
It is currently defaulted to float64ref. If you would like to specify a different dtype, you could open up a PR to add the dtype kwarg to rasterize_image and then use functools.partial to change the dtype similar to what is done in this example ref.
Discussed in #61
Originally posted by mjyshin March 19, 2021
Hello, I have a lot of Shapely polygons as
shapes
that I want to rasterize into an output image, but the output will be huge. Is there a way to usemake_geocube
so that when I run something likethe
mask
will be an int8 array instead of float64 (shape_types
will naturally only be small integers)? Thanks in advance!The text was updated successfully, but these errors were encountered: