.
authorA.M. Thurnherr <athurnherr@yahoo.com>
Wed, 18 Apr 2012 07:32:31 +0000
changeset 8 efdd251dd5b7
parent 6 4d48ffde2471
child 9 6ea152571f00
.
LWplot_BR
LWplot_Sv
LWplot_TL
LWplot_TLhist
LWplot_corr
LWplot_prof
LWplot_residuals
LWplot_w
--- a/LWplot_BR	Fri Mar 09 08:34:30 2012 +0000
+++ b/LWplot_BR	Wed Apr 18 07:32:31 2012 +0000
@@ -2,14 +2,15 @@
 #======================================================================
 #					 L W P L O T _ B R 
 #                    doc: Mon Oct 17 10:57:12 2011
-#                    dlm: Mon Nov 14 15:02:29 2011
+#                    dlm: Thu Apr 12 13:02:02 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 39 79 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 13 35 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
 #	Oct 17, 2011: - created
 #	Nov 14, 2011: - added file layout check
+#	Apr 12, 2012: - made re-entrant
 
 #--------------------------------------------------
 # Usage
@@ -46,6 +47,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
@@ -78,3 +83,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_Sv	Fri Mar 09 08:34:30 2012 +0000
+++ b/LWplot_Sv	Wed Apr 18 07:32:31 2012 +0000
@@ -2,15 +2,16 @@
 #======================================================================
 #					 L W P L O T _ S V 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Mon Nov 14 14:57:31 2011
+#                    dlm: Thu Apr 12 13:08:00 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 76 26 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 104 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
 #	Oct 19, 2011: - adapted from [LWplot_residuals]
 #	Oct 24, 2011: - LADCP_bin_length => ADCP_bin_length
 #	Nov 14, 2011: - added file layout check
+#   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_Sv
 if [ ! -t 1 ]
 then
@@ -93,3 +98,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_TL	Fri Mar 09 08:34:30 2012 +0000
+++ b/LWplot_TL	Wed Apr 18 07:32:31 2012 +0000
@@ -2,9 +2,9 @@
 #======================================================================
 #                    L W P L O T _ T L 
 #                    doc: Thu Oct 13 10:51:49 2011
-#                    dlm: Mon Nov 14 15:27:35 2011
+#                    dlm: Thu Apr 12 13:08:13 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 31 88 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 83 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -13,6 +13,7 @@
 #	Oct 17, 2011: - turned into filter
 #				  - added %run_label
 #	Nov 14, 2011: - added file layout check
+#   Apr 12, 2012: - made re-entrant
 
 USAGE="Usage: $0 <eps-file> [in-file]"
 	[ $# -eq 2 ] && exec <"$2" "$0" "$1"
@@ -37,6 +38,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
@@ -72,3 +77,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_TLhist	Fri Mar 09 08:34:30 2012 +0000
+++ b/LWplot_TLhist	Wed Apr 18 07:32:31 2012 +0000
@@ -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 Nov 14 15:27:46 2011
+#                    dlm: Thu Apr 12 13:08:19 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 29 88 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 76 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -12,6 +12,7 @@
 #	Oct 17, 2011: - turned into filter
 #				  - added %run_label
 #   Nov 14, 2011: - added file layout check
+#   Apr 12, 2012: - made re-entrant
 
 USAGE="Usage: $0 <eps-file> [in-file]"
 	[ $# -eq 2 ] && exec <"$2" "$0" "$1"
@@ -35,6 +36,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
@@ -65,3 +70,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_corr	Fri Mar 09 08:34:30 2012 +0000
+++ b/LWplot_corr	Wed Apr 18 07:32:31 2012 +0000
@@ -2,15 +2,16 @@
 #======================================================================
 #					 L W P L O T _ C O R R 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Mon Nov 14 14:58:54 2011
+#                    dlm: Thu Apr 12 13:08:21 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 75 26 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 103 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
 #	Oct 19, 2011: - adapted from [LWplot_residuals]
 #   Oct 24, 2011: - LADCP_bin_length => ADCP_bin_length
 #	Nov 14, 2011: - added file layout check
+#   Apr 12, 2012: - made re-entrant
 
 #--------------------------------------------------
 # Usage
@@ -49,6 +50,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
@@ -92,3 +97,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_prof	Fri Mar 09 08:34:30 2012 +0000
+++ b/LWplot_prof	Wed Apr 18 07:32:31 2012 +0000
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ P R O F 
 #                    doc: Fri Oct 14 09:42:36 2011
-#                    dlm: Mon Nov 14 14:59:46 2011
+#                    dlm: Thu Apr 12 13:08:22 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 44 65 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 119 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -14,6 +14,7 @@
 #	Oct 17, 2011: - turned into filter
 #				  - added %run_label
 #	Nov 14, 2011: - added file layout check
+#   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_prof
 if [ ! -t 1 ]
 then
@@ -108,3 +113,7 @@
 		 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_residuals	Fri Mar 09 08:34:30 2012 +0000
+++ b/LWplot_residuals	Wed Apr 18 07:32:31 2012 +0000
@@ -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 Nov 14 14:53:06 2011
+#                    dlm: Thu Apr 12 13:08:23 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 77 26 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 105 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -13,6 +13,7 @@
 #				  - added %run_label
 #   Oct 24, 2011: - LADCP_bin_length => ADCP_bin_length
 #	Nov 14, 2011: - added file layout check
+#   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_residuals
 if [ ! -t 1 ]
 then
@@ -94,3 +99,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+
--- a/LWplot_w	Fri Mar 09 08:34:30 2012 +0000
+++ b/LWplot_w	Wed Apr 18 07:32:31 2012 +0000
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ W 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Mon Feb  6 18:41:55 2012
+#                    dlm: Thu Apr 12 13:08:24 2012
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 91 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 105 0 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -14,6 +14,7 @@
 #	Oct 19, 2011: - fiddled
 #   Oct 24, 2011: - LADCP_bin_length => ADCP_bin_length
 #	Nov 14, 2011: - added file layout check
+#   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_w
 if [ ! -t 1 ]
 then
@@ -94,3 +99,7 @@
 
 rm $TMPFILE
 fixbb "$eps_file"
+
+cd "$PWD"
+rm -rf /tmp/$$
+