Yamartino method
   HOME

TheInfoList



OR:

The Yamartino method is an algorithm for calculating an approximation of the standard deviation of wind direction during a single pass through the incoming data.


Background

The standard deviation of wind direction is a measure of lateral
turbulence In fluid dynamics, turbulence or turbulent flow is fluid motion characterized by chaotic changes in pressure and flow velocity. It is in contrast to a laminar flow, which occurs when a fluid flows in parallel layers, with no disruption between ...
and is used in a method for estimating the Pasquill stability category in air pollution dispersion. The simple method for calculating standard deviation requires two passes through the list of values. The first pass determines the average of those values; the second pass determines the sum of the squares of the differences between the values and the average. This double-pass method requires access to all values. A single-pass method can be used for normal data but is unsuitable for angular data such as wind direction where the 0°/360° (or ±180°) discontinuity forces special consideration. For example, the directions 1°, 0°, and 359° (or −1°) should not average to the direction 180°. The Yamartino method, introduced by Robert J. Yamartino in 1984, solves both problems. The
United States Environmental Protection Agency The Environmental Protection Agency (EPA) is an independent executive agency of the United States federal government tasked with environmental protection matters. President Richard Nixon proposed the establishment of EPA on July 9, 1970; it ...
(EPA) has chosen it as the preferred way to compute the standard deviation of wind direction.Meteorological Monitoring Guidance for Regulatory Modeling Applications (section 6.2.1)
/ref> A further discussion of the Yamartino method, along with other methods of estimating the standard deviation of wind direction can be found in Farrugia & Micallef. It is possible to calculate the exact standard deviation in one pass. However, that method needs slightly more calculation effort.


Algorithm

Over the time interval to be averaged across, ''n'' measurements of wind direction (''θ'') will be made and two totals are accumulated without storage of the ''n'' individual values. At the end of the interval the calculations are as follows: with the average values of sin ''θ'' and cos ''θ'' defined as :s_a = \frac 1 n \sum_^n \sin \theta_i, :c_a = \frac 1 n \sum_^n \cos \theta_i. Then the average wind direction is given via the four-quadrant arctan(x,y) function as :\theta_a=\arctan(c_a,s_a). From twenty different functions for ''σ''''θ'' using variables obtained in a single-pass of the wind direction data, Yamartino found the best function to be : \sigma_\theta = \arcsin (\varepsilon) \left +\left(\tfrac 2 -1\right) \varepsilon^3\right where :\varepsilon=\sqrt. The key here is to remember that sin2''θ'' + cos2''θ'' = 1 so that for example, with a constant wind direction at any value of ''θ'', the value of \varepsilon will be zero, leading to a zero value for the standard deviation. The use of \varepsilon alone produces a result close to that produced with a double-pass when the dispersion of angles is small (not crossing the discontinuity), but by construction it is always between 0 and 1. Taking the
arcsine In mathematics, the inverse trigonometric functions (occasionally also called arcus functions, antitrigonometric functions or cyclometric functions) are the inverse functions of the trigonometric functions (with suitably restricted domains). Spec ...
then produces the double-pass answer when there are just two equally common angles: in the extreme case of an oscillating wind blowing backwards and forwards, it produces a result of \tfrac radians, i.e. a
right angle In geometry and trigonometry, a right angle is an angle of exactly 90 degrees or radians corresponding to a quarter turn. If a ray is placed so that its endpoint is on a line and the adjacent angles are equal, then they are right angles. Th ...
. The final factor adjusts this figure upwards so that it produces the double-pass result of \tfrac radians for an almost uniform distribution of angles across all directions, while making minimal change to results for small dispersions. The theoretical maximum error against the correct double-pass ''σ''''θ'' is therefore about 15% with an oscillating wind. Comparisons against Monte Carlo generated cases indicate that Yamartino's algorithm is within 2% for more realistic distributions. A variant might be to weight each wind direction observation by the wind speed at that time.


See also

* Algorithms for calculating variance *
Circular dispersion Directional statistics (also circular statistics or spherical statistics) is the subdiscipline of statistics that deals with directions (unit vectors in Euclidean space, R''n''), axes (lines through the origin in R''n'') or rotations in R''n''. Mo ...


References


Further reading

*{{cite journal , author = P. S. Farrugia and A. Micallef , year = 2006 , title = Comparative analysis of estimators for wind direction standard deviation , journal =
Meteorological Applications ''Meteorological Applications'' is a peer-reviewed scientific journal of meteorology published four times per year since 1994. It is published by John Wiley & Sons on behalf of the Royal Meteorological Society. Abstracting and indexing The journ ...
, volume = 13 , issue = 1 , pages = 29–41 , doi = 10.1017/S1350482705001982 , bibcode = 2006MeApp..13...29F Statistical algorithms Boundary layer meteorology Atmospheric dispersion modeling Directional statistics