[cig-commits] commit: fix grdmap.sh to use transparency and write the palette in the correct directory.

Mercurial hg at geodynamics.org
Tue May 14 20:46:27 PDT 2013


changeset:   201:0adb32bc60ea
user:        Sylvain Barbot <sbarbot at ntu.edu.sg>
date:        Wed May 15 11:45:19 2013 +0800
files:       util/grdmap.sh
description:
fix grdmap.sh to use transparency and write the palette in the correct directory.


diff -r 0ccc90136bd5 -r 0adb32bc60ea util/grdmap.sh
--- a/util/grdmap.sh	Sat Apr 13 00:53:34 2013 +0800
+++ b/util/grdmap.sh	Wed May 15 11:45:19 2013 +0800
@@ -49,7 +49,7 @@ my_gmt(){
 my_gmt(){
 
 	if [ -e "$U3" ]; then
-		grdimage $U3 -R$bds -J${PROJ} \
+		grdimage $U3 -R$bds -J${PROJ} -Q \
 		    $AXIS \
 		    -K -C$colors -P -X1.2i -Y${YSHIFT}i $illumination \
 		    > $PSFILE
@@ -253,7 +253,7 @@ while [ "$#" != "0" -o "$Eset" == "1" ];
 			unit=`grdinfo $U3 | grep "Remark" | awk -F ": " '{print $3}'`
 		fi
 
-		colors=$WDIR/palette.cpt
+		colors=$ODIR/palette.cpt
 		if [ "$pset" != "1" ]; then
 			# cool, copper, gebco, globe, gray, haxby, hot, jet, no_green, ocean
 			# polar, rainbow, red2green, relief, topo, sealand, seis, split, wysiwyg  



More information about the CIG-COMMITS mailing list