One vane points a little west of north. A second reading points a little east of north. The observer writes 350 degrees and 10 degrees, enters the two numbers in a spreadsheet, and receives 180 degrees as their mean. That is due south in the same compass convention. Nothing was wrong with the spreadsheet's arithmetic. The two readings were added and divided by two correctly. The error was asking arithmetic on the labels to represent a midpoint on a circle. The numeric labels near either side of north differ by 340, but the shorter angular separation between the two headings is twenty degrees.

A change of labels makes the trap easy to see. Call the first bearing minus ten degrees relative to north and the second plus ten. Now the arithmetic answer is zero, even though no vane moved. A method whose conclusion can swing from north to south because one observation was relabeled by a full turn is not a reasonable general summary of compass bearings. We need a representation that treats adding a whole turn as leaving the physical direction unchanged. A pair of vector components supplies it without opening a special case for the seam.
There is a second choice hidden here. A bearing from which the wind blows distinguishes north from south. The orientation of a straight section of path often does not: a segment running north or south lies on the same north–south line. An arrow and a line should not be averaged by precisely the same interpretation. Both can use vectors, but the way the angles are represented needs to reflect whether reversing an endpoint creates a new observation or simply another label for the same feature.
The NIST/SEMATECH graphical techniques gallery is a useful index for exploring observed values and their order, while its process modeling chapter helps distinguish developing a description from checking whether it serves the intended use. No NIST source supplied the numerical illustration below. The Met Office's material on measuring wind describes the meteorological convention for bearings relative to true north, measured from where the wind blows. Philipp Berens's original circular statistics toolbox paper provides background for the mean direction, resultant length and handling of axial observations.
Illustrative wind direction observations and two summaries
Illustrative only. The following degrees are invented, not measured winds, model outputs from a source dataset, or official reporting targets. Here zero degrees denotes the mathematical bearing north; it does not denote a calm or missing observation.
| Observation or summary | Degrees |
|---|---|
| Observation A | 350 |
| Observation B | 10 |
| Arithmetic mean | 180 |
| Circular mean | 0 |
The bars show numeric degree labels, not distances between bearings. A bar at zero should not be interpreted as an absence of wind or a zero-length resultant. In fact, for this pair the resultant of the equally weighted unit directions is close to its maximum possible normalized length, because the headings agree closely. To see the geometry, place two arrows around the north mark of a compass. Their sides facing east and west balance each other, while both point mostly north. The arithmetic result at south describes neither arrow nor the short arc between them.
The first two rows are directions. The last two are computations on those same directions, not further observations. An equally spaced numerical scale can emphasize how strange the arithmetic result is. It is a poor standalone display of angular distance. A companion compass plot, with zero and 360 degrees identified as the same point, reveals a narrow pair north of the center on either side of the seam. Caption such a plot separately from any representation of speed. The purpose here is to compare two methods of summarizing directions, not larger and smaller quantities of wind.
Build the mean from components
For bearings clockwise from north, represent an angle by its north component equal to the cosine and its east component equal to the sine. Use a unit arrow when the goal is to weight the directions equally. For 350 degrees the north component is about 0.985 and the east component is about minus 0.174. For ten degrees the north component is the same, while the east component is about plus 0.174. Average north components to obtain about 0.985. Average east components to obtain zero. Reconstruct the bearing using the two components, and the result points north.
In a program, check how the two-argument arctangent is documented. If the mathematical function takes its vertical coordinate first and its horizontal coordinate second, the compass calculation uses the east component as its first argument and the north component as its second. This is because the bearing is measured from the north axis toward the east axis, despite the labels familiar from an ordinary display of x and y. Then convert the returned angle to the desired degree interval, for instance zero up to but not including 360. Correct axis instructions matter more than memorizing a one-line formula detached from its convention.
Another easy mistake is to pass degree numbers to a function expecting radians. Use a conversion or a function explicitly working in degrees and test the cardinal points before trusting a report. The north vector should have north one and east zero in the chosen convention; east should have north zero and east one; south should have north minus one and east zero. A tiny nonzero value from floating-point arithmetic at an exact cardinal angle does not disprove the geometry. A gross discrepancy in a cardinal test usually means the wrong arguments, units, source orientation or sign convention.
Think of the unit components as preserving direction without preserving the label. Adding a full turn to an angle leaves its sine and cosine unchanged. So does replacing 350 by minus ten. The two arrays produce the same mean and resultant length. This is a substantive check on the chosen representation. It does not depend on picking north as a convenient place to break the data. If east were the seam in another coordinate system, the same physical arrows would still lead to the same physical mean once their coordinate conventions were reconciled.
There are circumstances in which arithmetic on locally unwrapped bearings can work as a descriptive shortcut. If a tight group of observations is known to be near north, choosing a continuous small interval around north and writing minus ten and plus ten makes the arithmetic midpoint reasonable in the toy. But the method assumes one already knows how to unwrap the group. It can be ambiguous for wide or separated distributions and, even in a consistent window, it is not identical in general to taking the circular mean. A component calculation makes the rule explicit and keeps the resultant available.
Report the resultant as well as the direction
The length of the mean of unit arrows ranges from zero to one. In the toy it is about 0.985, because the east components cancel while north components agree closely. This is a description of concentration of the observed directions, not speed. Ten gentle observations tightly grouped can have a longer normalized resultant than ten strong observations spread around the compass. The value also is not a confidence level. How informative it is about a wider wind process depends on the sample, timing and context.
An exactly canceled mean vector has no direction. Two equally weighted arrows pointed north and south produce it. A program may print a numeric bearing anyway because small numerical remnants survive rounding or because it has a convention for the arctangent of two zeros. Suppress that value or flag it as undefined, rather than showing an authoritative arrow. A north heading is not a valid default for physically unresolved direction. Save the components and the rule that identifies the condition, particularly if the result is used by other software.
A short nonzero resultant deserves caution too. For two unit arrows at zero and 179 degrees the mean arrow points around 89.5 degrees, with length approximately 0.0087. Replace the second bearing by 181, a shift of only two degrees, and the mean points around 270.5 degrees with a similarly short length. These results are mathematically consistent: the small leftovers lie on opposite sides after near cancellation. But their compass labels give a false impression of highly distinct representative winds. The more important observation is that an ordinary single direction is unstable for such a pair.
A small resultant does not diagnose one specific pattern. Observations might cluster in two opposing directions, spread broadly, change through time, or combine records that should not have been grouped. Those situations have different physical interpretations despite a similar resultant length. Look at the angles themselves, preferably with direction and duration or speed information where appropriate. If a report cannot defend a common heading, an honest statement of mixed directions can be more useful than a precise-looking compass number.
A threshold for suppressing short resultants should not be a number imported from this article. For a display, a threshold might reflect how much of a consistent heading the user needs to act. For an inferential report it might come from a planned analysis that accounts for sample variability and the conditions under which observations were obtained. A numerical tolerance for exact cancellation is yet another thing, intended to prevent a floating-point residue from creating a heading. These decisions may share the word threshold, but they address different problems and deserve different documentation.
A long resultant also needs its limits. Two readings close to north can give a very long normalized arrow without establishing that most of the day was northerly. They might have been acquired seconds apart during the same short episode. Repeated readings support a statement about the collected directions; how strongly they support a statement about the day depends on coverage. Time ordering and choice of measurement window do not disappear simply because the angle arithmetic was done correctly.
Decide what each arrow represents
A meteorological wind bearing generally describes where the air comes from. A velocity vector for the air's movement points toward where it goes. These are opposite headings. If the two observations in the toy are winds from near north, their direction-of-origin average is from north. The corresponding movement points approximately south. This is entirely different from getting 180 by averaging the two numerical origin labels. That arithmetic mistake yielded south under an origin convention, which says the opposite physical thing. A caption should identify both the angular frame and which direction is represented.
A flag or windsock can pose the same problem. The fabric commonly streams downwind, while a coded origin reading reports the upwind direction. If a citizen observer describes the tail as pointing east and a station says the wind is from the west, these may describe the same event rather than conflicting measurements. Store the original observation style, then convert consistently if they need to be combined. Applying a 180-degree correction to some records twice and to others not at all can generate nearly perfect cancellation from perfectly plausible source readings.
Also check which north supplied the zero. True north is a geographic reference. A compass may instead point relative to magnetic north, and a digital map can have a grid orientation of its own. Do not presume any difference has been corrected just because every bearing lies between zero and 360. Leave unverified reference types separate or document a justified conversion. A mean of two comparable headings is intended to summarize the scene, not an untracked disagreement between coordinate systems. A tabular value without its reference direction is incomplete evidence for alignment.
Source codes deserve their own check before conversion. The National Weather Service glossary entry for wind direction describes a reporting convention in which zero denotes calm and north is represented by 360. The toy uses mathematical zero as north, so it cannot be applied blindly to raw messages following that reporting convention. Some archives also use other flags or codes for unavailable or variable direction. Interpret each source's specification first. Separating quality and state from the numeric bearing is a better habit than assuming every numeral can become an arrow.
Calm conditions can still contribute to a speed summary when they were measured as zero speed. They cannot provide an ordinary unit direction just because a reserved code happened to be zero. In a properly defined velocity average, a zero speed can have zero movement components and a defined weight in time, while a missing wind record cannot silently contribute those same components. For an equally weighted average of the available wind bearings, calm may be excluded as no direction. State which of these questions is being answered, and report the number or duration of calm and unresolved intervals separately.
Separate how often a direction occurs from net movement
The direction of the average unit arrows weights each usable observation equally unless another weighting scheme is stated. This can describe the prevailing direction by the chosen observation unit. A mean velocity instead combines signed east and north velocity components with an appropriate time weighting. Speed influences the latter because faster movement contributes larger component magnitudes. The difference is legitimate when the questions are different. It is not enough to give a bare phrase such as “average wind,” because a reader may assume the form relevant to their decision.
Take an invented pair with one reading from north at a speed of one and another from south at a speed of three, in consistent arbitrary speed units and for equal periods. The equally weighted origin directions cancel. The average movement is northward at speed one: southerly wind moves north at speed three, and northerly wind moves south at speed one, so their signed mean north component is one. The average scalar speed is two. A compass heading, a vector magnitude and a scalar average all tell different stories about the same two intervals. None can be replaced by another simply to avoid explaining a unit.
There can be other weights. Suppose ten equally spaced camera readings were collected in one brief episode and one five-minute average represents another long interval. Treating each row equally can make the brief episode dominate the count, while a duration-weighted result asks a time-based question. Unlike a speed weight, a duration weight does not inherently describe which direction moves more air. If a velocity summary also considers duration, the component contributions reflect both. Name which weights entered the numerator and denominator and ensure that low coverage is not hidden behind a well-defined angle.
Computing unit means of previously averaged direction rows can introduce another unrecorded weight. One hourly direction may summarize a tightly consistent hour and another a mixed hour whose small resultant was barely interpretable. Turning both to unit arrows on export discards that difference. If the goal is to combine periods as though their underlying readings were pooled, keep their component sums and counts or relevant time weights. A normalized heading per period rarely contains enough information by itself to reconstruct the correct combined summary.
An unarrowed path belongs to a different set of angles
An undirected path orientation is an axis rather than an arrow. If one observer stands at the north end and faces south while another stands at the south end and faces north, their endpoint bearings differ by 180 degrees. For the question of alignment of a straight segment, both describe the same north–south orientation. A unit direction average of those observations cancels, which would be a mistake for the axial question: the evidence agrees perfectly. For the question of which way people walked, however, the opposite headings are appropriately distinct. Decide whether the ends are interchangeable before processing the angle.
Doubling each angle before making unit vectors is a convenient representation of this symmetry. Adding 180 degrees to an original axis then adds 360 to the doubled angle, leaving the doubled vector unchanged. Calculate the circular mean on those doubled angles and halve its angle, reporting within a range of 180 degrees or as a two-ended compass description. The mean length computed in doubled space describes axial agreement under this representation. There is no need to halve that length, and it should not be confused with the concentration of the original arrow-bearing observations.
Use two invented path bearings, 170 and 10 degrees. Treating them as directions puts their unit-arrow mean toward 90 because their north components cancel and east components agree. But as axes the two input lines both sit close to north–south: one tilts a little to either side. Doubling produces 340 and 20, whose resultant is north in doubled space. Halving gives an axis of zero degrees, equivalent to 180. The squared-away interpretation is not “both segments point north.” It is that their mean alignment is along a north–south line without choosing an end.
A sharper check uses axes at zero and 180. Their doubled angles coincide, so the length is one in the ideal calculation. By contrast axes at zero and 90 become opposite directions after doubling and cancel. These two perpendicular orientations have no representative axial mean under the doubled first-resultant summary, despite being completely determined in the record. They could represent the two sides of an orthogonal network. Report both orientations or a grouped distribution rather than forcing one line at 45 degrees to stand for a layout that has no path aligned that way.
Path orientation also depends on what a survey measured. A curving path does not have just one local tangent. Its end-to-end axis is not the same as the distribution of directions along its bends. An equal-weight mean of selected straight segments characterizes those segments. A length-weighted one might characterize a typical unit of path length under the analyst's segmentation. Neither tells the direction of foot traffic by itself. A sketched map with some two-ended segment marks can illustrate the issue, though a formal length weighting needs a defined and measured unit.
Let the shape of the observations survive the mean
A compass chart can show each observed origin bearing once, put dots along the rim, or use radial bars for predefined sectors. That picture often tells more than a mean arrow by itself. If using sector counts, document the sector boundaries and place the north sector so that readings around 350 and ten are grouped in a physically sensible way for the intended width. Another choice is to let north be an edge but show the two end sectors as adjacent. Do not hide the seam by dropping one side or treating 360 and zero as different categories for the same mathematical bearing.
Some compass charts use radial length to show counts, while others intend the area of each wedge to be proportional to counts. Readers may judge the colored area visually even when the legend specifies radial length. Choose an encoding that suits the comparison and label it. Show whether a radial value is count, duration, fraction of valid observations, or a speed summary. A chart with its north arrow and reference frame clearly marked can still mislead if the sizes represent different measures from one sector to another.
A time strip is a useful companion. Imagine two short episodes of nearly opposite directions, one in the early morning and one in a later routine period. Their pooled resultant could be small. The chronological view may show that each interval individually had a coherent direction, rather than that arrows were erratic throughout. Conversely, a similar angular distribution could come from rapid back-and-forth changes. A histogram cannot make that distinction. Retain timestamps and plot periods separately when they matter to the interpretation.
An ordinary line plot of degrees can make a trace seem to jump drastically near the seam. Readings of 356, 359, two and five might trace a smooth turn across north, but the plot drops nearly the entire chart height at the wrap. A circular display or two component traces avoid that issue. A consistently unwrapped time trace may work if continuity is supported and changes between observations are small enough to resolve the turning path. If the observation gap is large, endpoints alone might admit more than one motion between them, so do not draw the unwrapped line as if the intervening trajectory was known.
The same concern applies to angular differences. The difference between 350 and ten is not a 340-degree turn if the task asks for the smaller separation regardless of sign. The smaller arc is twenty. A signed change under a shortest-turn convention would be plus twenty from 350 to ten, using bearings increasing clockwise. A change wrapping the other way would be minus twenty. Exactly opposite headings admit two equally short choices. If actual turn direction matters, an observed history is needed; the shortest arc is a convention, not proof of the path the vane followed.
There is value in overlaying the actual bearings and the summary vector. For the toy the average points between two nearby arrows and has a large normalized length. In a bimodal example near northeast and southwest, a short average could point to a sparsely occupied direction because of a small imbalance across the two groups. A caption can warn that the arrow reflects cancellation rather than a frequently observed heading. Remember that a resulting mean need not equal a mode, and neither has to coincide with a particular reading. Different summary goals are worth giving different pictures.
A few review checks prevent large interpretation errors
Try feeding the procedure the angles that have obvious results. Two observations both at east should give east and a resultant of one for normalized unit weights. Bearings 350 and ten should give north with a long resultant. Equal directions north and south should leave a zero vector and no reportable directional bearing. Under the axial rule those last two should instead agree perfectly. These checks are small enough to keep in an analysis note, and the expected outcomes can be reasoned out without trusting any specific package. A later change in sign convention or argument order will often fail at least one.
Also test the case where zero is reserved for calm. It should be handled by reading source metadata and not by redefining the mathematical compass coordinates. Have one record where the coded number is zero but the source label is calm, and another where zero is an authorized north coordinate in a representation that permits it. A correct pipeline will assign them differently. In a harmonized dataset, preserve a field showing which observations can legitimately provide a direction so future scripts do not accidentally reintroduce invalid arrows.
When comparing sites, check timing, weighting and instruments before interpreting agreement. A weather station exposed over open ground and a vane sheltered beside a building might both record bearings correctly for their respective locations. Their observations may still represent different local flows. Equal numbers of records need not supply equal durations, and matched durations need not represent the same broader question. State that an angular average describes the collected conditions at named places. A clean recurrence across sites may be useful, but combining them should not be the first step if local conditions are the subject.
A table supporting a mean can include the number of valid bearings, missing or calm records, the observation period, the heading convention, the weighting and resultant length, and an interpretive note about how dispersed the readings were. When a direction is withheld, explain why. “No representative unit mean reported because components nearly canceled” describes a different uncertainty from “source direction missing.” Both could otherwise display the same blank cell. The goal is a summary somebody can reuse without having to reconstruct the observation scheme from a chart legend.
A reviewer can also ask whether the result changed when combining short blocks. If it did, check whether the smaller blocks were normalized to arrows of length one before aggregation, whether the underlying duration weights match, and whether opposing coherent periods cancel in the longer view. The longer mean is not necessarily a correction of the shorter means. It might be the right value for a network report while the shorter patterns are more relevant for local observations. Documenting both is often easier than explaining later why the same data seemed to point two ways.
One more reliability check is to compare results against the original units after export. The east and north components of unit bearings are dimensionless. When they are scaled by wind speed, the component means carry the unit used for speed. A spreadsheet can transform a range from degrees to radians but leave the column heading unchanged, or can paste speed components into a table intended for direction components. Keep units on each derived field and use one worked input as a reference row. The correct compass heading is meaningful only if the underlying quantities were combined as intended.
Three examples where the preferred summary changes
Start with one compass at a sheltered garden corner and one at an open edge. Each reports both a direction of origin and wind speed at the same moment. Near the building the direction varies sharply and speeds are low. At the open edge a direction is consistent and speeds are higher. Averaging the two directions equally asks for a summary of those site readings, not for a single regional wind. Weighting by speed would allow the open edge to dominate a movement-style summary. Whether that is useful depends on the comparison. The analyst looking for differences between sites might be best served by leaving the records separate and showing why they should not be pooled.
Next imagine a garden walk that bends from an east–west stretch to a shorter north–south stretch. Mapping both segments as axes records where the paths lie without implying where walkers are headed. If the goal concerns the longest alignment in the route, record length and use that information explicitly. Even then a mean axis can hide the perpendicular stretch that connects the walking route to the entrance. If the decision involves the layout rather than the total length at each alignment, a map or table of segment orientations gives the missing information. The numerical mean should not erase a turn that somebody actually has to make.
Now consider a temporary exhibit marked with small arrows that visitors may follow in either direction. If the purpose is drawing the physical alignment of each exhibit route, a path axis is enough. If the purpose is determining whether people approach the exhibit mostly from one end, reversing the arrow changes the observation. A location can support both descriptions without contradiction. Give direction of movement and orientation separate fields. Do not infer the identity of a preferred endpoint from a summary that specifically declared the endpoints equivalent.
A more awkward case combines a directional reading with a directional relationship. Suppose a second observer measures wind bearing relative to the long edge of a bench rather than from geographic north. Their zero means along a named edge direction, not north. It can be converted if the edge bearing and which end was used are known. If only the edge's axial orientation survives, two possible directional interpretations may remain. Do not assume the desired one by choosing the result that most closely matches the other readings. Decode the coordinate frame from independent evidence before presenting combined agreement.
A worked note for someone reproducing the calculation
Write each raw source observation with a timestamp, original convention, validity state, and unit. For the toy the normalized source meanings are simple: two valid directions of origin, each given the same weight and expressed as degrees clockwise from north. Enter their north and east components on separate lines, keeping enough precision for the cancellation to be visible. Average the columns and calculate both length and direction from those means. When giving the toy result in a notebook, write “zero degrees, i.e., north” so it cannot be mistaken for calm, and keep the length on another line.
Now test a round trip. Normalize 360 to zero in a copy that has already interpreted the source states. Change 350 to minus ten in the mathematical example. The two vector outcomes should be unaffected. Reverse the directions on purpose to represent where air travels and verify that an agreed origin direction changes by a half turn, while the normalized resultant length stays the same. Then restore the intended convention for the published table. This type of check distinguishes a representation change, which should not affect the underlying result, from a switch in the question, which often should.
One useful negative control is to make the same model process two directions exactly opposite at identical weights. Show that it returns neither a representative origin nor a representative movement direction for the equally weighted unit vectors. Then give the pair unequal speed magnitudes and clearly switch the task to mean velocity. The newly nonzero movement is not a bug; it follows from the changed units and weights. Keeping these demonstrations beside the production calculation helps future reviewers trace where a relationship originated instead of applying an angle alone to a different sort of vector.
The report should also distinguish physical resolution from computational accuracy. A calculator can return a mean heading with many decimals no matter how coarse the recorded bearings were. The toy is exact by construction, but real measurements may be rounded to whole sectors or affected by varying conditions at a site. The precision displayed should not imply that the instrument or coverage established the mean to a small fraction of a degree. If rounded inputs or ambiguous sectors can affect the interpretation near cancellation, use a descriptive note or compare plausible ranged inputs rather than defending an overly precise bearing.
How to write a limited but useful finding
The toy finding can be short: two equally weighted bearings of 350 and ten degrees are ten degrees to either side of north. Their mean direction is north and their mean unit arrow has length about 0.985. The arithmetic mean of the labels is 180 and is not the mean direction. This description contains enough detail for somebody to reproduce the result without implying the two observations came from an actual weather series. It separates the invented labels, the calculation and the interpretation of the resultant.
For a real observation series the wording may need an extra sentence about what the angle represents. An example could distinguish an observed mean direction of origin during the valid intervals from separately calculated mean movement. In an axial study it would instead report a preferred two-ended alignment and clearly state the period of coverage and weighting. When the observations show two common directions and the resultant nearly cancels, keep that pattern rather than promoting a bearing that depends mostly on tiny differences in counts or rounding.
A compass bearing is a label for a point on a circle, not a number on a line with privileged endpoints. Use unit arrows when the question is about directions, use speed and duration where the desired movement measure requires them, and use axial representation when opposite labels name the same line. Show the resultant and the original pattern alongside the heading. Then crossing north becomes an ordinary feature of the geometry, and a tiny arrow becomes a reason to look for a better description rather than a reason to choose a precise compass point.