gsn_csm graphical interfaces
Data files for some examples
Example pages containing:
Vectors (high-level graphical interfaces)
: Creates a vector plot
over SST contours. gsnScalarContour
means that a scalar contour plot will also be drawn. The default is
False, which colors the vectors by the scalar map (see example 4).
vcRefMagnitudeF = 5.0, Defines the
reference vector magnitude. Use this to adjust the size of the
vcRefLengthF = 0.045, Defines the
length of the reference vector
gsn_csm_vector_scalar_map_ce is the
plot interface that draws a vector plot over a scalar contour plot.
cnLinesOn = False, Turns of the
cnLineLabelsOn = False, Turns off
the contour line labels.
vcGlyphStyle = "CurlyVector",
Turns on the curly vectors (available since NCL version 4.2.0.a019).
: Draw vectors on a
global map with a time stamp at the bottom.
gsn_csm_vector_map_ce is the plot interface that draws
vectors over a map.
vcMinDistanceF = 0.017, Thins the
vcRefAnnoOrthogonalPosF = -1.0,
Moves the reference vector up.
infoTimeStamp is a
utility for creating a time stamp at the bottom of the figure. The
arguments are the workstation, the size of the text, and the right
string. The left string is automatically generated and includes the
time and date of the plots creation.
: Draws vectors with
with automatic default clipping, and then with clipping turned off.
To turn off vector clipping, set the resource vpClipOn to False. This resources
was added in version a034.
: This example shows
how to position the vector arrows differently using the
default is "ArrowCenter". You can also use "ArrowHead" or
Polymarkers are added to each plot
can see locations of the vector coordinates.
This example shows how to overlay vectors on top of a filled contour plot,
where the contours are masked by a geographical area and the vectors
are not. The masking is accomplished by setting:
mpres@mpDataBaseVersion = "MediumRes"
mpres@mpMaskAreaSpecifiers = (/"China:states","Taiwan"/)
The mask area specifier names are part of the
names available in the "MediumRes" map database.
This script was written by Yang Zhao (CAMS) (Chinese Academy of