pyrad.io.dem2radar_data#

pyrad.io.dem2radar_data(radar, dem_data, slice_xy=True, field_name='visibility')[source]#

get the DEM 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

  • dem_data (dict) – dictionary containing the DEM data

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

  • field_names (str) – names of DEM fields to convert

Returns:

dem_field (dict) – Dictionary with the DEM fields and metadata