diff --git a/pyart/retrieve/qvp.py b/pyart/retrieve/qvp.py index a22d5d49bf..6caa08c00e 100644 --- a/pyart/retrieve/qvp.py +++ b/pyart/retrieve/qvp.py @@ -8,7 +8,7 @@ from ..core.transforms import antenna_to_cartesian -def quasi_vertical_profile(radar, desired_angle=None, fields=None, gatefilter=None): +def quasi_vertical_profile(radar, desired_angle=None, fields=None, gatefilter=None,verbose=False): """ Quasi Vertical Profile. @@ -25,6 +25,8 @@ def quasi_vertical_profile(radar, desired_angle=None, fields=None, gatefilter=No desired_angle : float Radar tilt angle to use for indexing radar field data. None will result in wanted_angle = 20.0 + verbose : bool + boolean flag to turn the printing of radar tilts on or off. Other Parameters ---------------- @@ -63,9 +65,10 @@ def quasi_vertical_profile(radar, desired_angle=None, fields=None, gatefilter=No index = abs(radar.fixed_angle['data'] - desired_angle).argmin() radar_slice = radar.get_slice(index) - # Printing radar tilt angles and radar elevation - print(radar.fixed_angle['data']) - print(radar.elevation['data'][-1]) + if verbose: + # Printing radar tilt angles and radar elevation + print(radar.fixed_angle['data']) + print(radar.elevation['data'][-1]) # Setting field parameters # If fields is None then all radar fields pulled else defined field is used