[cig-commits] commit: trim grdmap.sh

Mercurial hg at geodynamics.org
Mon Oct 8 08:37:50 PDT 2012


changeset:   143:ce4b4e72c047
tag:         tip
user:        Sylvain Barbot <sbarbot at caltech.edu>
date:        Mon Oct 08 08:37:45 2012 -0700
files:       util/grdmap.sh
description:
trim grdmap.sh


diff -r 138acc5ce8af -r ce4b4e72c047 util/grdmap.sh
--- a/util/grdmap.sh	Mon Oct 08 06:58:36 2012 -0700
+++ b/util/grdmap.sh	Mon Oct 08 08:37:45 2012 -0700
@@ -1,12 +1,12 @@
 #!/bin/bash
 
-##############################################
-# script map.sh
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# script grdmap.sh
 # display a map view of GMT .grd files with
 # overlay from user-provided GMT scripts.
 #
 # Sylvain Barbot (01/01/07) - original form
-##############################################
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
 
 set -e
 self=$(basename $0)
@@ -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,12 +161,6 @@ 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