pyrad.proc.process_spectra_ang_avg#

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

Function to average the spectra over the rays. This function is intended mainly for vertically pointing scans. The function assumes the volume is composed of a single sweep, it averages over the number of rays specified by the user and produces a single ray output.

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,
        any spectral datatype supported by pyrad
    navg : int
        Number of spectra to average. If -1 all spectra will be averaged.
        Default -1.
    
  • radar_list (list of spectra objects) – Optional. list of spectra objects

Returns:

  • new_dataset (dict) – dictionary containing the same output fields as the provided datatypes

  • ind_rad (int) – radar index