[Thread Prev][Thread Next][Index]

buggy postscript?



Dear Ferreters,
I am trying to plot this file
http://www.ii.uib.no/~avle/meta-bugged.plt   (1MB...)

doing a 

yes? sp gksm2ps -R -p portrait -l cps -o storm.ps metafile.plt
greadgksm()  162 No item is left in GKS Metafile input

goes ok, except from the no items left message that has not hurt
before.

viewing the ps file in gv gives almost all of the image except the white
labels spotted e.g. here http://www.ii.uib.no/~avle/ormen/100mabfiles/pic9.gif
and this error message:


Error: /typecheck in --aload--
Operand stack:
   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1009/1123(ro)(G)--   --dict:0/20(G)--   --dict:89/200(L)--
Current allocation mode is local
Current file position is 930782
AFPL Ghostscript 7.04: Unrecoverable error, exit code 1


get the same with the postscript file on linux,distill and other tools
also fail reading the file.  is it possible to work around this, so I
can get my white labels into a valid ps file?  ferret script to
generate picture appended below

-- 
Helge




SET WINDOW/ASPECT=1/SIZE=0.5
DEFINE AXIS/X=1:115:1 xaxis
DEFINE AXIS/Y=1:115:1 yaxis
DEFINE GRID/X=xaxis/Y=yaxis modelgrid
DEFINE SYMBOL DEPTH=100

LET files= {\
"($DEPTH)mab-00000-115x115.data",\
"($DEPTH)mab-00600-115x115.data",\
"($DEPTH)mab-01200-115x115.data",\
"($DEPTH)mab-01800-115x115.data",\
"($DEPTH)mab-02400-115x115.data",\
"($DEPTH)mab-03000-115x115.data",\
"($DEPTH)mab-03300-115x115.data",\
"($DEPTH)mab-03600-115x115.data",\
"($DEPTH)mab-03900-115x115.data",\
"($DEPTH)mab-04200-115x115.data",\
"($DEPTH)mab-04500-115x115.data",\
"($DEPTH)mab-04800-115x115.data",\
"($DEPTH)mab-05100-115x115.data",\
"($DEPTH)mab-05400-115x115.data",\
"($DEPTH)mab-05700-115x115.data",\
"($DEPTH)mab-06000-115x115.data" }

LET filename= files[i=9] 

FILE/VAR=u,v,s,t,w/GRID=modelgrid `filename` 
SHADE/LEVELS=50 (u*u+v*v)^0.5 
VECTOR/OVERLAY u,v 
FILE/VAR=xcoo2,ycoo2,modeldepth/GRID=modelgrid model2-115x115.dat 
CONTOUR/OVER/LEVELS="(300,600,100)" modeldepth 
FILE/VAR=mx,my,mlab/FORM=DELIMITED/DELIMITER=" " maalepos-grid.dat 
PLOT/OVER/VS/TITLE="Stations"/COLOR=white mx,my 
LET fontsize=0.1
PPL COLOR 6 100,100,100 
REPEAT/L=1:13 (LET/QUIET lab = mlab[i=`L`];\
               LET/QUIET xl=mx[i=`L`]+1 ;\
               LET/QUIET yl=my[i=`L`] ;\
               LABEL `xl`,`yl`,-1,0,`fontsize` @P6`lab` )



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement