odc.geo.xr.ODCExtensionDs

class odc.geo.xr.ODCExtensionDs(ds)[source]

ODC extension for xarray.Dataset.

__init__(ds)[source]

Methods

__init__(ds)

assign_crs(crs[, crs_coord_name])

rtype:

Dataset

crop(poly[, apply_mask, all_touched])

Crops and optionally mask an xr.Dataset or xr.DataArray to the spatial extent of a geometry.

map_bounds()

See odc.geo.geobox.GeoBox.map_bounds().

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.

reproject(how, *[, resampling, dst_nodata])

rtype:

Dataset

to_rgba([bands, vmin, vmax])

Convert dataset to RGBA image.

Attributes

affine

aspect

crs

Query CRS.

geobox

Query GeoBox or GCPGeoBox.

spatial_dims

Return names of spatial dimensions, or None.

transform

uncached