datacube.utils.geometry.gbox.GeoboxTiles#
- class datacube.utils.geometry.gbox.GeoboxTiles(box, tile_shape)[source]#
Partition GeoBox into sub geoboxes
Construct from a
GeoBox
- Parameters
box (
GeoBox
) – sourcedatacube.utils.geometry.GeoBox
tile_shape (
Tuple
[int
,int
]) – Shape of sub-tiles in pixels (rows, cols)
- __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
Number of tiles along each dimension
Methods:
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:
Number of tiles along each dimension
- property shape#
Number of tiles along each dimension