diff --git a/pyart/correct/phase_proc.py b/pyart/correct/phase_proc.py index 2d76473035d..27b6901f1c9 100644 --- a/pyart/correct/phase_proc.py +++ b/pyart/correct/phase_proc.py @@ -108,7 +108,11 @@ def fzl_index(fzl, ranges, elevation, radar_height): p_r = 4.0 * Re / 3.0 z = ( radar_height - + (ranges**2 + p_r**2 + 2.0 * ranges * p_r * np.sin(elevation * np.pi / 180.0)) + + ( + ranges**2 + + p_r**2 + + 2.0 * ranges * p_r * np.sin(elevation * np.pi / 180.0) + ) ** 0.5 - p_r ) diff --git a/pyart/retrieve/qvp.py b/pyart/retrieve/qvp.py index 11a621ad23b..b4a6b4a63ee 100644 --- a/pyart/retrieve/qvp.py +++ b/pyart/retrieve/qvp.py @@ -24,7 +24,7 @@ _update_qvp_metadata _update_along_coord_metadata -""" "" "" +""" "" "" "" "" "" "" "" "" from copy import deepcopy from warnings import warn diff --git a/pyart/util/radar_utils.py b/pyart/util/radar_utils.py index dd57eaad9f8..ba7063a98cb 100644 --- a/pyart/util/radar_utils.py +++ b/pyart/util/radar_utils.py @@ -414,17 +414,17 @@ def subset_radar( if radar_aux.instrument_parameters is not None: if "nyquist_velocity" in radar_aux.instrument_parameters: - radar_aux.instrument_parameters["nyquist_velocity"]["data"] = ( - radar_aux.instrument_parameters["nyquist_velocity"]["data"][ind_rays] - ) + radar_aux.instrument_parameters["nyquist_velocity"][ + "data" + ] = radar_aux.instrument_parameters["nyquist_velocity"]["data"][ind_rays] if "pulse_width" in radar_aux.instrument_parameters: - radar_aux.instrument_parameters["pulse_width"]["data"] = ( - radar_aux.instrument_parameters["pulse_width"]["data"][ind_rays] - ) + radar_aux.instrument_parameters["pulse_width"][ + "data" + ] = radar_aux.instrument_parameters["pulse_width"]["data"][ind_rays] if "number_of_pulses" in radar_aux.instrument_parameters: - radar_aux.instrument_parameters["number_of_pulses"]["data"] = ( - radar_aux.instrument_parameters["number_of_pulses"]["data"][ind_rays] - ) + radar_aux.instrument_parameters["number_of_pulses"][ + "data" + ] = radar_aux.instrument_parameters["number_of_pulses"]["data"][ind_rays] # Get new fields if field_names is None: