pyart.retrieve.data_for_centroids#

pyart.retrieve.data_for_centroids(radar, lapse_rate=-6.5, refl_field=None, zdr_field=None, rhv_field=None, kdp_field=None, temp_field=None, iso0_field=None, temp_ref='temperature', nsamples_max=20000)[source]#

Prepares the data to compute the centroids of the hydrometeor classification

Parameters:
  • radar (radar) – Radar object.

  • lapse_rate (float) – The decrease in temperature for each vertical km [deg/km]

  • refl_field, zdr_field, rhv_field, kdp_field, temp_field, iso0_field (str) – Inputs. Field names within the radar object which represent the horizonal reflectivity, the differential reflectivity, the copolar correlation coefficient, the specific differential phase, the temperature and the height respect to the iso0 fields. A value of None for any of these parameters will use the default field name as defined in the Py-ART configuration file.

  • temp_ref (str) – the field use as reference for temperature. Can be either temperature or height_over_iso0

  • nsamples_max (int) – Maximum number of samples to keep from each radar volume

Returns:

refl_std, zdr_std, kdp_std, rhohv_std, relh_std (1D-array) – The standardized valid data