datacube.utils.geometry.GeoBox

class datacube.utils.geometry.GeoBox(width, height, affine, crs)[source]

Defines the location and resolution of a rectangular grid of data, including it’s CRS.

Parameters
  • crs (Union[str, CRS, CRS, Dict[str, Any], None]) – Coordinate Reference System

  • affine (Affine) – Affine transformation defining the location of the geobox

__init__(width, height, affine, crs)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(width, height, affine, crs)

Initialize self.

buffered(ybuff, xbuff)

Produce a tile buffered by ybuff, xbuff (in CRS units)

from_geopolygon(geopolygon, resolution[, …])

type resolution

Tuple[float, float]

is_empty()

rtype

bool

xr_coords([with_crs])

Dictionary of Coordinates in xarray format

Attributes

alignment

Alignment of pixel boundaries in Y,X dimensions

coordinates

dict of coordinate labels

coords

dict of coordinate labels

crs

Optional[CRS]

dimensions

List of dimension names of the GeoBox

dims

List of dimension names of the GeoBox

geographic_extent

4326

resolution

Resolution in Y,X dimensions

shape

Tuple[int, int]

transform

Affine