NCL Home> Application examples> gsn_csm graphical interfaces || Data files for some examples

Example pages containing: tips | resources | functions/procedures

Pressure/Height vs. Latitude (high-level plot interface)

Data must be in pressure coordinates!

h_lat_1.ncl: Calculates the mean meridional stream function via the function zonal_mpsi and creates a simple height versus latitude plot.

gsn_csm_pres_hgt is the plot interface that plots height versus latitude plots.

h_lat_2.ncl: Another simple default plot of U versus height and latitude.

Note, this data is already on pressure levels. If this were model data, it would be necessary to interpolate from the hybrid coefficients to pressure levels.

h_lat_3.ncl: The first plot creates a double thick line at the zero contour and dashed negative lines. The second plot demonstrates adding latitudinal labels to 90 degrees.

gsnContourZeroLineThicknessF doubles the thickness of the zero contour, gsnContourPosLineDashPattern dashes the positive contours (not used here), and gsnContourNegLineDashPattern dashes the negative contours.

add90LatX is the shea utility function that creates latitude labels to a full 90 degrees.

h_lat_4.ncl: Shades values less than zero.

ShadeLtContour is the shea utility function that shades regions less than a given number. Note: this function has been superceded by the more versatile gsn_contour_shade. We recommend you use this instead.

There are numerous other contour effects to choose from.

h_lat_5.ncl: Shades values less than -10 and stipples greater than +10.

ShadeLtGtContour is the shea utility function that shades regions in a less than/greater than context. Note: this function has been superceded by the more versatile gsn_contour_shade. We recommend you use this instead.

h_lat_6.ncl: Color plot

See the color example page for lots of ways of dealing with color.

h_lat_7.ncl: Example of a vector pressure/height plot.

vcRefAnnoOrthogonalPosF = -0.165, Moves the reference vector orthogonal from its default position.

gsn_csm_pres_hgt_vector (available since NCL version 4.2.0.a021) is the plot interface that draws vectors over a pressure height plot.

Note, in this example, V is set to zero so that only the vertical velocities are plotted. Additionally, the units of omega (mb/day) and v (m/s) have different units. No scaling is used in this example but the user may wish do do so.

h_lat_8.ncl: Demonstrates how to remove the labels on the right axis. These are special labels, so the method is different from removing the left axis labels.

tmYRMode = "Automatic", will override the plot template's explicit setting of the height labels on the right axis.