Re: warning message about convert

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Thu Nov 14 2013 - 15:32:59 MST

Hello,
You need to delete the workstation prior to calling convert from within
a NCL script.
Try this:
gsn_panel(wks,plot,(/2,2/),res_P) ; create panel plots
delete(wks)
system("convert -density 300 -trim "+pic_name+"."+wks_type+"
"+pic_name+".png"

If that doesn't fix the issue please let ncl-talk know.
Adam

On 11/14/13 3:27 PM, 朱学明 wrote:
> 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 <mailto: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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Nov 14 15:33:11 2013

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