Yogesh,
Offsetting a RHI plot is not directly supported in Py-ART but
you can add a second axis to the plot which has the next scale.
For example:
import matplotlib.pyplot as plt
import pyart
import netCDF4
filename = 'XSW110520113537.RAW7HHL'
# create the plot using RadarDisplay
radar = pyart.io.read(filename)
display = pyart.graph.RadarDisplay(radar)
min_height_above_radar = 0 # in km
max_height_above_radar = 17 # in km
fig = plt.figure(figsize=[10, 4])
ax = fig.add_subplot(111)
display.plot('reflectivity', 0, vmin=-32, vmax=64,
title='Offset', colorbar_flag=False, ax=ax)
display.set_limits(ylim=[min_height_above_radar,
max_height_above_radar])
ax2 = ax.twinx()
radar_height = 11.12 # height of radar in kilometers
ax2.set_ylim(radar_height + min_height_above_radar, radar_height +
max_height_above_radar)
ax2.set_ylabel('Distance Above Ground (km)')
plt.show()
This produces the attached figure which has a second scale on the
right side which measures the height above the ground.
Cheers,
- Jonathan Helmus