LAST CHANGED    : 2018/05/18 20:15:50
CRUISE NAME(S)  : kok1803, hot302
CRUISE DATES    : 2018/05/14 to 2018/05/18
SHIP NAME       : Ka'imikai O Kanaloa
PORTS           : Honolulu, HI to Honolulu, HI
CHIEF SCIENTIST : Dan Sadler
DATABASE NAME   : a_kk
DATA FILES      : kk2018_133_58700.raw to kk2018_137_72000.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
                  2018/05/14 16:23:29  off  120  30   4   4  4  -9.40   0.00 0001
                  2018/05/15 12:23:29  off  120  30   4   4  4  -9.40   0.00 0001

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

POSITIONS       : gps positions from gpsnav

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. Trifonova


--- 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   kok1803
            datatype   uhdas
             ens_len   120
             fixfile   a_kk.gps
           frequency   300
          hcorr_inst   mahrs
            instname   wh300
               model   wh
            pingtype   bb
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   nav
               sonar   wh300
            txy_file   a_kk.gps
           xducer_dx   0
           xducer_dy   0
            yearbase   2018



(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 2018


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

    figview.py cal/rotate/*png

This was a KOK cruise, so no heading corrections.


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

Number of edited points:   5 out of   6
   amp   = 0.9986  + 0.0042 (t - 136.8)
   phase =   0.48  + -0.2056 (t - 136.8)
            median     mean      std
amplitude   0.9990   0.9986   0.0046
phase       0.2640   0.4756   0.5954
nav - pc   -1.0000  -1.2000   0.8367
var         0.0010   0.0016   0.0025
min var     0.0000   0.0012   0.0022
delta-u     0.1800  -0.8920   2.9246
delta-v     2.2000   0.6200   4.8248

Looks good!


(3) edit: gautoedit.py ..
cd edit; gautoedit.py; cd ../
    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
	(if you don't want to sit and hit y for all questions, add "yes | " before the commdand (no quotes))


(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.001 --rotate_angle 0.300 --datatype uhdas --auto

tail -20 cal/watertrk/adcpcal.out

** watertrack **  (HOT-302)

Number of edited points:   5 out of   6
   amp   = 0.9976  + 0.0042 (t - 136.8)
   phase =   0.18  + -0.2069 (t - 136.8)
            median     mean      std
amplitude   0.9980   0.9976   0.0046
phase      -0.0340   0.1782   0.5932
nav - pc   -1.0000  -1.0000   0.7071
var         0.0010   0.0016   0.0025
min var     0.0010   0.0014   0.0021
delta-u     0.1800  -0.8920   2.9246

needs work

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

** watertrack **  (HOT-302)

Number of edited points:   5 out of   6
   amp   = 0.9976  + 0.0042 (t - 136.8)
   phase =   0.18  + -0.2069 (t - 136.8)
            median     mean      std
amplitude   0.9980   0.9976   0.0046
phase      -0.0340   0.1782   0.5932
nav - pc   -1.0000  -1.0000   0.7071
var         0.0010   0.0016   0.0025
min var     0.0010   0.0014   0.0021
delta-u     0.1800  -0.8920   2.9246
delta-v     2.2000   0.6200   4.8248

looks ok


(remember to save)


(6) web plots:

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

ALL done
