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.
2013-11-15
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
Tel:+86-10-82481923
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
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