[Thread Prev][Thread Next][Index]

Re: [ferret_users] probem running ferret -batch



Sorry, cut and paste error.  (Mail apps trying to be too smart.)  I meant to say FRAME /FILE="../../tasmax.2021-2050_1970-2000.ps"

Karl


On Fri, Nov 15, 2013 at 5:15 PM, Karl Smith - NOAA Affiliate <karl.smith@xxxxxxxx> wrote:
Hi Ulrich,

Ferret does not output PostScript.  It can create a GKS metafile that can then be converted into PostScript using the gksm2ps program supplied with Ferret.

What you wrote can be done with PyFerret.  But in PyFerret it is better to just use FRAME /FILE=... Ferret commands (in your example FRAME /FILE="http://tasmax.2021-2050_1970-2000.ps") and forget about the -batch command line option.  This would also allow you to create multiple PostScript (or PDF) image in one session, which appears might be the case in what you sent.


Karl



On Fri, Nov 15, 2013 at 3:41 PM, Ulrich Jacques Diasso <udiasso@xxxxxxxxx> wrote:
Dear ferreters,
Trying to save .ps figures, I got a complain from ubuntu 13.10 after typing:
ferret -batch figure_name.ps -script my_Script.jnl

 Cached data cleared from memory
**ERROR: ../../Figures/PR.2021-2050_1970-2000.ps: Key has been revoked
 *** NOTE: Cannot cancel window when in batch mode
 *** NOTE: Cannot create new windows when batch mode set
gdeactivatews()    3 GKS not in proper state: GKS shall be in the state WSAC
gactivatews()    6 GKS not in proper state: GKS shall be either in the state WSOP or in the state WSAC
ginqwsconntype()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gsetwswindow()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gescsetdcsize()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gupdatews()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
 **ERROR: required program command has not been given: graphical output device isnt ready
CONTOUR/FILL /pal=brown_blue/nolabel/nokey/lev=(-Inf)(-22,22,4)(Inf) var9
Command file, command group, or REPEAT execution aborted
STOP -script mode, ERROR RUNNING SCRIPT statement executed
 Cached data cleared from memory
**ERROR: ../../Figures/TAS.2021-2050_1970-2000.ps: Key has been revoked
 *** NOTE: Cannot cancel window when in batch mode
 *** NOTE: Cannot create new windows when batch mode set
gdeactivatews()    3 GKS not in proper state: GKS shall be in the state WSAC
gactivatews()    6 GKS not in proper state: GKS shall be either in the state WSOP or in the state WSAC
ginqwsconntype()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gsetwswindow()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gescsetdcsize()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gupdatews()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
 **ERROR: required program command has not been given: graphical output device isnt ready
CONTOUR/FILL /pal=orange_red/nolabel/nokey/lev=(-Inf)(0,2,0.2)(Inf) var9
Command file, command group, or REPEAT execution aborted
STOP -script mode, ERROR RUNNING SCRIPT statement executed
 Cached data cleared from memory
**ERROR: ../../Figures/TASMIN.2021-2050_1970-2000.ps: Key has been revoked
 *** NOTE: Cannot cancel window when in batch mode
 *** NOTE: Cannot create new windows when batch mode set
gdeactivatews()    3 GKS not in proper state: GKS shall be in the state WSAC
gactivatews()    6 GKS not in proper state: GKS shall be either in the state WSOP or in the state WSAC
ginqwsconntype()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gsetwswindow()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gescsetdcsize()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gupdatews()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
 **ERROR: required program command has not been given: graphical output device isnt ready
CONTOUR/FILL /pal=orange_red/nolabel/nokey/lev=(-Inf)(0,2,0.2)(Inf) var9
Command file, command group, or REPEAT execution aborted
STOP -script mode, ERROR RUNNING SCRIPT statement executed
 Cached data cleared from memory
**ERROR: ../../Figures/TASMAX.2021-2050_1970-2000.ps: Key has been revoked
 *** NOTE: Cannot cancel window when in batch mode
 *** NOTE: Cannot create new windows when batch mode set
gdeactivatews()    3 GKS not in proper state: GKS shall be in the state WSAC
gactivatews()    6 GKS not in proper state: GKS shall be either in the state WSOP or in the state WSAC
ginqwsconntype()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gsetwswindow()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gescsetdcsize()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
gupdatews()    7 GKS not in proper state: GKS shall be in one of the states WSOP, WSAC or SGOP
 **ERROR: required program command has not been given: graphical output device isnt ready
CONTOUR/FILL /pal=orange_red/nolabel/nokey/lev=(-Inf)(0,2,0.2)(Inf) var9
Command file, command group, or REPEAT execution aborted
STOP -script mode, ERROR RUNNING SCRIPT statement executed


Thanks for helping
Cheers
Ulrich



--
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and TMAP/PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."



--
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and TMAP/PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement