wradlib.georef.raster.create_raster_xarray

wradlib.georef.raster.create_raster_xarray#

wradlib.georef.raster.create_raster_xarray(crs, bounds, size)[source]#

Create a georeferenced raster image using xarray model and gdal conventions.

Parameters:
  • crs (osgeo.osr.SpatialReference) – coordinate reference system mapping geographic coordinates to x,y coordinates

  • bounds (tuple of floats) – image bounds (x_min, x_max, y_min, y_max)

  • size (float or tuple of floats) – (x,y) pixel size in meters (or degrees if crs is geographic)

Returns:

raster (xarray:Dataarray) – raster image dataset