wradlib.georef.raster.create_raster_geographic

wradlib.georef.raster.create_raster_geographic#

wradlib.georef.raster.create_raster_geographic(bounds, resolution, resolution_in_meters=False)[source]#

Create an empty geographic raster as xarray dataset following CF conventions. The arc-second is used as unit to avoid precision issues.

Parameters:
  • bounds (tuple of int) – Bounding box in degrees: (min_lon, min_lat, max_lon, max_lat).

  • resolution (int or tuple of int) – Resolution value. Interpreted as meters if resolution_in_meters=True, otherwise as arcseconds.

  • resolution_in_meters (bool, optional) – If True, converts resolution from meters to arcseconds and snaps it to evenly divide the bounds.

Returns:

xarray.Dataset – xarray dataset with WGS84 CRS and coordinates using arcsecond unit, following CF conventions.