pyrad.proc.process_radar_resampling#

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

Resamples the radar data to mimic another radar with different geometry and antenna pattern

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

    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 keyword

    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

    change_antenna_patternBool. Dataset keyword

    If true the target radar has a different antenna pattern than the observations radar. Default True

    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. Dataset 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 specifying 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

    moving_angle_min, moving_angle_max: float. Dataset keyword

    The minimum and maximum azimuth angle (deg) of the target radar. Default 0, 360.

    ray_res: float

    Ray resolution (deg). Default 1 deg.

    rng_min, rng_max:

    The minimum and maximum range of the target radar (m). Default 0, 100000

    rng_resfloat

    The target radar range resolution (m). Default 100.

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

Returns:

  • new_dataset (dict) – dictionary containing the new radar

  • ind_rad (int) – radar index