.
authorA.M. Thurnherr <ant@ldeo.columbia.edu>
Wed, 18 Apr 2012 10:36:46 -0400
changeset 9 6ea152571f00
parent 7 e4f531c66f2c (current diff)
parent 8 efdd251dd5b7 (diff)
child 10 7e76fdef8953
.
LWplot_BR
LWplot_Sv
LWplot_TL
LWplot_TLhist
LWplot_corr
LWplot_prof
LWplot_residuals
LWplot_w
--- a/LWplot_BR	Wed Mar 14 01:08:20 2012 -0400
+++ b/LWplot_BR	Wed Apr 18 10:36:46 2012 -0400
@@ -2,15 +2,16 @@
 #======================================================================
 #					 L W P L O T _ B R 
 #                    doc: Mon Oct 17 10:57:12 2011
-#                    dlm: Mon Mar 12 21:13:19 2012
+#                    dlm: Wed Apr 18 10:32:12 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 14 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 15 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
 #	Oct 17, 2011: - created
 #	Nov 14, 2011: - added file layout check
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
+#	Apr 12, 2012: - made re-entrant
 
 #--------------------------------------------------
 # Usage
@@ -47,6 +48,10 @@
 # Plot Data
 #--------------------------------------------------
 
+eps_file="$PWD/$eps_file"	# make outfile name absolute (hopefully, it is not already...)
+mkdir /tmp/$$				# GMT makes tmpfiles and is not reentrant
+cd /tmp/$$
+
 TMPFILE=/tmp/$$.LWplot_BR
 if [ ! -t 1 ]
 then
@@ -79,3 +84,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_Sv	Wed Mar 14 01:08:20 2012 -0400
+++ b/LWplot_Sv	Wed Apr 18 10:36:46 2012 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ S V 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Mon Mar 12 21:13:26 2012
+#                    dlm: Wed Apr 18 10:32:58 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 15 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 16 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -12,6 +12,7 @@
 #	Oct 24, 2011: - LADCP_bin_length => ADCP_bin_length
 #	Nov 14, 2011: - added file layout check
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
+#   Apr 12, 2012: - made re-entrant
 
 #--------------------------------------------------
 # Usage
@@ -51,6 +52,10 @@
 # Plot Data
 #--------------------------------------------------
 
+eps_file="$PWD/$eps_file"	# make outfile name absolute (hopefully, it is not already...)
+mkdir /tmp/$$				# GMT makes tmpfiles and is not reentrant
+cd /tmp/$$
+
 TMPFILE=/tmp/$$.LWplot_Sv
 if [ ! -t 1 ]
 then
@@ -94,3 +99,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_TL	Wed Mar 14 01:08:20 2012 -0400
+++ b/LWplot_TL	Wed Apr 18 10:36:46 2012 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #                    L W P L O T _ T L 
 #                    doc: Thu Oct 13 10:51:49 2011
-#                    dlm: Mon Mar 12 21:12:36 2012
+#                    dlm: Wed Apr 18 10:33:35 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 17 0 NIL 0 0 72 0 2 4 NIL ofnI
+#                    uE-Info: 18 0 NIL 0 0 72 0 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -14,6 +14,7 @@
 #				  - added %run_label
 #	Nov 14, 2011: - added file layout check
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
+#   Apr 12, 2012: - made re-entrant
 
 USAGE="Usage: $0 <eps-file> [in-file]"
 	[ $# -eq 2 ] && exec <"$2" "$0" "$1"
@@ -38,6 +39,10 @@
 	exit 1
 }
 
+eps_file="$PWD/$eps_file"	# make outfile name absolute (hopefully, it is not already...)
+mkdir /tmp/$$				# GMT makes tmpfiles and is not reentrant
+cd /tmp/$$
+
 TMPFILE=/tmp/$$.LWplot_TL
 if [ ! -t 1 ]
 then
@@ -73,3 +78,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_TLhist	Wed Mar 14 01:08:20 2012 -0400
+++ b/LWplot_TLhist	Wed Apr 18 10:36:46 2012 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #                    L W P L O T _ T L H I S T 
 #                    doc: Thu Oct 13 10:51:49 2011
-#                    dlm: Mon Mar 12 21:12:43 2012
+#                    dlm: Wed Apr 18 10:34:10 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 16 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 17 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -13,6 +13,7 @@
 #				  - added %run_label
 #   Nov 14, 2011: - added file layout check
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
+#   Apr 12, 2012: - made re-entrant
 
 USAGE="Usage: $0 <eps-file> [in-file]"
 	[ $# -eq 2 ] && exec <"$2" "$0" "$1"
@@ -36,6 +37,10 @@
 	exit 1
 }
 
+eps_file="$PWD/$eps_file"	# make outfile name absolute (hopefully, it is not already...)
+mkdir /tmp/$$				# GMT makes tmpfiles and is not reentrant
+cd /tmp/$$
+
 TMPFILE=/tmp/$$.LWplot_TLhist
 if [ ! -t 1 ]
 then
@@ -66,3 +71,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_corr	Wed Mar 14 01:08:20 2012 -0400
+++ b/LWplot_corr	Wed Apr 18 10:36:46 2012 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ C O R R 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Mon Mar 12 21:12:50 2012
+#                    dlm: Wed Apr 18 10:34:44 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 15 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 16 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -12,6 +12,7 @@
 #   Oct 24, 2011: - LADCP_bin_length => ADCP_bin_length
 #	Nov 14, 2011: - added file layout check
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
+#   Apr 12, 2012: - made re-entrant
 
 #--------------------------------------------------
 # Usage
@@ -50,6 +51,10 @@
 # Plot Data
 #--------------------------------------------------
 
+eps_file="$PWD/$eps_file"	# make outfile name absolute (hopefully, it is not already...)
+mkdir /tmp/$$				# GMT makes tmpfiles and is not reentrant
+cd /tmp/$$
+
 TMPFILE=/tmp/$$.LWplot_corr
 if [ ! -t 1 ]
 then
@@ -93,3 +98,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_prof	Wed Mar 14 01:08:20 2012 -0400
+++ b/LWplot_prof	Wed Apr 18 10:36:46 2012 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ P R O F 
 #                    doc: Fri Oct 14 09:42:36 2011
-#                    dlm: Tue Mar 13 20:07:46 2012
+#                    dlm: Wed Apr 18 10:35:19 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 102 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 107 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -15,6 +15,7 @@
 #				  - added %run_label
 #	Nov 14, 2011: - added file layout check
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
+#   Apr 12, 2012: - made re-entrant
 
 #--------------------------------------------------
 # Usage
@@ -52,6 +53,10 @@
 # Plot Data
 #--------------------------------------------------
 
+eps_file="$PWD/$eps_file"	# make outfile name absolute (hopefully, it is not already...)
+mkdir /tmp/$$				# GMT makes tmpfiles and is not reentrant
+cd /tmp/$$
+
 TMPFILE=/tmp/$$.LWplot_prof
 if [ ! -t 1 ]
 then
@@ -109,3 +114,7 @@
 		 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_residuals	Wed Mar 14 01:08:20 2012 -0400
+++ b/LWplot_residuals	Wed Apr 18 10:36:46 2012 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ R E S I D U A L S 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Mon Mar 12 21:13:05 2012
+#                    dlm: Wed Apr 18 10:36:25 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 17 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 18 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -14,6 +14,7 @@
 #   Oct 24, 2011: - LADCP_bin_length => ADCP_bin_length
 #	Nov 14, 2011: - added file layout check
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
+#   Apr 12, 2012: - made re-entrant
 
 #--------------------------------------------------
 # Usage
@@ -52,6 +53,10 @@
 # Plot Data
 #--------------------------------------------------
 
+eps_file="$PWD/$eps_file"	# make outfile name absolute (hopefully, it is not already...)
+mkdir /tmp/$$				# GMT makes tmpfiles and is not reentrant
+cd /tmp/$$
+
 TMPFILE=/tmp/$$.LWplot_residuals
 if [ ! -t 1 ]
 then
@@ -95,3 +100,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_w	Wed Mar 14 01:08:20 2012 -0400
+++ b/LWplot_w	Wed Apr 18 10:36:46 2012 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ W 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Mon Mar 12 21:13:13 2012
+#                    dlm: Wed Apr 18 10:35:50 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 18 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 19 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -15,6 +15,7 @@
 #   Oct 24, 2011: - LADCP_bin_length => ADCP_bin_length
 #	Nov 14, 2011: - added file layout check
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
+#   Apr 12, 2012: - made re-entrant
 
 #--------------------------------------------------
 # Usage
@@ -53,6 +54,10 @@
 # Plot Data
 #--------------------------------------------------
 
+eps_file="$PWD/$eps_file"	# make outfile name absolute (hopefully, it is not already...)
+mkdir /tmp/$$				# GMT makes tmpfiles and is not reentrant
+cd /tmp/$$
+
 TMPFILE=/tmp/$$.LWplot_w
 if [ ! -t 1 ]
 then
@@ -95,3 +100,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+