NCL Website header
NCL Home> Application examples> Models || Data files for some examples

Example pages containing: tips | resources | functions/procedures

POP Scalars

As of NCL version 4.2.0.a025, pop data that has 2D lat/lon coordinates can be plotted directly in physical space. To do this, simply read in the two dimensional arrays containing the grid point coordinates and assign the arrays to the variable to be plotted as attributes with the specific names lon2d and lat2d:
       lat2d     = f->TLAT
       lon2d     = f->TLONG
       t@lon2d   = lon2d
       t@lat2d   = lat2d
popscal_1.ncl: A black and white plot.
popscal_2.ncl: Shades values less than five.

ShadeLtContour will shade values less than 5. Note: ShadeLtContour has been superceded by the more versatile gsn_contour_shade. We recommend you use this instead.

There are many other contour effects to play with.
popscal_3.ncl: Creates a color plot

The color fill example page is a good resource for learning about color plots.
popscal_4.ncl: Shows how to draw vectors over scalars on another projection. You are not limited to cylindrical equidistant projections. There are several to choose from.

This is an orthographic projection. If you wish to view a CE projection, gsn_csm_vector_scalar_map_ce is the function to use: Example.
popscal_5.ncl: Demonstrates how to overlay contours on a contour/map plot.