pyrad.io.icon2radar_data#

pyrad.io.icon2radar_data(radar, icon_coord, icon_data, time_index=0, slice_xy=True, slice_z=False, field_names=['temperature'], dtype=<class 'numpy.float32'>)[source]#

get the icon value corresponding to each radar gate using nearest neighbour interpolation

Parameters:
  • radar (Radar) – the radar object containing the information on the position of the radar gates

  • icon_coord (dict) – dictionary containing the icon coordinates

  • icon_data (dict) – dictionary containing the icon data

  • time_index (int) – index of the forecasted data

  • slice_xy (boolean) – if true the horizontal plane of the icon field is cut to the dimensions of the radar field

  • slice_z (boolean) – if true the vertical plane of the icon field is cut to the dimensions of the radar field

  • field_names (str) – names of icon fields to convert (default temperature)

  • dtype (numpy data type object) – the data type of the output data

Returns:

icon_fields (list of dict) – list of dictionary with the icon fields and metadata