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.7189
 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: 0 correlation: 0.92785
 shift ADCP timeseries by 0 ensembles
 number of joint ensembles is : 1904
 found 1 bad bottom error velocities and discarded them
 removed 67 values because of high error velocity
 removed 0 bottom values because of high error velocity
 extracting 1646 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 1200 bins down looking
 Outlier discarded 894 bins up looking
==> load data took 36 seconds
GETDEPTH: Integrating depth from vertical velocity
 starting run 1 to find bottom depth
 maxdepth form down-trace is 2138.5665
 maxdepth from up-trace   is 2164.2816
 make soundspeed based on pressure and ADCP temp
 start depth correction from surface return: 4
 end depth correction from surface return: 14
 last depth from int W is :0
 should be                :2
 maximum depth from int W is :2143.3157
 should be                   :2107.7
 use LADCP depth from integrated W
  bottom found at 2119 +/- 0 m
 starting run 2 to find bottom depth
 start depth correction from surface return: -2
 end depth correction from surface return: -1
 last depth from int W is :0
 should be                :2
 maximum depth from int W is :2109.1209
 should be                   :2107.7
 use LADCP depth from integrated W
  bottom found at 2119 +/- 0 m
 removing 1563 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 1376 bottom tracks velocities because of dist > 300
 reduce weight for larger tilts 0.5 at 10 degree
 mean compass offset based on velocity is -84.7313 deg
 mean compass offset based on tilt is -83.3967 deg
 rot up2down use mean up/down compass
 will not correct for sound speed twice
 remove reference velocity and average ensembles 
 Outlier discarded 105 bins down looking
 Outlier discarded 122 bins up looking
 reduced ensemble size is 171
 mean compass offset based on tilt is -83.3967 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 106 bins down looking
 Outlier discarded 122 bins up looking
 reduced ensemble size is 171
 can not find SADCP data file: 
==> prep inversion took 39 seconds
GETINV:  compute best velocity profile
 Barotropic velocity error 0.010919 [m/s]
 super ensemble velocity error 0.0073041 [m/s]
 set velocity error to:0.015372 [m/s]
 vertical resolution (ps.dz) is 20 [m]
 smooth Ocean velocity profile
 smooth CTD velocity profile
 found 1 ill constrained elements
 bottom inversion 
 mean bottom track weight : 0.83934
 weight for bottom track is (ps.botfac) 1
 no SADCP data
 add barotropic constrain weight: 1.4078
 ready for inversion  length of d : 3327
           (CTD vel)  length of A1:171
         (ocean vel)  length of A2:105
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 69 % of data 
 save results 
