def idx2ra(rng_id, agl_id, range_grid, angle_grid):
    """Mapping from ra indices to absolute range (m) and azimuth (rad)."""
    rng = range_grid[rng_id]
    agl = angle_grid[agl_id]
    return rng, agl