odc.geo.xr.ODCExtension
- class odc.geo.xr.ODCExtension(state)[source]
ODC extension base class.
Common accessors for both Array/Dataset.
Methods
__init__
(state)crop
(poly[, apply_mask, all_touched])Crops and optionally mask an xr.Dataset or xr.DataArray to the spatial extent of a geometry.
mask
(poly[, invert, all_touched])Apply a polygon geometry as a mask, setting all xr.Dataset or xr.DataArray pixels outside the rasterized polygon to
NaN
.output_geobox
(crs, **kw)Compute geobox of this data in other projection.
Attributes
affine
aspect
Query
CRS
.Query
GeoBox
orGCPGeoBox
.Return names of spatial dimensions, or
None
.transform