wradlib.georef.xarray.create_xarray_dataarray#
- wradlib.georef.xarray.create_xarray_dataarray(data, r=None, phi=None, theta=None, site=None, sweep_mode='azimuth_surveillance', rf=1.0, **kwargs)[source]#
Create Xarray DataArray from Polar Radar Data
New in version 1.3.
- Parameters:
data (
numpy.ndarray
) – The data array. It is assumed that the first dimension is over the azimuth angles, while the second dimension is over the range binsr (
numpy.ndarray
) – The ranges. Units may be chosen arbitrarily, m preferred.phi (
numpy.ndarray
) – The azimuth angles in degrees.theta (
numpy.ndarray
) – The elevation angles in degrees.proj (
osgeo.osr.SpatialReference
) – Destination Spatial Reference System (Projection).site (
tuple
) – Tuple of coordinates of the radar site.sweep_mode (
str
) – Defaults to ‘azimuth_surveillance’.rf (
float
) – factor to scale range, defaults to 1. (no scale)
- Keyword Arguments:
- Returns:
dataset (
xarray.DataArray
) – DataArray