pyrad.proc.process_intercomp_with_QC#

pyrad.proc.process_intercomp_with_QC(procstatus, dscfg, radar_list=None)[source]#
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, must contain
        - one "main" datatype to be intercompared (ANY pyrad-supported datatype),
        - "PhiDP" or "PhiDPc"
        - "time_avg_flag"
        for the two radars
    colocgatespath : string.
        base path to the file containing the coordinates of the co-located
        gates
    coloc_data_dir : string. Dataset keyword
        name of the directory containing the csv file with colocated data
    coloc_radars_name : string. Dataset keyword
        string identifying the radar names
    rays_are_indexed : bool. Dataset keyword
        If True it is considered that the rays are indexed and that the
        data can be selected simply looking at the ray number.
        Default false
    azi_tol : float. Dataset keyword
        azimuth tolerance between the two radars. Default 0.5 deg
    ele_tol : float. Dataset keyword
        elevation tolerance between the two radars. Default 0.5 deg
    rng_tol : float. Dataset keyword
        range tolerance between the two radars. Default 50 m
    average_range_gates: list of int. Dataset keyword
        Number of consecutive range gates to average for every radar. If not
        provided it will average the highest resolution radar to match the resolution
        of the lowest resolution radar. If both radars have similar resolutions, it will
        not do any averaging.
    clt_max : float. Dataset keyword
        maximum fraction  of samples that can be clutter contaminated.
        Default 1. i.e. all
    phi_excess_max : float. Dataset keyword
        maximum fraction of samples that can have excess instantaneous
        PhiDP. Excess phidp is computed in the FLAG_TIME_AVG dataset, it corresponds to
        an exceedance of a threshold in PhiDP at the native time resolution of the data
        (no averaging). The excess phidp value corresponds to the parameter phidpmax used in the
        FLAG_TIME_AVG dataset used as input. Default 1. i.e. all
    non_rain_max : float. Dataset keyword
        maximum fraction of samples that can be no rain. Default 1. i.e. all
    phi_avg_max : float. Dataset keyword
        maximum average (hourly) PhiDP in degrees allowed. This conditions differs from
        phi_excess_max, because it concerns only average values and is defined in degrees
        and not in percentage of samples. Default is infinite, i.e. any
    
  • radar_list (list of Radar objects) – Optional. list of radar objects

Returns:

  • new_dataset (dict) – dictionary containing a dictionary with intercomparison data and the key “final” which contains a boolean that is true when all volumes have been processed

  • ind_rad (int) – radar index