datacube.utils.geometry.gbox.GeoboxTiles¶
-
class
datacube.utils.geometry.gbox.
GeoboxTiles
(box, tile_shape)[source]¶ Partition GeoBox into sub geoboxes
-
__init__
(box, tile_shape)[source]¶ Construct from a
GeoBox
- Parameters
box (
GeoBox
) – sourcedatacube.utils.geometry.GeoBox
tile_shape (
Tuple
[int
,int
]) – Shape of sub-tiles in pixels (rows, cols)
Methods
__init__
(box, tile_shape)Construct from a
GeoBox
chunk_shape
(idx)Chunk shape for a given chunk index.
range_from_bbox
(bbox)Compute rows and columns overlapping with a given
BoundingBox
tiles
(polygon)Return tile indexes overlapping with a given geometry.
Attributes
base
GeoBox
shape
Number of tiles along each dimension
-