odc.geo.gridspec.GridSpec.from_sample_tile
- static GridSpec.from_sample_tile(box, *, shape=(-1, -1), idx=(0, 0), flipx=False, flipy=False)[source]
Construct
odc.geo.gridspec.GridSpecfrom a sample tile.Bounding box of one tile, it’s index, and a shape of the tile in pixels fully define a grid. This method could be more convenient than canonical representation.
- Parameters:
box (
Geometry) – Geometry of the tile in some CRSidx (
Union[Tuple[int,int],XY[int],Index2d]) –ix, iyindex of the sample tile, default(0, 0)shape (
Union[Tuple[int,int],XY[int],Shape2d,Index2d]) –height, widthof the tile, must be suppliedflipx (
bool) – whenTruegrid index for X axis increments left to rightflipy (
bool) – whenTruegrid index for Y axis increments top to bottom
- Return type: