wradlib.georef.xarray.as_xarray_dataarray

wradlib.georef.xarray.as_xarray_dataarray#

wradlib.georef.xarray.as_xarray_dataarray(data, dims, coords)[source]#

Create Xarray DataArray from NumPy Array

Added in version 1.3.

Parameters:
  • data (numpy.ndarray) – data array

  • dims (dict) – dictionary describing xarray dimensions

  • coords (dict) – dictionary describing xarray coordinates

Returns:

dataset (xarray.DataArray) – DataArray