help - ncl ps plots in latex

From: Huiyi Yang <h.yang1_at_nyahnyahspammersnyahnyah>
Date: Wed May 19 2010 - 09:50:06 MDT

Dear NCL

I produced some ps plots by using ncl, and tried to use latex to make one document. But there's error message as following:

! LaTeX Error: Cannot determine size of graphic in ../rdry_ai.ps (no BoundingBox).

I have no problem to use the same latex file to make document by using plots from idl. Am I missing any command in ncl(please see following)?

Many thanks
Huiyi

***************************************************************
begin

 inputf="../../HAM_E030_199912.01_aero.nc"
 levels = (/ 1.3e-7, 1.4e-7, 1.5e-7, 1.6e-7, 1.7e-7, 1.8e-7, \
               1.9e-7, 2.0e-7, 2.1e-7, 2.2e-7, 2.3e-7, 2.4e-7, \
               2.5e-7, 2.6e-7/)

 in=addfile(inputf,"r")
 var=in->RDRY_AI

 wks=gsn_open_wks("ps","rdry_ai")
 gsn_define_colormap(wks,"gui_default")

 res = True
 res@pmTickMarkDisplayMode = "Always" ; use NCL default lat/lon labels

 res@gsnMaximize = True ; Maximize plot in frame

 res@cnFillOn = True
 res@lbLabelAutoStride = True
 res@gsnSpreadColors = True ; Span full color map, starting at index

; -- Contour setting

 res@cnFillMode = "RasterFill"
 res@cnLevelSelectionMode = "ExplicitLevels"
 res@cnLevels = levels
 res@cnLinesOn = False ; Turn off contour lines
 res@lbBoxLinesOn = False ; Turn off labelbar box lines

; -- Color bar setting

 res@lbOrientation = "Vertical" ; Horizontal
 res@lbTitleString = "Radius (m)" ; bar title
 res@lbTitlePosition = "Right" ; title location
 res@lbTitleDirection = "Across" ; letter angle
 res@lbTitleAngleF = 90. ; title angle
 res@lbTitleFontHeightF = 0.02 ; font height
 res@pmLabelBarWidthF = 0.10 ; color bar width
 res@txFontHeightF = 0.012
 res@lbLabelFontHeightF = 0.008

; -- Tickmark setting

 res@pmTickMarkDisplayMode = "Always"
 res@tmXBLabelFontHeightF = 0.010

 res@mpDataBaseVersion = "LowRes" ; LowRes, MediumRes, HighRes

; res@gsnFrame = False
; res@tiMainString = "Actual Track of Hurricane Katrina (2005)" ; title
; res@tiMainOffsetYF = -0.03
; res@gsnLeftString = "" ; left title, remove default
; res@gsnRightString = "NHC track data" ; right title, remove default: C

 plot = gsn_csm_contour_map(wks,var(0,18,:,:),res)

end

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 19 09:50:15 2010

This archive was generated by hypermail 2.1.8 : Wed May 26 2010 - 10:39:13 MDT