Development of a novel forward dynamic programming method for weather routing