NCL Home > Training > Workshops

Scripts used in NCL workshop graphics lecture

These examples show a progression of visualizations from the most basic one with no or minimal resources set, to a more complex visualization with multiple resources set. The scripts are named script1a.ncl, script1b.ncl, script1c.ncl, etc to indicate the progression of examples.

Click on any of the thumbnails to see a larger image. You can download the NCL scripts by right-clicking on them and doing a "Save As" or "Download linked file". Some of the data files are available for download here, or they may be available on your student machine in class. See instructor for details.

 

WRF plots

wrfgsn1.ncl wrfgsn2.ncl wrfgsn3.ncl wrfgeo_gsn.ncl
 
wrfgeo_wrf.ncl wrf_line_fill_vector_wrf.ncl wrf_line_fill_vector_gsn.ncl wrfgsn_hgt.ncl
 
wrfgsn_hgt_shapefiles.ncl wrfgsn_hgt_shapefiles_zoom.ncl panel1a.ncl panel1b.ncl
 
panel1c.ncl panel1d.ncl panel1e.ncl panel1f.ncl
 
panel1g.ncl panel1h.ncl panel1i.ncl panel1j.ncl
 
time1h.ncl

 

bar charts with primitives

bar1a.ncl bar1b.ncl bar1c.ncl bar1d.ncl
 
bar1e.ncl bar1f.ncl bar1g.ncl bar1h.ncl
 
bar1i.ncl bar1j.ncl bar1k.ncl

 

color tables and named colors

color1.ncl color2.ncl color3.ncl color4.ncl
 
color5.ncl color6.ncl color7.ncl

 

contouring

contour1a.ncl contour1b.ncl contour1c.ncl contour1d.ncl
 
contour1e.ncl contour1d_levels.ncl

 

contouring curvilinear data (2D lat/lon arrays)

ice.ncl wrfgeo_gsn.ncl contour4d.ncl contour6f.ncl
 
contour7i.ncl

 

contouring over cylindrical equidistant maps

contour2a.ncl contour2b.ncl contour2c.ncl contour2d.ncl
 
contour2e.ncl contour4a.ncl contour4b.ncl contour4c.ncl
 
contour4d.ncl

 

contouring over lambert conformal maps

contour6a.ncl contour6b.ncl contour6c.ncl contour6d.ncl
 
contour6e.ncl contour6f.ncl contour7a.ncl contour7b.ncl
 
contour7c.ncl contour7d.ncl contour7e.ncl contour7f.ncl
 
contour7g.ncl contour7h.ncl contour7i.ncl

 

contouring rectilinear data (1D lat/lon coordinate arrays)

contour2e.ncl contour3d.ncl contour9a.ncl

 

contouring unstructured data

arpege_smooth.ncl arpege_raster.ncl arpege_raster_smooth.ncl arpege_raster_smooth_640.ncl
 
camse.ncl camse_640.ncl mpas.ncl contour5a.ncl
 
contour5b.ncl contour5c.ncl contour5d.ncl contour5e.ncl
 

 

contouring with irregular coordinate arrays

irregular1a.ncl irregular1b.ncl irregular1c.ncl irregular1d.ncl
 
irregular1e.ncl irregular1f.ncl irregular1g.ncl irregular1h.ncl
 

 

contours, vectors, or streamlines over polar stereographic page

ice.ncl contour3j.ncl contour3e.ncl vector2g.ncl
 
stream1i.ncl

 

contours, vectors, streamlines over maps

contour3a.ncl contour3b.ncl contour3c.ncl contour3d.ncl
 
contour3e.ncl contour3f.ncl contour3g.ncl contour3h.ncl
 
contour3i.ncl contour3j.ncl contour8a.ncl contour8b.ncl
 
contour8c.ncl contour8d.ncl contour8e.ncl vector2a.ncl
 
vector2b.ncl vector2c.ncl vector2d.ncl vector2e.ncl
 
vector2f.ncl vector2g.ncl stream1a.ncl stream1b.ncl
 
stream1c.ncl stream1d.ncl stream1e.ncl stream1f.ncl
 
stream1g.ncl stream1h.ncl stream1i.ncl overlay_subset.ncl
 
ice.ncl

 

function codes

fcodes.ncl heart.ncl

 

line contours over filled contours

contour9a.ncl contour9b.ncl contour9c.ncl contour9d.ncl
 
contour9e.ncl contour9f.ncl wrf_line_fill_vector_gsn.ncl

 

maps only

colorado_map.ncl colorado_map_640.ncl france_shapefiles.ncl

 

maximizing plots in frame

max1a.ncl max1b.ncl max1c.ncl

 

miscellaneous scripts

compare_gsn_scripts.ncl contour_color_tables.ncl contour_fill_types.ncl fcodes.ncl
 
heart.ncl streamline_example.ncl vector_types.ncl viewport.ncl
 
vp_frames.ncl xy_a4.ncl

 

multiple plots on a page

panel1a.ncl panel1b.ncl panel1c.ncl panel1d.ncl
 
panel1e.ncl panel1f.ncl panel1g.ncl panel1h.ncl
 
panel1i.ncl panel1j.ncl tibet.ncl time1h.ncl
 
france_shapefiles.ncl overlay_subset.ncl xy_stacked.ncl

 

overlaying multiple fields on a map

overlay1a.ncl overlay1b.ncl overlay1c.ncl overlay1d.ncl
 
overlay1e.ncl wrf_line_fill_vector_gsn.ncl

 

pressure/height plots

preshgt1a.ncl preshgt1b.ncl preshgt1c.ncl preshgt1d.ncl
 
preshgt1e.ncl

 

primitives

poly1a.ncl poly1b.ncl poly1c.ncl poly1d.ncl
 
poly1e.ncl poly1f.ncl poly1g.ncl poly1h.ncl
 
poly1i.ncl poly1j.ncl poly1k.ncl poly1l.ncl
 
poly1m.ncl poly2a.ncl poly2b.ncl poly2c.ncl
 
poly2d.ncl poly2e.ncl poly2f.ncl poly2g.ncl
 
poly3a.ncl poly3b.ncl poly3c.ncl poly3d.ncl
 
poly3e.ncl poly3f.ncl poly3g.ncl poly3h.ncl
 
switzerland_shapefiles.ncl

 

shapefile plots

shapefile1a.ncl shapefile1b.ncl shapefile1c.ncl shapefile1d.ncl
 
colorado_map.ncl france_shapefiles.ncl switzerland_shapefiles.ncl poly3h.ncl
 
wrfgsn_hgt_shapefiles.ncl wrfgsn_hgt_shapefiles_zoom.ncl

 

streamlines over maps

stream2a.ncl stream2b.ncl stream2c.ncl stream2d.ncl
 
stream2e.ncl stream2f.ncl streamline_map.ncl

 

time series plots

time1a.ncl time1b.ncl time1c.ncl time1d.ncl
 
time1e.ncl time1f.ncl time1g.ncl time1h.ncl
 

 

vectors over cylindrical equidistant maps

vector1a.ncl vector1b.ncl vector1c.ncl vector1d.ncl
 
vector1e.ncl vector1f.ncl vector1g.ncl

 

view port illustrations

vp1a.ncl
view.ncl
vp1b.ncl
view.ncl
vp1c.ncl
view.ncl

 

xy plots

xy1a.ncl xy1b.ncl xy1b_msg.ncl xy1c.ncl
 
xy1d.ncl xy1d_mod1.ncl xy1d_mod2.ncl xy1e.ncl
 
xy1f.ncl xy1g.ncl xy1h.ncl xy1i.ncl
 
xy_frame.ncl xy_frame_wgrid.ncl xy_stacked.ncl xy2a.ncl
 
xy2b.ncl xy2b_color1.ncl xy2c.ncl xy2d.ncl
 
xy2e.ncl xy2f.ncl xy2g.ncl xy2h.ncl
 
xy2i.ncl xy2j.ncl spiral.ncl

 

xy plots with multiple Y axes

xy4a.ncl xy4b.ncl xy4c.ncl xy4d.ncl
 
xy4e.ncl xy5a.ncl xy5b.ncl xy5c.ncl
 
xy5d.ncl xy5e.ncl

 

zooming in on maps (useful for looking at regional data)

contour6f.ncl contour7i.ncl contour9f.ncl ice.ncl
 
tibet.ncl wrfgeo_gsn.ncl wrfgsn_hgt_shapefiles_zoom.ncl wrf_line_fill_vector_gsn.ncl
 

 

zooming in/out on xy plots

xy1d_mod1.ncl xy1d_mod2.ncl xy2b_zoom1.ncl xy2b_zoom2.ncl
 
xy2b_zoom3.ncl