[Thread Prev][Thread Next][Index]

Re: [ferret_users] reducing background bleedthrough (white lines/grid) in Ferret PostScript



Dear Andrew Wittenberg,

> One question has come up often on the Ferret Users' Group: how does
> one prevent the spurious "stripes," "lines," or "grid" that show up
> in SHADE or FILL plots, which have been output to PostScript?  These
> have been mentioned in several threads:

Instead of modifying the postscript, I do the following (with minor
variations based on purpose): 

1)   convert ps file from Fprint to a properly cropped eps
     cat output.ps | ps2eps -B > output.eps

2)   convert to a high resolution, non-antialiased png
     convert +antialias -density 300 -rotate 270 input.eps output.png

3)   scale (and antialias) to desired size
     convert -alpha off -antialias -scale 35% input.png output.png

ps2eps is a fast and reasonably robust eps converter which trims
almost all ferret output correctly.  convert is from ImageMagick,
available on most linux distributions by default.  You may or may not
need the "-alpha off" option, if the image background becomes
transparent you'll need it.

A faster version (most processing done in memory) which does almost
exactly the same is the following:


1)  gs -dSAFER -dNOPAUSE -r300  -dDEVICEWIDTHPOINTS=864 -dDEVICEHEIGHTPOINTS=864 -sDEVICE=ppmraw -q -sOutputFile=- -f input.ps -c showpage -c quit | pnmcrop | convert pnm:- PNG:output.png

2)  convert -antialias -scale 35% -rotate 270 input.png output.png



Kind regards,

Hein Zelle

-- 

Dr. Hein Zelle
Advisor Meteorology & Oceanography

Tel:    +31 (0)527-242299
Fax:    +31 (0)527-242016
Email:  hein.zelle@xxxxxxxxxxxxx
Web:    www.bmtargoss.com

BMT ARGOSS
P.O. Box 61, 8325 ZH Vollenhove
Voorsterweg 28, 8316 PT Marknesse
The Netherlands

----Confidentiality Notice & Disclaimer---- 

The contents of this e-mail and any attachments are intended for the
use of the mail addressee(s) shown. If you are not that person, you
are not allowed to read it, to take any action based upon it or to
copy it, forward, distribute or disclose the contents of it and you
should please delete it from your system. BMT ARGOSS does not accept
liability for any errors or omissions in the context of this e-mail or
its attachments which arise as a result of internet transmission, nor
accept liability for statements which are those of the author and
clearly not made on behalf of BMT ARGOSS.


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

Privacy Policy | Disclaimer | Accessibility Statement