In [1]:
#first we do some imports and check the version of Py-ART for consistency
import pyart
from matplotlib import pyplot as plt
import netCDF4
import numpy as np
from copy import deepcopy
import copy
import scipy
from matplotlib import rc
from netCDF4 import num2date
import h5py
%matplotlib inline
print pyart.__version__


1.0.0.dev-35e1157

In [2]:
filename = '/Volumes/LaCie/data/radar/kurnel/SCollis_KurnellHDF5_20140902_1800-1900/5402_20140902_182402.vol.h5'
radar = pyart.aux_io.read_odim_h5(filename,  file_field_names=True)

In [14]:
print radar.fields.keys()
print radar.fixed_angle['data']


['VRAD_CLEAN', 'QCFLAGS', 'WRAD', 'DBZH_CLEAN', 'VRAD', 'TH', 'DBZH']
[  0.5         10.          13.30000019  17.89999962  23.89999962  32.
   0.89999998   1.29999995   1.79999995   2.4000001    3.0999999
   4.19999981   5.5999999    7.4000001 ]

In [19]:
myd = pyart.graph.RadarMapDisplay(radar)
fig = plt.figure(figsize = [18,10])
myd.plot_ppi_map( 'DBZH', vmin = -8, vmax = 64, 
                 resolution = 'h', max_lat = -33, 
                 min_lat = -35, min_lon = 150, max_lon = 153)
m = myd.basemap
m.drawparallels(np.linspace(-32, -35, 11),labels=[1,0,0,0])
m.drawmeridians(np.linspace(150, 153, 11),labels=[0,0,0,1])
m.drawrivers()
m.drawmapscale(150.8, -33.2, 151, -33.2, 100, barstyle='fancy', fontcolor='k', fillcolor1='b', fillcolor2='k')


Out[19]:
[<matplotlib.lines.Line2D at 0x113e78fd0>,
 <matplotlib.lines.Line2D at 0x11ba5df10>,
 <matplotlib.lines.Line2D at 0x11b76e590>,
 <matplotlib.lines.Line2D at 0x11b76ebd0>,
 <matplotlib.patches.Polygon at 0x11b78c250>,
 <matplotlib.patches.Polygon at 0x11b78c7d0>,
 <matplotlib.patches.Polygon at 0x11b78cc90>,
 <matplotlib.patches.Polygon at 0x11b7aa190>,
 <matplotlib.lines.Line2D at 0x11b7aa650>,
 <matplotlib.lines.Line2D at 0x11b7aab90>,
 <matplotlib.lines.Line2D at 0x11779d210>,
 <matplotlib.text.Text at 0x11779d850>,
 <matplotlib.text.Text at 0x1177b80d0>,
 <matplotlib.text.Text at 0x1177b8510>,
 <matplotlib.text.Text at 0x1177b8950>]

In [16]:
myd.plot_ppi_map?

In [ ]: