Hello,
I am doing a contour map center at US with surface temperature. The color
scale is set from 212 to 230. How can I change the interval to 218 to 226?
Thanks
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
;************************************************
begin
;************************************************
; read in netCDF file
;************************************************
a = addfile("jjafields_past.nc","r")
;************************************************
; read in zonal winds
;************************************************
t = a->t_jja(0,:,:) ; read July zonal winds
;************************************************
; create plot
;************************************************
wks = gsn_open_wks("ncgm","proj") ; open a ps file
gsn_define_colormap(wks,"gui_default")
res = True
res@mpProjection = "CylindricalEquidistant" ; choose projection
res@mpGridAndLimbOn = True ; turn on lat/lon lines
res@mpPerimOn = False ; turn off box around plot
res@mpGridLatSpacingF = 30. ; spacing for lat lines
res@mpGridLonSpacingF = 30. ; spacing for lon lines
res@mpFillOn = False
res@mpLimitMode = "LatLon"
res@mpMinLonF = 233.0
res@mpMaxLonF = 295.0
res@mpMinLatF = 23.0
res@mpMaxLatF = 50.0
res@cnFillOn = True ; color plot desired
res@cnLineLabelsOn = False ; turn off contour lines
res@txFontHeightF = 0.015
res@vpXF = 0.1 ; make plot bigger
res@vpYF = 0.9
res@vpWidthF = 0.8
res@vpHeightF = 0.8
res@gsnSpreadColors = True ; use full range of color map
res@gsnSpreadColorStart = 0
res@gsnSpreadColorEnd = -1
-- Cecille M. VIllanueva-Birriel Graduate Student Earth & Atmospheric Sciences Purdue University
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon May 31 16:17:44 2010
This archive was generated by hypermail 2.1.8 : Tue Jun 01 2010 - 09:12:20 MDT