[OS X] ferret Fprint troubles
Andy Jacobson
andyj at splash.princeton.edu
Wed Sep 21 23:48:36 EDT 2005
Some package I installed through fink put a GNU head in /sw/bin/
head. It acts differently than previous versions, and conflicts with
the BSD version in /usr/bin/head.
The GNU version doesn't like things like "head -1", requiring instead
"head -n 1". This breaks the Fprint_template script in /usr/local/
bin/Fprint_template. If you are experiencing complaints about "head
-1" not being valid syntax, edit this file and replace all instances
of "head -1" with "head -n 1". Note that the BSD version accepts the
-n syntax as well as the older -1 style syntax.
For the record, and because I continually forget this stuff, here is
some boilerplate for making ps and png files from within ferret. It
uses ps2ps to fix page size issues, and removes the metafile and
intermediate postscript files. Finally, it creates a bitmapped PNG
(for use in e.g., powerpoint).
set mode meta
fill/levels=(-160)(-100,100,20)(160)/key=cont/palette=light_centered
id[x=@ave]-dpco2[x=@ave]
contour/over/levels=(-160)(-100,100,20)(160) id[x=@ave]-dpco2[x=@ave]
can mode meta
spawn Fprint -l cps -o x.ps metafile.plt
spawn ps2ps x.ps ddpco2.ps
spawm rm metafile*plt x.ps
spawn convert -density 120x120 -rotate 270 ddpco2.ps ddpco2.png
Later,
Andy
--
Andy Jacobson
andyj at splash.princeton.edu
Program in Atmospheric and Oceanic Sciences
Sayre Hall, Forrestal Campus
Princeton University
PO Box CN710 Princeton, NJ 08544-0710 USA
Tel: 609/258-5260 Fax: 609/258-2850
More information about the OSX
mailing list