LAST CHANGED    : 2017/10/09 19:18:59
CRUISE NAME(S)  : km1715, hot296
CRUISE DATES    : 2017/10/05 to 2017/10/09
SHIP NAME       : Kilo Moana
PORTS           : Honolulu, HI to Honolulu, HI
CHIEF SCIENTIST : Fernando Santiago-Mandujano
DATABASE NAME   : a_km
DATA FILES      : km2017_277_61921.raw to km2017_281_64800.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      : wh300

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
                  2017/10/05 17:14:02  off  120  70   2   7  2  45.52   0.00 0001
                  2017/10/09 11:14:02  off  120  70   2   7  2  45.52   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
                  final transducer angle is:
                       (original transducer angle) - (rotate_angle)
                  applied scale factor 1
                  additional scale factor (none)

COMMENTS        : gaps in heading correction?
                  scattering layers?
                  bubbles?
                  underway bias?
                  
PROCESSOR       : K.C. Rosburg


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


## (determined from "sonar"): model = wh
## (determined from "sonar"): frequency = 300
## (determined from "sonar"): instname = wh300
## (determined from "sonar"): pingtype = bb
           beamangle   20
          cruisename   km1715
            datatype   uhdas
             ens_len   120
             fixfile   a_km.gps
           frequency   300
          hcorr_inst   posmv
            instname   wh300
               model   wh
            pingtype   bb
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   nav
               sonar   wh300
            txy_file   a_km.agt
           xducer_dx   -2
           xducer_dy   1
            yearbase   2017



(unless otherwise stated, comments are relative
to root processing directory)

haupia:(wh300)$ 

===================================

this is a linux machine; use little-endian database
(remove all other databases)


(0) remake all the plots

quick_mplplots.py --plots2run all --yearbase 2017


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

    figview.py cal/rotate/*png

There were no gaps in the data!


(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-296)

Number of edited points:  31 out of  33
   amp   = 1.0057  + -0.0027 (t - 280.1)
   phase =   0.10  + -0.0129 (t - 280.1)
            median     mean      std
amplitude   1.0050   1.0057   0.0081
phase       0.0980   0.1031   0.3577
nav - pc    0.0000   0.0645   1.9822
var         0.0010   0.0009   0.0009
min var     0.0010   0.0007   0.0007
delta-u     0.3000   0.0739   4.0380
delta-v    -1.6700  -0.2506   3.5685

Needs editing in later steps.


(3) edit: gautoedit.py ..

    from gautoedit, for every screen do
      - show now
	  - additional manual editing if necessary
	  - list to disk (creates/appends new a*.asc files with new flags)


(4) apply editing

    from dir sonar:

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


(5) apply calibration

correct to third sig fig for amplitude; second for phase 
if both are positive values, enter a positive correction

quick_adcp.py --steps2rerun rotate:navsteps:calib:matfiles --proc_engine python --rotate_amplitude 1.005 --rotate_angle 0.090 --datatype uhdas --auto

tail -20 cal/watertrk/adcpcal.out

** watertrack **  (HOT-296)

Number of edited points:  31 out of  33
   amp   = 1.0007  + -0.0028 (t - 280.1)
   phase =   0.01  + -0.0125 (t - 280.1)
            median     mean      std
amplitude   1.0000   1.0007   0.0082
phase       0.0080   0.0131   0.3582
nav - pc    0.0000  -0.4516   1.3125
var         0.0010   0.0006   0.0006
min var     0.0010   0.0005   0.0006
delta-u     0.3000   0.0739   4.0380
delta-v    -1.6700  -0.2506   3.5685

Looks GOOD
(remember to save)

(6) web plots:

quick_web.py --interactive
cd ../
cat wh300/cruise_info.txt dm_notes_wh300.txt > wh300.txt

ALL done
