LAST CHANGED    : 2019/02/22 17:31:53
CRUISE NAME(S)  : km1903, hot310
CRUISE DATES    : 2019/02/18 to 2019/02/22
SHIP NAME       : Kilo Moana
PORTS           : Honolulu, HI to Honolulu, HI
CHIEF SCIENTIST : T. Clemente
DATABASE NAME   : a_km
DATA FILES      : km2019_048_61722.raw to km2019_052_57600.raw

STATUS          :  to do                           done
                  ------                       -----------
                  averaged                       [  X   ]
                  loaded                         [  X   ]

                  NOTE: heading correction instrument exists
                        NOTE: time-dependent heading corrections
                        applied IN the ensembles
                        (see   cal/rotate/ens_hcorr.ang)

                  check heading correction       [  X   ]
                  calibration                    [  X   ]
                  edited                         [  X   ]
                  re-check heading correction    [  X   ]
                  check editing                  [  X   ]
                  figures                        [  X   ]

INSTRUMENT      : os38

ACQUISITION     : 
     PROGRAM    : uhdas
     PROCESSING:    : python

LOGGING         : 

     PARAMETERS : BT : bottom track mode (on or off)
                  SI : sampling interval or averaging period for ensemble (sec)
                  NB : number of bins
                  BL : bin length (m)
                  TD : transducer depth (m)
                  BK : blanking length (m)
                  HO : heading offset applied by DAS (deg)
                  HB : heading bias (deg)
                  CRPH : compensation for roll-pitch-heading, 1:on, 0:off)
                  
                  yy/mm/dd  hh:mm:ss   BT   SI  NB  BL  TD BK     HO     HB CRPH
                  2019/02/18 17:13:43  off  300 115  12   7 16  44.55   0.00 0001
                  2019/02/20 19:13:45  off  300 115  12   7 16  44.55   0.00 0001
                  2019/02/21 09:35:57  off  300 115  12   7 16  44.55   0.00 0001
                  2019/02/21 12:44:10  off  300 115  12   7 16  44.55   0.00 0001
                  2019/02/21 21:45:22  off  300 115  12   7 16  44.55   0.00 0001

HEADING         : 
     PRIMARY    : heading from gyro
     CORRECTION : heading correction from posmv
                        NOTE: time-dependent heading corrections
                        applied IN the ensembles
                        (see   cal/rotate/ens_hcorr.ang)

POSITIONS       : gps positions from posmv

CALIBRATION     : (check original processing parameters)
                  additional rotation 0.280
                  final transducer angle is: 44.55-0.280 = 44.27
                       (original transducer angle) - (rotate_angle)
                  applied scale factor 0.999
                  additional scale factor (none)

COMMENTS        : gaps in heading correction? Yes, some small ones.  Big ones have no corresponding ADCP data.
                  scattering layers? Visible in signal return occasionally, not in data.
                  bubbles? Yes, at times.
                  underway bias? No.
                  
PROCESSOR       : T. Rohrer


--- processing parameters ----------


## (determined from "sonar"): model = os
## (determined from "sonar"): frequency = 38
## (determined from "sonar"): instname = os38
## (determined from "sonar"): pingtype = bb
           beamangle   30
          cruisename   km1903
            datatype   uhdas
             ens_len   300
             fixfile   a_km.gps
           frequency   38
          hcorr_inst   posmv
            instname   os38
               model   os
            pingtype   bb
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   nav
               sonar   os38bb
            txy_file   a_km.agt
           xducer_dx   16
           xducer_dy   6
            yearbase   2019
(unless otherwise stated, comments are relative
to root processing directory)

codaspy:(os38bb)$ 

===================================
(0) remake all the plots

quick_mplplots.py --plots2run all --yearbase 2019

(1) look at heading correction: are there gaps?

    figview.py cal/rotate/*png

[ ] There were no gaps!
[X] There WERE some gaps!

Large gaps lack ADCP data as well as heading, but there are some small ones worth patching.

ran patch_hcorr_app.py, masked 25 points.

- Water Track Calibration:
            median     mean      std
amplitude   0.9990   1.0002   0.0087
phase       0.0330  -0.0763   0.6249


---New Calibration---
- Water Track Calibration:
            median     mean      std
amplitude   0.9990   1.0002   0.0088
phase       0.0280  -0.0776   0.6261

quick_adcp.py --steps2rerun rotate:apply_edit:navsteps:calib --rotate_amplitude 0.999 --rotate_angle 0.028  --auto



(2) see what calibration looks like:

                amp  in [0.995, 1.005] : good enough to proceed 
                                         to the next step.  tweak later
                phase in (-.5, .5) : good enough to proceed 
                                         to the next step.  tweak later

    rule of thumb: errors when underway:

         scale factor of 1.02 (i.e. 2%) gives 10cm/s alongtrack error
         phase error of 1deg gives 10cm crosstrack error 

         (goal is 1cm/s)

tail -20 cal/watertrk/adcpcal.out

** watertrack**  (HOT-310)

Number of edited points:  25 out of  29
   amp   = 1.0012  + -0.0017 (t -  50.9)
   phase =  -0.11  + 0.0293 (t -  50.9)
            median     mean      std
amplitude   1.0000   1.0012   0.0088
phase      -0.0010  -0.1058   0.6254
nav - pc   -1.0000  -2.1200   3.3206
var         0.0020   0.0030   0.0044
min var     0.0010   0.0027   0.0044
delta-u    -0.1500   0.1816   5.0724
delta-v     0.4700   0.0812   3.0416


Medians looking really nice.


(3) gautoedit.py 

 Minor edits, just a few points below the seabed.

(4) apply editing

    quick_adcp.py --steps2rerun apply_edit:navsteps:calib --proc_engine python --datatype uhdas --auto

    tail -20 cal/watertrk/adcpcal.out

** watertrack **  (HOT-310)
Number of edited points:  25 out of  27
   amp   = 1.0012  + -0.0017 (t -  50.9)
   phase =  -0.11  + 0.0293 (t -  50.9)
            median     mean      std
amplitude   1.0000   1.0012   0.0088
phase      -0.0010  -0.1058   0.6254
nav - pc   -1.0000  -2.1200   3.3206
var         0.0020   0.0030   0.0044
min var     0.0010   0.0027   0.0044
delta-u    -0.1500   0.1816   5.0724
delta-v     0.4700   0.0812   3.0416

Still looking good.

(5) apply calibration

No additional calibration necessary.


(6) web plots:
mkdir webpy
cp ../wh300/webpy/sectinfo.txt webpy/
quick_web.py --redo

cd ../
cat os38bb/cruise_info.txt dm_notes_os38bb.txt > os38bb.txt





ALL done
