A rain-rate retrieval algorithm for attenuated radar measurements