xradar.model.create_sweep_dataset#
- xradar.model.create_sweep_dataset(**kwargs)[source]#
Create Sweep Dataset with Coordinates.
This function creates a simple Dataset with all needed coordinates.
Radar moment variables can be assigned to this Dataset.
- Keyword Arguments:
shape (
tuple
) – tuple with shape of DataArraytime (
float
ornumpy.ndarray
) – time resolution or array with time values (‘seconds since’-notation).date_str (
str
) – String with the form ‘YYYY-mm-ddTHH:MM:SS’ depicting the reference time.rng (
float
ornumpy.ndarray
) – range resolution or array with range values.azimuth (
float
ornumpy.ndarray
) – azimuth resolution or array with azimuth values.direction (
int
) – 1 - CW/UP, -1 CCW/DOWNa1gate (
int
) – First measured ray. Defaults to 0. Only used for PPI.elevation (
float
ornumpy.ndarray
) – elevation resolution or array with elevation values.sweep (
str
) – “PPI” or “RHI”.
- Returns:
swp_ds (
xarray.Dataset
) – Sweep Dataset.