Dear, NCL users
I am a new user of ncl. I want to fix the range of label numbers (fix =
minimum and maximum values) in each plot. Each plot has different range =
of data for example, the plot for 2007 has the range between 0-2.8 and =
the plot for 2008 has between 0-3.5. I searched information but I =
couldn’t find it. How can I fix the numbers?
Thank you for any help.
Sun
;************************************************
; resources
;************************************************
wks = gsn_open_wks("ps","calipso(0-1km)"+year+month(ii)) =
; open a ps file
gsn_define_colormap(wks,"gui_default") ; choose colormap
res = True ; plot mods desired
res@cnFillOn = True ; turn on color
res@gsnSpreadColors = True ; use full color map
res@cnLinesOn = False ; no contour lines
res@cnLineLabelsOn = False ; no line labels
res@mpMaxLatF = 85 ; choose map range
res@mpMinLatF = -85
res@gsnDraw = False ; don't draw yet
res@gsnFrame = False ; don't advance frame =
yet
res@gsnAddCyclic = False
res@cnLevelSelectionMode = "AutomaticLevels" ; AutomaticLevels
;res@cnMinLevelValF = 4 ; min level
;res@cnMaxLevelValF = 32 ; max level
;res@cnLevelSpacingF = 2 ; interval
res@tmXBLabelFontHeightF = 0.014 ; adjust some font =
heights
res@tmYLLabelFontHeightF = 0.014
res@tiMainFontHeightF = 0.022
res@txFontHeightF = 0.017
res@lbLabelBarOn = False ; turn off label bar
;************************************************
; create plots
;************************************************
plot = new(1,graphic)
res@tiMainString = "CALIPSO(0-1km)"+year+"-"+month(ii)+""
plot(0) = gsn_csm_contour_map_ce(wks,data3avg,res) ; create the =
plot
;printVarSummary(newsst)
; res@tiMainString = "Grid after linint2"
; plot(1) = gsn_csm_contour_map_ce(wks,newsst,res) ; create the plot
;************************************************
; create panel
;************************************************
pres = True
pres@gsnPanelLabelBar = True ; common label bar
gsn_panel(wks,plot,(/1,1/),pres)
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT