Estimating atmospheric stability from observations and correcting wind shear models accordingly