Re: plot convert question

From: Mary Haley (haley AT ucar.edu)
Date: Mon Aug 29 2005 - 09:07:55 MDT


On Mon, 29 Aug 2005, jerry wrote:

> hi
> i use the system code to convert ncgm to gif but it get the error message
>
> ctrans : FATAL - Premature end of metafile
>
> follow is my code
>
> system("ctrans -d sun -res 600x600 test.ncgm > test.ps")
> system("convert test.ps test.gif")
>
> any one know what is wrong ?
>
> Thank you

Jerry,

It sounds like your metafile wasn't closed properly. This can happen
if you exit the NCL script prematurely, or if you fail to advance the
frame after a plot is drawn. The frame is automatically advanced when
you call any major gsn_xxxx plotting routine, but if you've turned
this off by setting "res@gsnFrame = False", then you need to make sure
you advance the frame yourself with a call to "frame(wks)".

--Mary

_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Mon Aug 29 2005 - 10:40:46 MDT