STATIONPLOT
This is routine for drawing station plots on a map or other display. Normally, this routine is used in conjunction with WINDBARB.
FANNING SOFTWARE CONSULTING David Fanning, Ph.D. 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com
Graphics.
StationPlot, x, y
x: The X location of the center of the station plot, expressed in data coordinates. y: The Y location of the center of the station plot, expressed in data coordinates.
COLOR: The name of the color to draw the station plot in. May be a vector the same length as X. Colors are those available in cgColor. RADIUS: The radius of the station plot circle in normalized coordinates.
Requires cgColor from the Coyote Library: http://www.idlcoyote.com/programs/cgColor.pro
seed = -3L lon = Randomu(seed, 20) * 360 - 180 lat = Randomu(seed, 20) * 180 - 90 speed = Randomu(seed, 20) * 100 direction = Randomu(seed, 20) * 180 + 90 Erase, cgColor('Ivory', !P.Background) Map_Set, /Cylindrical,Position=[0.1, 0.1, 0.9, 0.9], Color=cgColor('Steel Blue'), /NoErase Map_Grid, Color=cgColor('Charcoal', !D.Table_Size-2) Map_Continents, Color=cgColor('Sea Green', !D.Table_Size-3) StationPlot, lon, lat, Color='Indian Red'
Written by: David W. Fanning, 20 May 2003, based on TVCircle from the NASA Astonomy Library. Added THICK keyword. 23 February 2005. DWF.