[cig-commits] commit: fix grdmap.sh VECTOR variable.
Mercurial
hg at geodynamics.org
Wed Oct 17 01:02:00 PDT 2012
changeset: 149:8e013252c3a4
tag: tip
user: Sylvain Barbot <sbarbot at caltech.edu>
date: Wed Oct 17 01:01:55 2012 -0700
files: util/grdmap.sh
description:
fix grdmap.sh VECTOR variable.
diff -r a7c827614199 -r 8e013252c3a4 util/grdmap.sh
--- a/util/grdmap.sh Tue Oct 16 22:29:28 2012 -0700
+++ b/util/grdmap.sh Wed Oct 17 01:01:55 2012 -0700
@@ -89,7 +89,7 @@ my_gmt(){
fi
# plot the vector legend if $VECTOR is set
- if [ "$VECTOR" != "" ]; then
+ if [ "$VECTOR" != "-" ]; then
UL=`echo $bds | awk -F "/" '{print $1,$4}' `
pstext -O -K -J${PROJ} -N -R$bds \
-G0/0/0 -Yr0.3i \
@@ -161,6 +161,11 @@ done
#--------------------------------------------------------
# DEFAULTS
#--------------------------------------------------------
+
+if [ "$vset" != "1" ]; then
+ # unused value but preserve the number of elements in call to subroutine
+ VECTOR="-"
+fi
# vertical shift of plot
if [ "$Yset" != "1" ]; then
More information about the CIG-COMMITS
mailing list