LOADRDI: Loading data
 loading down-data ../dn/wh_dn000.000
ISBB: BB-data 
 raw data has 629+2 bytes per ensemble
 read 1904 ensemble and 20 bins 
 using RDI bottom track
 removed 0 values because of low percent good
 loading up-data ../up/wh_up000.000
 raw data has 629+2 bytes per ensemble
 read 1911 ensemble and 20 bins 
 removed 0 values because of low percent good
 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 
 warning mean ping rate not equal between both instruments 
  mean down ping rate :3.5  mean up ping rate :3.7183
 find best time match of up-looking ADCP to down looking ADCP
 up instrument is different by 0 ensembles
 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 
 try to shift timeseries by lag: -1 correlation: 0.91863
 shift ADCP timeseries by -1 ensembles
 number of joint ensembles is : 1903
 found 2 bad bottom error velocities and discarded them
 removed 148 values because of high error velocity
 removed 0 bottom values because of high error velocity
 extracting 1562 ensembles as profile
 removed 0 profiles due to larger tilt than 22
 removed 0 profiles due to larger tilt difference than 4
 multiply weight of bin 1 by  0.5
 Outlier discarded 1164 bins down looking
 Outlier discarded 1004 bins up looking
==> load data took 32 seconds
GETDEPTH: Integrating depth from vertical velocity
 starting run 1 to find bottom depth
 maxdepth form down-trace is 1963.7952
 maxdepth from up-trace   is 2009.7473
 make soundspeed based on pressure and ADCP temp
 start depth correction from surface return: 1
 end depth correction from surface return: 14
 last depth from int W is :0.2856
 should be                :2
 maximum depth from int W is :1980.8222
 should be                   :2288.6
 use LADCP depth from integrated W
  bottom found at 2280 +/- 6 m
  extracted bottom within 10m above given maximum profile depth
 starting run 2 to find bottom depth
 start depth correction from surface return: 15
 end depth correction from surface return: 17
 last depth from int W is :0.2856
 should be                :2
 maximum depth from int W is :2272.6998
 should be                   :2288.6
 use LADCP depth from integrated W
  bottom found at 2289 +/- 2 m
  extracted bottom within 10m above given maximum profile depth
 removing 1569 values  below recognized bottom
 make soundspeed based on pressure and ADCP temp
 correct velocities for sound speed 
 remove data at begining and end of cast
==> get depth took 3 seconds
PREPINV: prepare data for inversion, form Super-Ensembles
 average profiles over (p.avdz) 20 meter
 discarded 1286 bottom tracks velocities because of dist > 300
 reduce weight for larger tilts 0.5 at 10 degree
 mean compass offset based on velocity is -80.8225 deg
 mean compass offset based on tilt is -83.7399 deg
 rot up2down use mean up/down compass
 will not correct for sound speed twice
 remove reference velocity and average ensembles 
 Outlier discarded 125 bins down looking
 Outlier discarded 119 bins up looking
 reduced ensemble size is 180
 mean compass offset based on tilt is -83.7399 deg
 remove first guess ocean velocity from raw data
 adjusted for velocity offset in up and down looking ADCP
 remove first guess ocean velocity from raw data
 rot up2down use mean up/down compass
 rotated earlier, use difference 
 will not correct for sound speed twice
 remove reference velocity and average ensembles 
 Outlier discarded 121 bins down looking
 Outlier discarded 123 bins up looking
 reduced ensemble size is 180
 can not find SADCP data file: 
==> prep inversion took 37 seconds
GETINV:  compute best velocity profile
 Barotropic velocity error 0.01142 [m/s]
 super ensemble velocity error 0.0069701 [m/s]
 set velocity error to:0.01377 [m/s]
 vertical resolution (ps.dz) is 20 [m]
 smooth Ocean velocity profile
 smooth CTD velocity profile
 bottom inversion 
 mean bottom track weight : 0.86009
 weight for bottom track is (ps.botfac) 1
 no SADCP data
 add barotropic constrain weight: 1.2058
 ready for inversion  length of d : 3827
           (CTD vel)  length of A1:180
         (ocean vel)  length of A2:113
Moore-Penrose inverse
 solve only down trace
 smooth Ocean velocity profile
 smooth CTD velocity profile
Cholesky transform
 solve only up trace
 smooth Ocean velocity profile
 smooth CTD velocity profile
 found 1 ill constrained elements
Cholesky transform
==> inversion took 5 seconds
GETSHEAR2: average shear profile over (ps.dz) 20 [m]
 maximum std (stdf) 2 of data 
 minimum weight  0.1 of data 
 will use 72 % of data 
 save results 
