Closed scollis closed 1 month ago
Did someone say cartopy support for grids? Y'all already got that. Here's a plot with multiple NEXRADs mosaicked via Py-ART, visualizing an ISS overpass of thunderstorms near San Antonio, Austin, and College Station (red stars) on 1/2/2017. Base map provided by cartopy and its StamenTerrain tiling. Was like two lines to get the radar on there, using Grid's method to get lat/lons, then a pcolormesh call.
Yep.. But it is one line if you have it in an xarray container :) Sweet plot.
Xarray was added to grid routine, but not the radardisplay. Xarry was also used in the spectra object. I will leave this open for now .
Coming back to this thread - we should like this to Discussion #1047
As mentioned at previous meetings/discussions, we are moving forward with an xradar accessor, enabling us to use the full suite of functionality of Py-ART with xradar.
The idea here is add an accessor
xradar_tree.pyart.to_radar()
Which adds a collection of additional methods (ex. .get_gate_x_y_z
) to the xradar object that mimic the existing Py-ART radar object.
The existing pyart.core.Radar()
object has the following methods:
__getstate__(self)
__setstate__(self, state)
init_rays_per_sweep(self)
init_gate_x_y_z(self)
init_gate_longitude_latitude(self)
init_gate_altitude(self):
_check_sweep_in_range(self, sweep)
check_field_exists(self, field_name)
iter_start(self)
iter_end(self)
iter_start_end(self)
iter_slice(self)
iter_field(self, field_name)
iter_azimuth(self)
iter_elevation
get_field(self, sweep, field_name, copy=False)
get_azimuth(self, sweep, copy=False)
` get_elevation(self, sweep, copy=False)
get_gate_x_y_z(self, sweep, edges=False, filter_transitions=False)
get_gate_area(self, sweep)
get_gate_lat_lon_alt(self, sweep, reset_gate_coords=False, filter_transitions=False ):
get_nyquist_vel(self, sweep, check_uniform=True)
info(self, level="standard", out=sys.stdout)
_dic_info(self, attr, level, out, dic=None, ident_level=0)
add_field(self, field_name, dic, replace_existing=False)
add_filter(self, gatefilter, replace_existing=False, include_fields=None)
add_field_like( self, existing_field_name, field_name, data, replace_existing=False ):
extract_sweeps(self, sweeps)
_gate_lon_lat_data_factory(radar, coordinate)
_gate_altitude_data_factory(radar)
@mgrover1 How were we in terms of this list?
Creating a Checklist so we can keep track of this:
radar.to_xradar()
method