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
xarray.Datasetorxarray.DataArrayto the spatial extent of a geometry.explore([map, bands, vmin, vmax, cmap, ...])Plot xarray data on an interactive
foliumleaflet map for rapid data exploration.mask(poly[, invert, all_touched])Apply a polygon geometry as a mask, setting all
xarray.Datasetorxarray.DataArraypixels outside the rasterized polygon toNaN.output_geobox(crs, **kw)Compute geobox of this data in other projection.
reproject(how, *[, resampling, dst_nodata, ...])Reproject raster to different projection/resolution.
Attributes
affineaspectQuery
CRS.crs_coordReturn CRS coordinate DataArray.
Query
GeoBoxorGCPGeoBox.grid_mappingReturn name of the grid mapping coordinate.
Return names of spatial dimensions, or
None.transformxyz