diff --git a/listBins b/listBins --- 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: Sun Aug 22 22:40:32 2010 +# dlm: Mon Apr 29 11:50:06 2013 # (c) 2006 A.M. Thurnherr -# uE-Info: 45 28 NIL 0 0 72 2 2 4 NIL ofnI +# uE-Info: 108 20 NIL 0 0 72 2 2 4 NIL ofnI #====================================================================== # Split data file into per-bin time series. @@ -43,6 +43,8 @@ # May 22, 2009: - added -B) # May 23, 2009: - adapted to changed beampair-velocity fun name # Aug 22, 2010: - added -R +# Apr 29, 2013: - cosmetics +# - added warning on missing -S # General Notes: # - everything (e.g. beams) is numbered from 1 @@ -76,7 +78,7 @@ "[-S)oundspeed correction " . "[-P)itch/Roll ] [-B)eamvel ] " . "[require -4)-beam solutions] [-d)iscard ] " . - "[-%)good ] " . + "[-p)ct-good ] " . "[output -b)eam coordinates] [output two separate -w) estimates] " . "\n") unless (&Getopts("4abB:d:f:M:p:r:P:RS:w") && @ARGV == 1); @@ -103,9 +105,12 @@ ($first_ens,$last_ens) = split(',',$opt_r) if defined($opt_r); -($SS_salin,$SS_temp,$SS_depth) = split(',',$opt_S) - if defined($opt_S); -$variable_ssCorr = ($SS_salin eq '*' || $SS_temp eq '*' || $SS_depth eq '*'); +if (defined($opt_S)) { + ($SS_salin,$SS_temp,$SS_depth) = split(',',$opt_S); + $variable_ssCorr = ($SS_salin eq '*' || $SS_temp eq '*' || $SS_depth eq '*'); +} else { + print(STDERR "WARNING: no soundspeed correction applied!\n"); +} #----------------------------------------------------------------------