merged whoosher & EN620
authorAndreas Thurnherr <ant@ldeo.columbia.edu>
Sun, 21 Oct 2018 20:01:48 -0400
changeset 45 5767cbe470a0
parent 44 b7654ea68af6 (diff)
parent 43 b63fa355644c (current diff)
child 46 777cd0f2456a
merged whoosher & EN620
RDI_PD0_IO.pl
listBins
loadANTS.m
meanProf
--- a/listBins
+++ b/listBins
@@ -2,9 +2,9 @@
 #======================================================================
 #                    L I S T B I N S 
 #                    doc: Fri Aug 25 15:57:05 2006
-#                    dlm: Tue Apr 10 08:41:50 2018
+#                    dlm: Wed Aug 29 07:23:21 2018
 #                    (c) 2006 A.M. Thurnherr
-#                    uE-Info: 176 0 NIL 0 0 72 0 2 4 NIL ofnI
+#                    uE-Info: 136 20 NIL 0 0 72 0 2 4 NIL ofnI
 #======================================================================
 
 # Split data file into per-bin time series.
@@ -70,6 +70,7 @@
 #	Apr 10, 2018: - added day number to output
 #				  - added -l)ast bin
 #				  - activate output files
+#	Aug 29, 2018: - added error message on -r decoding failures
 
 # General Notes:
 #	- everything (e.g. beams) is numbered from 1
@@ -142,8 +143,11 @@
 $opt_o = '>bin%d.raw' unless defined($opt_o);
 $ifn = $ARGV[0];
 
-($first_ens,$last_ens) = split(',',$opt_r)
-	if defined($opt_r);
+if (defined($opt_r)) {
+	($first_ens,$last_ens) = split(',',$opt_r);
+	die("Cannot decode -r $opt_r\n")
+		unless ($first_ens>0 && $last_ens>$first_ens);
+}
 
 if (defined($opt_S)) {
 	($SS_salin,$SS_temp,$SS_depth) = split(',',$opt_S);
--- a/meanProf
+++ b/meanProf
@@ -2,9 +2,9 @@
 #======================================================================
 #                    M E A N P R O F 
 #                    doc: Fri Feb 22 08:40:18 2008
-#                    dlm: Tue Apr 10 09:01:50 2018
+#                    dlm: Fri Aug 24 13:45:21 2018
 #                    (c) 2008 A.M. Thurnherr
-#                    uE-Info: 19 35 NIL 0 0 72 0 2 4 NIL ofnI
+#                    uE-Info: 15 71 NIL 0 0 72 0 2 4 NIL ofnI
 #======================================================================
 
 # extract time-averaged mean profile from ADCP data
@@ -17,6 +17,7 @@
 #				  - added -l to set final bin
 #				  - BUG: division by zero in empty bins
 #	Apr 10, 2018: - activate output
+#	Aug 24, 2018: - BUG: code bombed when there are no 4-beam solutions
 
 # Soundspeed Correction:
 #	- based on first ensemble only