Longwaves
The hemispheric weather patterns are governed by mid-latitude (23.5°N/S to 66.5°N/S) westerly winds which move in large wavy patterns. Known as planetary waves, these longwaves are also called Rossby waves, named after Carl Rossby, who discovered them in the 1930s.
Rossby waves form primarily because of the Earth's geography, which does two things. First, the Earth heats unevenly from the sun due to the different shapes and sizes of the land mass (called differential heating of the Earth's surface). Second, since air can't travel through a mountain, it must rise up and over or go around.
In both cases, the disruption of the air flow creates imbalances in temperature distribution both vertically and horizontally. The wind responds by seeking a return to a "balanced" atmosphere and changes speed and/or direction. However, as long as the sun keeps shining, those imbalances will continue to develop. Thus, the wind will constantly be changing directions and develop into wave-like patterns.
The length of longwaves vary from around 3,700 mi (6,000 km) to 5,000 mi (8,000 km) or more. They generally move very slowly from west to east, but occasionally they will become stationary or retrograde (move east to west).
The speed at which these large waves move should not to be confused with the speed of the wind found within the waves themselves. For example, there can be a strong jet stream wind of 100 kt (115 mph / 185 km/h) moving through the longwave but the position of long wave itself may move very little. The wave itself is not moving at 100 kt (115 mph / 185 km/h), just the wind within it.
Rossby waves help to transfer heat from the tropics toward the poles and cold air from the poles toward the tropics trying to return the atmosphere to balance. They also help locate the jet stream and mark out the track of surface low-pressure systems. The number of longwaves at any one time varies from three to seven, though it is typically four or five.
Their slow motion often results in fairly long persistent weather patterns. For example, locations between the trough and the downstream ridge can experience extended periods with rain or snow, while at the same time 1,500 - 2,000 miles (3,000 - 4,000 km) upwind and/or downwind, the weather is very dry.
This often can lead to a misconception that the weather experienced is typical everywhere. That is simply not true. If one place is receiving cooler weather and/or flooding rains over a period of several days to weeks, then there are some other places where the weather is warm and dry for about the same period. It all depends upon the location of the longwaves relative to the observer.
Shortwaves
A "piece of energy", "vort max" (or "vorticity maximum"), "pocket of cold air" (or "pocket of energy"), "upper level disturbance", "upper level energy", or just "shortwave" are some of the slang terms for waves with a length of less than 3,700 miles (6,000 km).
Shortwaves are embedded within the longwaves. Unlike the slow movement of longwaves, shortwaves move east (downstream) on average of 23 mph (20 kts, 37 km/h) in summer and 35 mph (30 kts, 55 km/h) in winter. This motion causes longwaves to distort and change shape, such as deepening longwave troughs and flattening longwave ridges.
Due to their variety of sizes, it can be difficult to discern a shortwave embedded within a longwave by looking at a static map. Looping images of the wave patterns are often needed to determine the difference between them.
The animation above, from NASA's Goddard Space Flight Center, shows the both longwaves and shortwaves, as indicated by the jet stream. The period covered by the loop is almost one month from June to July of 1988.
Shortwaves are also the chief instigator of episodes of precipitation. Main precipitation bands will typically be localized near the shortwave as it passes overhead.
Below is an example of a 500 mb chart. The height contours are in black. The brown arrows indicate direction of airflow. The large red dashed lines represent the location of the long wave troughs.
The shorter blue dashed lines represent the location of the of the more prominent shortwaves (There are more short waves than indicated.) The green areas represent precipitation totals. The areas of precipitation are mainly associated with shortwaves as they pass through longwaves. Like railroad cars on a train tack, shortwaves will generally follow height contours.