pyrad.proc.process_traj_antenna_pattern#

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

Process a new array of data volumes considering a plane trajectory. As result a timeseries with the values transposed for a given antenna pattern is created. The result is created when the LAST flag is set.

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

  • dscfg (dictionary of dictionaries) –

    datatypelist of string. Dataset keyword

    The input data types, can be any datatype supported by pyrad and available in the radar data

    antennaTypestr. Dataset keyword

    Type of antenna of the radar we want to get the view from. Can be AZIMUTH, ELEVATION, LOWBEAM, HIGHBEAM

    par_azimuth_antennadict. Global ekyword

    Dictionary containing the parameters of the PAR azimuth antenna, i.e. name of the file with the antenna elevation pattern and fixed antenna angle

    par_elevation_antennadict. Global keyword

    Dictionary containing the parameters of the PAR elevation antenna, i.e. name of the file with the antenna azimuth pattern and fixed antenna angle

    asr_lowbeam_antennadict. Global keyword

    Dictionary containing the parameters of the ASR low beam antenna, i.e. name of the file with the antenna elevation pattern and fixed antenna angle

    asr_highbeam_antennadict. Global keyword

    Dictionary containing the parameters of the ASR high beam antenna, i.e. name of the file with the antenna elevation pattern and fixed antenna angle

    target_radar_posdict. Global keyword

    Dictionary containing the latitude, longitude and altitude of the radar we want to get the view from. If not specifying it will assume the radar is collocated

    range_allBool. Dataset keyword

    If the real radar and the synthetic radar are co-located and this parameter is true the statistics are going to be computed using all the data from range 0 to the position of the plane. Default False

    rhi_resolutionBool. Dataset keyword

    Resolution of the synthetic RHI used to compute the data as viewed from the synthetic radar [deg]. Default 0.5

    max_altitudefloat. Dataset keyword

    Max altitude of the data to use when computing the view from the synthetic radar [m MSL]. Default 12000.

    latlon_tolfloat. Dataset keyword

    The tolerance in latitude and longitude to determine which synthetic radar gates are co-located with real radar gates [deg]. Default 0.04

    alt_tolfloat. Datset keyword

    The tolerance in altitude to determine which synthetic radar gates are co-located with real radar gates [m]. Default 1000.

    distance_upper_boundfloat. Dataset keyword

    The maximum distance where to look for a neighbour when determining which synthetic radar gates are co-located with real radar gates [m]. Default 1000.

    use_cKDTreeBool. Dataset keyword

    Which function to use to find co-located real radar gates with the synthetic radar. If True a function using cKDTree from scipy.spatial is used. This function uses parameter distance_upper_bound. If False a native implementation is used that takes as parameters latlon_tol and alt_tol. Default True.

    pattern_thresfloat. Dataset keyword

    The minimum of the sum of the weights given to each value in order to consider the weighted quantile valid. It is related to the number of valid data points

    data_is_logdict. Dataset keyword

    Dictionary specifying for each field if it is in log (True) or linear units (False). Default False

    use_nansdict. Dataset keyword

    Dictionary specyfing whether the nans have to be used in the computation of the statistics for each field. Default False

    nan_valuedict. Dataset keyword

    Dictionary with the value to use to substitute the NaN values when computing the statistics of each field. Default 0

    az_tol, el_tolfloat

    azimuth and elevation tolerance (deg). Samples that have values beyond this tolerance from the limits in azimuth and elevation of the radar will be considered outside the sector. Default 3.

  • radar_list (list of Radar objects) – Optional. list of radar objects

  • trajectory (Trajectory object) – containing trajectory samples

Returns:

  • trajectory (Trajectory object) – Object holding time series

  • ind_rad (int) – radar index