pyart.retrieve.kdp_leastsquare_double_window#
- pyart.retrieve.kdp_leastsquare_double_window(radar, swind_len=11, smin_valid=6, lwind_len=31, lmin_valid=16, zthr=40.0, phidp_field=None, refl_field=None, kdp_field=None, vectorize=False)[source]#
Compute the specific differential phase (KDP) from differential phase data using a piecewise least square method. For optimal results PhiDP should be already smoothed and clutter filtered out.
- Parameters:
radar (Radar) – Radar object.
swind_len (int) – The lenght of the short moving window.
smin_valid (int) – Minimum number of valid bins to consider the retrieval valid when using the short moving window
lwind_len (int) – The lenght of the long moving window.
lmin_valid (int) – Minimum number of valid bins to consider the retrieval valid when using the long moving window
zthr (float) – reflectivity value above which the short window is used
phidp_field (str) – Field name within the radar object which represent the differential phase shift. A value of None will use the default field name as defined in the Py-ART configuration file.
refl_field (str) – Field name within the radar object which represent the reflectivity. A value of None will use the default field name as defined in the Py-ART configuration file.
kdp_field (str) – Field name within the radar object which represent the specific differential phase shift. A value of None will use the default field name as defined in the Py-ART configuration file.
vectorize (bool) – whether to use a vectorized version of the least square method
- Returns:
kdp_dict (dict) – Retrieved specific differential phase data and metadata.