warning message about convert

From: 朱学明 <557xiaozhu_at_nyahnyahspammersnyahnyah>
Date: Thu Nov 14 2013 - 15:27:08 MST

Hi all,
   I have try to use call the command "convert " in NCL as follow:

   pic_name = "SCS"+"_spec"
   wks_type = "eps"
   wks = gsn_open_wks(wks_type,pic_name) ; Opens a ps file
   plot = new(4,graphic) ; create graphic array
   res_P = True ; panel mods desired
   res_P@gsnMaximize = True ; blow up plot
   gsn_panel(wks,plot,(/2,2/),res_P) ; create panel plots
   system("convert -density 300 -trim "+pic_name+"."+wks_type+" "+pic_name+".png"

 Then I have got error message like this,
convert: geometry does not contain image `SCS_spec.eps' @ warning/attribute.c/GetImageBoundingBox/240.

Once I change the wks_type to
   wks_type = "png"

It works well. What's wrong with it? Anyone can give me a suggestion? Thanks.


Xueming Zhu 朱学明
Key Laboratory of Research on Marine Hazards Forecasting (LoMF), SOA
National Marine Environmental Forecasting Center (NMEFC)
No.8, Dahuisi Road, Haidian District, Beijing, 100081
People's Republic of China

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Thu Nov 14 15:27:36 2013

This archive was generated by hypermail 2.1.8 : Fri Nov 22 2013 - 09:36:32 MST