act.utils.create_pyart_obj¶
- act.utils.create_pyart_obj(ds, variables=None, sweep=None, azimuth=None, elevation=None, range_var=None, sweep_start=None, sweep_end=None, lat=None, lon=None, alt=None, sweep_mode='ppi', sweep_az_thresh=10.0, sweep_el_thresh=0.5)[source]¶
Produces a Py-ART radar object based on data in the ACT Xarray dataset.
- Parameters:
ds (xarray.DataSet) – ACT Xarray dataset.
variables (list) – List of variables to add to the radar object, will default to all variables.
sweep (string) – Name of variable that has sweep information. If none, will try and calculate from the azimuth and elevation.
azimuth (string) – Name of azimuth variable. Will try and find one if none given.
elevation (string) – Name of elevation variable. Will try and find one if none given.
range_var (string) – Name of the range variable. Will try and find one if none given.
sweep_start (string) – Name of variable with sweep start indices.
sweep_end (string) – Name of variable with sweep end indices.
lat (string) – Name of latitude variable. Will try and find one if none given.
lon (string) – Name of longitude variable. Will try and find one if none given.
alt (string) – Name of altitude variable. Will try and find one if none given.
sweep_mode (string) – Type of scan. Defaults to PPI.
sweep_az_thresh (float) – If calculating sweep numbers, the maximum change in azimuth before new sweep.
sweep_el_thresh (float) – If calculating sweep numbers, the maximum change in elevation before new sweep.
- Returns:
radar (radar.Radar) – Py-ART Radar Object.