odc.geo.xr.xr_zeros

odc.geo.xr.xr_zeros(geobox, dtype='float64', *, chunks=None, time=None, crs_coord_name='spatial_ref', **kw)[source]

Construct geo-registered xarray from a GeoBox.

Parameters:
  • gbox – Desired footprint and resolution

  • dtype – Pixel data type

  • chunks (Union[Tuple[int, int], Tuple[int, int, int], None]) – Create a dask array instead of numpy array

  • time – When set adds time dimension

  • crs_coord_name (Optional[str]) – allows to change name of the crs coordinate variable

Return type:

DataArray

Returns:

xarray.DataArray filled with zeros (numpy or dask)