pyart.retrieve.map_profile_to_gates#
- pyart.retrieve.map_profile_to_gates(profile, heights, radar, toa=None, profile_field=None, height_field=None)[source]#
Given a profile of a variable map it to the gates of radar assuming 4/3Re.
- Parameters:
profile (array) – Profile array to map.
heights (array) – Monotonically increasing heights in meters with same shape as profile.
radar (Radar) – Radar to map to.
toa (float, optional) – Top of atmosphere, where to use profile up to. If None check for mask and use lowest element, if no mask uses whole profile.
height_field (str, optional) – Name to use for height field metadata. None will use the default field name from the Py-ART configuration file.
profile_field (str, optional) – Name to use for interpolate profile field metadata. None will use the default field name from the Py-ART configuration file.
- Returns:
height_dict, profile_dict (dict) – Field dictionaries containing the height of the gates and the profile interpolated onto the radar gates.