[gmx-users] using recolor.sh to color the xpm matrix files produced by r_rms and g_mdmat

Hassan Shallal hshallal at PACIFIC.EDU
Thu Dec 16 04:19:20 CET 2010


Dear Gromacs users,
 
I have been trying to use the recolor.sh mentioned in this wbsite http://nmr.chem.uu.nl/~tsjerk/course/molmod/analysis1.html <http://nmr.chem.uu.nl/~tsjerk/course/molmod/analysis1.html> 
to reclor an xpm file called rmsd-matrix.xpm file, whenever I issue the command recolor.sh rmsd-matrix.xpm, I get the following error message:
 
#$ hassan~ $./recolor.sh rmsd-matrix.xpm
GIMP-Error: Opening '/home/hshallal/(gimp-file-save 1 1 2 "./rmsd-matrix.png" "./rmsd-matrix.png")' failed: No such file or directory
GIMP-Error: Opening '/home/hshallal/(gimp-quit 0)' failed: No such file or directory
batch command: executed successfully

It seems like a problem with gimp not being able to process as stated in the script, especially with the argument of "(gimp-file-save 1 1 2 \"$png\" \"$png\")" (look below for the contents of the script).  

I have gimp confidured in my system. has anyone ran across the same problem or can know what the problem is and what th solution might be?

Thanks in advance

Hassan

The contents of the recolor.sh file:

#!/bin/sh

xpm=$1
png=`dirname $xpm`/`basename $xpm .xpm`.png
convert xc:red xc:orange xc:yellow xc:green1 xc:cyan xc:blue xc:magenta \
          +append -filter Cubic -resize 600x30\! -rotate 90 gradient_rainbow.jpg
#convert -size 1x600 xc:'#0C0' -colorspace HSB \
#          gradient: -compose CopyRed -composite \
#          -colorspace RGB gradient_rainbow.jpg
gimp -d -f -i -b "(gimp-file-load 1 \"$xpm\" \"$xpm\")" "(gimp-file-save 1 1 2 \"$png\" \"$png\")" "(gimp-quit 0)"
convert $png gradient_rainbow.jpg -virtual-pixel edge -fx 'v.p{0,u*v.h}' $png

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 5457 bytes
Desc: not available
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20101215/1c430274/attachment.bin>


More information about the gromacs.org_gmx-users mailing list