odc.geo.xr.ODCExtensionDa
- class odc.geo.xr.ODCExtensionDa(xx)[source]
ODC extension for
xarray.DataArray
.Methods
__init__
(xx)add_to
(map, *[, name, fmt, max_size, ...])Add image to a map.
assign_crs
(crs[, crs_coord_name])colorize
([cmap, attrs, clip, vmin, vmax, robust])Apply colormap to data.
compress
(*args[, as_data_url, transparent])Save image to RAM in jpeg/png/webp format.
map_bounds
()output_geobox
(crs, **kw)Compute geobox of this data in other projection.
reproject
(how, *[, resampling, dst_nodata])Reproject raster to different projection/resolution.
to_cog
([blocksize, ovr_blocksize, ...])Compress
xarray.DataArray
into Cloud Optimized GeoTiff bytes in memory.write_cog
(fname, *[, overwrite, blocksize, ...])Save
xarray.DataArray
to a file in Cloud Optimized GeoTiff format.Attributes
affine
- rtype
Optional
[Affine
]
crs
Query
CRS
.geobox
Query
GeoBox
.spatial_dims
Return names of spatial dimensions, or
None
.transform
- rtype
Optional
[Affine
]
uncached
- rtype
Index of the X dimension.
Index of the Y dimension.