updated LWplot to make fixbb optional
authorA.M. Thurnherr <ant@ldeo.columbia.edu>
Sun, 05 Apr 2015 22:11:30 -0400
changeset 20 d6dc9c9da138
parent 19 1d49806c9f75
child 21 cd001648ccba
updated LWplot to make fixbb optional
LWplot_BR
LWplot_CAE
LWplot_Sv
LWplot_TL
LWplot_corr
LWplot_prof
LWplot_prof_2beam
LWplot_residuals
LWplot_spec
LWplot_w
--- a/LWplot_BR	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_BR	Sun Apr 05 22:11:30 2015 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ B R 
 #                    doc: Mon Oct 17 10:57:12 2011
-#                    dlm: Wed Oct 30 00:37:51 2013
+#                    dlm: Sun Apr  5 22:08:49 2015
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 16 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 16 39 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -13,6 +13,7 @@
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
 #	Apr 12, 2012: - made re-entrant
 #   Oct 30, 2103: - got rid of non-portable echo -e
+#	Apr  5, 2015: - made fixbb optional
 
 #--------------------------------------------------
 # Usage
@@ -84,7 +85,7 @@
 psbasemap -O $R $X -B/a100-99W >> "$eps_file"
 
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$
--- a/LWplot_CAE	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_CAE	Sun Apr 05 22:11:30 2015 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #                    L W P L O T _ C A E 
 #                    doc: Wed May 15 19:35:58 2013
-#                    dlm: Thu Nov 21 10:19:31 2013
+#                    dlm: Sun Apr  5 22:09:30 2015
 #                    (c) 2013 A.M. Thurnherr
-#                    uE-Info: 93 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 101 26 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -12,6 +12,7 @@
 #	May 16, 2013: - fiddled
 #	Oct 30, 2013: - BUG: debug statement had been left in code
 #   Oct 30, 2013: - got rid of non-portable echo -e
+#	Apr  5, 2015: - made fixbb optional
 
 #--------------------------------------------------
 # Usage
@@ -97,7 +98,7 @@
 psbasemap -O $R $X -B/a100-99W >> "$eps_file"
 
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$
--- a/LWplot_Sv	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_Sv	Sun Apr 05 22:11:30 2015 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ S V 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Tue May 20 10:57:56 2014
+#                    dlm: Sun Apr  5 22:09:54 2015
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 17 57 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 104 26 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -15,6 +15,7 @@
 #   Apr 12, 2012: - made re-entrant
 #	May 16, 2013: - adapted to file-layout changes
 #	May 20, 2013: - renamed volume_scattering_coeff to Sv
+#	Apr  5, 2015: - made fixbb optional
 
 #--------------------------------------------------
 # Usage
@@ -100,7 +101,7 @@
 psbasemap -O $R $X -B$ens_tics:"Ensemble":/$depth_tics:"Depth [m]":WeSn >> "$eps_file"
 
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$
--- a/LWplot_TL	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_TL	Sun Apr 05 22:11:30 2015 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #                    L W P L O T _ T L 
 #                    doc: Thu Oct 13 10:51:49 2011
-#                    dlm: Thu Nov 21 10:20:38 2013
+#                    dlm: Sun Apr  5 22:10:06 2015
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 97 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 105 26 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -20,6 +20,7 @@
 #	Oct 16, 2012: - renamed elapsed to elapsed.LADCP
 #	Mar 23, 2013: - adapted to piece-wice time lagging
 #   Oct 30, 2103: - got rid of non-portable echo -e
+#	Apr  5, 2015: - made fixbb optional
 
 USAGE="Usage: $0 <eps-file> [in-file]"
 	[ $# -eq 2 ] && exec <"$2" "$0" "$1"
@@ -101,7 +102,7 @@
 done
 	
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$
--- a/LWplot_corr	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_corr	Sun Apr 05 22:11:30 2015 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ C O R R 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Thu May 16 15:23:26 2013
+#                    dlm: Sun Apr  5 22:10:16 2015
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 82 26 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 102 26 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -14,6 +14,7 @@
 #	Mar 12, 2012: - sh -> ksh as this does not work with /bin/sh on MacOSX 10.6.4
 #   Apr 12, 2012: - made re-entrant
 #	May 16, 2013: - adapted to file layout change
+#	Apr  5, 2015: - made fixbb optional
 
 #--------------------------------------------------
 # Usage
@@ -98,7 +99,7 @@
 psbasemap -O $R $X -B$ens_tics:"Ensemble":/$depth_tics:"Depth [m]":WeSn >> "$eps_file"
 
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$
--- a/LWplot_prof	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_prof	Sun Apr 05 22:11:30 2015 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ P R O F 
 #                    doc: Fri Oct 14 09:42:36 2011
-#                    dlm: Thu Nov 21 10:21:24 2013
+#                    dlm: Sun Apr  5 22:10:31 2015
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 87 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 124 26 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -18,6 +18,7 @@
 #   Apr 12, 2012: - made re-entrant
 #	May 15, 2013: - BUG: plot separation lines/shading did not work any more
 #   Oct 30, 2103: - got rid of non-portable echo -e
+#	Apr  5, 2015: - made fixbb optional
 
 #--------------------------------------------------
 # Usage
@@ -120,7 +121,7 @@
 psbasemap -O $R2 $X -Ba1000-850N >> "$eps_file"
 		 
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$
--- a/LWplot_prof_2beam	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_prof_2beam	Sun Apr 05 22:11:30 2015 -0400
@@ -2,15 +2,16 @@
 #======================================================================
 #					 L W P L O T _ P R O F _ 2 B E A M 
 #                    doc: Fri Oct 14 09:42:36 2011
-#                    dlm: Mon Nov  3 22:01:45 2014
+#                    dlm: Sun Apr  5 22:10:38 2015
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 13 59 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 123 26 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
 #	May 15, 2013: - created from [LWplot_prof]
 #	Oct 30, 2103: - got rid of non-portable echo -e
 #	Nov  3, 2014: - adapted to updated layout of .prof file
+#	Apr  5, 2015: - made fixbb optional
 
 # NOTES:
 #	- this version plots 2-beam solutions instead of final w
@@ -119,7 +120,7 @@
 psbasemap -O $R2 $X -Ba1000-850N >> "$eps_file"
 		 
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$
--- a/LWplot_residuals	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_residuals	Sun Apr 05 22:11:30 2015 -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: Wed Apr 18 10:36:25 2012
+#                    dlm: Sun Apr  5 22:10:46 2015
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 18 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 103 26 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -15,6 +15,7 @@
 #	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
+#	Apr  5, 2015: - made fixbb optional
 
 #--------------------------------------------------
 # Usage
@@ -99,7 +100,7 @@
 psbasemap -O $R $X -B$ens_tics:"Ensemble":/$depth_tics:"Depth [m]":WeSn >> "$eps_file"
 
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$
--- a/LWplot_spec	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_spec	Sun Apr 05 22:11:30 2015 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ S P E C 
 #                    doc: Thu Sep  5 18:23:41 2013
-#                    dlm: Sat Jul 12 12:33:13 2014
+#                    dlm: Sun Apr  5 22:10:53 2015
 #                    (c) 2013 A.M. Thurnherr
-#                    uE-Info: 14 80 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 131 26 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -12,6 +12,7 @@
 #   Oct 30, 2103: - got rid of non-portable echo -e
 #	Nov  6, 2013: - add interpolation of missing values
 #	Jul 12, 2013: - added a -N to pgram to make it work with partial-depth casts
+#	Apr  5, 2015: - made fixbb optional
 
 #--------------------------------------------------
 # Usage
@@ -127,7 +128,7 @@
 psbasemap -O -K $R $X -Bf3a2:"Vertical Wavelength [m]":/f3a1:"w Power Density [m@+2@+s@+-2@+/(rad m@+-1@+)]":WeSn >> "$eps_file"
 
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$
--- a/LWplot_w	Sun Apr 05 19:15:41 2015 -0400
+++ b/LWplot_w	Sun Apr 05 22:11:30 2015 -0400
@@ -2,9 +2,9 @@
 #======================================================================
 #					 L W P L O T _ W 
 #                    doc: Sat Oct 15 13:42:50 2011
-#                    dlm: Wed Apr 18 10:35:50 2012
+#                    dlm: Sun Apr  5 22:10:59 2015
 #                    (c) 2011 A.M. Thurnherr
-#                    uE-Info: 19 0 NIL 0 0 72 2 2 4 NIL ofnI
+#                    uE-Info: 103 26 NIL 0 0 72 2 2 4 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -16,6 +16,7 @@
 #	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
+#	Apr  5, 2015: - made fixbb optional
 
 #--------------------------------------------------
 # Usage
@@ -99,7 +100,7 @@
 psbasemap -O $R $X -B$ens_tics:"Ensemble":/$depth_tics:"Depth [m]":WeSn >> "$eps_file"
 
 rm $TMPFILE
-fixbb "$eps_file"
+[ -n "`which fixbb`" ] && fixbb "$eps_file"
 
 cd "$PWD"
 rm -rf /tmp/$$