A framework for adaptive weather sensing using phased-array radar