pyrad.proc.process_outlier_filter#

pyrad.proc.process_outlier_filter(procstatus, dscfg, radar_list=None)[source]#

filters out gates which are outliers respect to the surrounding

Parameters:
  • procstatus (int) – Processing status: 0 initializing, 1 processing volume, 2 post-processing

  • dscfg (dictionary of dictionaries) –

    data set configuration. Accepted Configuration Keywords:

    datatype : list of string. Dataset keyword
        The input data types, can be any any data type supported by pyrad
    threshold : float. Dataset keyword
        The distance between the value of the examined range gate and the
        median of the surrounding gates to consider the gate an outlier
    nb : int. Dataset keyword
        The number of neighbours (to one side) to analyse. i.e. 2 would
        correspond to 24 gates
    nb_min : int. Dataset keyword
        Minimum number of neighbouring gates to consider the examined gate
        valid
    percentile_min, percentile_max : float. Dataset keyword
        gates below (above) these percentiles (computed over the sweep) are
        considered potential outliers and further examined
    
  • radar_list (list of Radar objects) – Optional. list of radar objects

Returns:

  • new_dataset (dict) – dictionary containing the output, it will contain the corrected version of the provided datatypes For example dBZ -> dBZc, ZDR -> ZDRc, RhoHV -> RhoHVc

  • ind_rad (int) – radar index