pyrad.io.icon2radar_coord#
- pyrad.io.icon2radar_coord(radar, icon_coord, slice_xy=True, slice_z=False, field_name=None)[source]#
Given the radar coordinates find the nearest icon model pixel
- Parameters:
radar (Radar) – the radar object containing the information on the position of the radar gates
icon_coord (dict) – dictionary containing the icon coordinates
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_name (str) – name of the field
- Returns:
icon_ind_field (dict) – dictionary containing a field of icon indices and metadata