- class pyart.map.GateMapper(src_radar: pyart.core.radar.Radar, dest_radar: pyart.core.radar.Radar, tol=500.0)[source]¶
The GateMapper class will, given one radar’s gate, find the gate in another radar’s volume that is closest in location to the specified gate. GateMapper will use a kd-tree in order to generate a mapping function that provides the sweep and ray index in the other radar that is closest in physical location to the first radar’s gate. This functionality provides easy mapping of equivalent locations between radar objects with simple indexing. In addition, returning a mapped radar object is also supported.
>>> grid_mapper = pyart.map.GridMapper(src, dest) >>> # Get the destination radar's equivalent of (2, 2) in the source radar's >>> # coordinates >>> dest_index = grid_mapper[2, 2] >>> radar_mapped = grid_mapper.mapped_radar(['reflectivity'])
src_radar (pyart.core.Radar) – The source radar data.
dest_radar (pyart.core.Radar) – The destination radar to map the source radar data onto.
tol (float) – The difference in meters between the source and destination gate allowed for an adequate match.
This returns a version of the destination radar with the fields in field_list from the source radar mapped into the destination radar's coordinate system.