In [1]:
%matplotlib inline

from pyradarmet.BeamBlock import BeamBlock as BeamBlock

In [6]:
# This test is to see about the implementation of combining multiple DEM files
# when the point occurs close to an edge.
# Line 1: Supply the radar latitude, longitude, (No altitude means it is calculated)
# Line 2: Elevation angle of interest and beam width of radar
# Line 3: Distance from radar and azimuthal angle for profile of interest
bb_test_edge = BeamBlock(radar_lon=-100.5, radar_lat=39.9, radar_antenna_height=10., 
               elev_angle=0.8, beamwidth=.91, 
               range_dist=150., azimuthal_angle=0.)

In [7]:
# Now Plot the 3 panel display
# All the of the keywords are shown for interest, we'll use default colormaps
bb_test_edge.plot_3panel(beam_blockage='complete',
                    lon_plot_range=2., lat_plot_range=2.,
                    terrain_cmap=None, beam_blockage_cmap=None,
                    range_rings=(50., 100.),
                    saveFig=False)


/Users/guy/anaconda/lib/python2.7/site-packages/numpy/ma/core.py:3044: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  dout = ndarray.__getitem__(_data, indx)
/Users/guy/anaconda/lib/python2.7/site-packages/pyradarmet-0.1.2-py2.7.egg/pyradarmet/BeamBlock.py:771: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  bbf, = axb.plot(self.rng_gnd / 1000., self.CBB[self.Az_plot, :], '-k',
/Users/guy/anaconda/lib/python2.7/site-packages/matplotlib/colors.py:584: RuntimeWarning: invalid value encountered in less
  cbook._putmask(xa, xa < 0.0, -1)

In [12]:
# Now the next example is the NPOL radar deployment near Alamosa in 2014
bb_test2 = BeamBlock(radar_lon=-60., radar_lat=9.5, radar_antenna_height=4., 
               elev_angle=0.9, beamwidth=.88, 
               range_dist=150., azimuthal_angle=0.)

In [13]:
# Now Plot the 3 panel display
# All the of the keywords are shown for interest, we'll use default colormaps
bb_test2.plot_3panel(beam_blockage='complete',
                    range_rings=(30., 60., 90.),
                    saveFig=False)


/Users/guy/anaconda/lib/python2.7/site-packages/numpy/ma/core.py:3044: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  dout = ndarray.__getitem__(_data, indx)
/Users/guy/anaconda/lib/python2.7/site-packages/pyradarmet-0.1.2-py2.7.egg/pyradarmet/BeamBlock.py:771: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  bbf, = axb.plot(self.rng_gnd / 1000., self.CBB[self.Az_plot, :], '-k',

In [ ]: