[gmx-users] regarding xpm2ps?

Martin Höfling martin.hoefling at gmx.de
Wed Sep 10 14:34:18 CEST 2008

Am Mittwoch 10 September 2008 13:36:15 schrieb minnale:
> Thanks Martin
> yes executing of .eps means read out the file.

I am using the following very ugly shell-script to convert to bmp format:

cat $1 | grep -v ^"/\* Generated"| grep -v ^"/\* This"| grep -v ^"/\* title"| 
grep -v ^"/\* legend"| grep -v ^"/\* x-label"| grep -v ^"/\* y-label"| 
grep -v ^"/\* type" | xpmtoppm | ppmtobmp > $2

On the bmp, I apply tools (convert/mogrify) from the imagemagick package to 
crop & convert to png. The png then can then be read in by my 
python/scipy/numpy scripts as a matrix.



More information about the gromacs.org_gmx-users mailing list