; ; Contour plot exercise 3. ; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" begin z = generate_2d_array(15,15,-10.,110.,0,(/40,40/)) wks = gsn_open_wks("x11","contour_ex03") ; Open X11 window gsn_define_colormap(wks,"rainbow") ; Change color map res = True ; Plot options desired. res@gsnMaximize = True ; Maximize plot in frame. res@cnLevelSelectionMode = "ManualLevels" ; Manually set contour levels. res@cnMinLevelValF = 5 res@cnMaxLevelValF = 95 res@cnLevelSpacingF = 5 res@cnFillOn = True ; Turn on contour fill plot = gsn_csm_contour(wks,z,res) end