import cartopy.crs as ccrsimport matplotlib.pyplot as pltimport pyartfrom pyproj import CRS
# Use NZTM2000 projectioncrs = CRS.from_proj4("+proj=tmerc +lat_0=0 +lon_0=173 +k=0.9996 +x_0=1600000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs")
# Read from raw dataradar_a = pyart.io.read('AKL170101000003.RAWVOLA.bz2') radar_b = pyart.io.read('AKL170101000342.RAWVOLB.bz2')
# Convert to grid using NZTM2000grid = pyart.map.grid_from_radars((radar_a, radar_b), grid_shape=(4, 250,250), grid_limits=((0.,8000.,),(-250000.,250000.), (-250000.,250000.)), grid_projection=crs.to_dict(), weighting_function = 'Barnes2', fields=['reflectivity'])# create the plotfig = plt.figure()ax = fig.add_subplot(111)ax.imshow(grid.fields['reflectivity']['data'][0], origin='lower')plt.show()For one any gate that has a FillValue (eg -999 et al)
You only want to be gridding valid returns. Our experience with NEXRAD, depending on the scene, this can speed things up over a factor of two.
I -think- it was gatefilter.exclude_invalid
--
You received this message because you are subscribed to the Google Groups "Py-ART Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyart-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyart-users/bb7cbb35-2231-45a1-8215-f165c9a57de9%40googlegroups.com.