LAST CHANGED    : 2021/11/02 17:11:38
CRUISE NAME(S)  : km2116, hot333
CRUISE DATES    : 2021/10/27 to 2021/11/2
SHIP NAME       : Kilo Moana
PORTS           : Honolulu, HI to Honolulu, HI
CHIEF SCIENTIST : Karin Björkman
DATABASE NAME   : a_km
DATA FILES      : km2021_299_74961.raw to km2021_305_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      : 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
                  2021/10/27 20:51:22  off  120  70   2   7  2  45.45   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.199
                  final transducer angle is:
                       (original transducer angle) - (rotate_angle) 45.45 - (-0.199) = 45.649
                  applied scale factor 1.005
                  additional scale factor (none)

COMMENTS        : gaps in heading correction? A few confined to one little period
                  scattering layers? Not bad
                  bubbles? Not bad
                  underway bias? Minimal
                 

PROCESSOR       : T. Rohrer

--- 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   km2116
            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   2021

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

codaspy:(wh300)$ 

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

(0) remake all the plots

quick_mplplots.py --plots2run all --yearbase 2021


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

    figview.py cal/rotate/*png

[] There were no gaps! 
[X] There WERE some gaps!
One small set of gaps.

Ran patch_hcorr.py

---Original Calibration---
- Water Track Calibration:
            median     mean      std
amplitude   1.0050   1.0040   0.0103
phase      -0.2025  -0.2140   0.4063



---New Calibration---
- Water Track Calibration:
            median     mean      std
amplitude   1.0050   1.0044   0.0103
phase      -0.1990  -0.2193   0.4080


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

Applying correction after heading correction:
quick_adcp.py --steps2rerun rotate:apply_edit:navsteps:calib --rotate_amplitude 1.000 --rotate_angle -0.199 --auto

mber of edited points:  58 out of  60
   amp   = 1.0044  + 0.0015 (t - 302.7)
   phase =  -0.02  + -0.0107 (t - 302.7)
            median     mean      std
amplitude   1.0050   1.0044   0.0103
phase       0.0010  -0.0198   0.4079
nav - pc    0.0000   0.6034   2.1188
var         0.0005   0.0006   0.0007
min var     0.0000   0.0004   0.0006
delta-u    -0.2800  -0.0153   3.3532
delta-v    -0.3700  -0.4452   3.2348

Accidentally used wrong amplitude correction. Rerunning:
quick_adcp.py --steps2rerun rotate:apply_edit:navsteps:calib --rotate_amplitude 1.005 --rotate_angle 0 --auto

Number of edited points:  58 out of  60
   amp   = 0.9995  + 0.0016 (t - 302.7)
   phase =  -0.02  + -0.0047 (t - 302.7)
            median     mean      std
amplitude   1.0000   0.9995   0.0104
phase       0.0010  -0.0152   0.3979
nav - pc    0.0000   0.3276   1.6264
var         0.0000   0.0005   0.0007
min var     0.0000   0.0004   0.0006
delta-u    -0.2800  -0.0236   3.3560
delta-v    -0.3700  -0.4569   3.2439

Perfect!

(3) edit: gautoedit.py
    from gautoedit, for every screen do
	- mark seabed if necessary
	- additional manual editing if necessary
	- apply edits (creates/appends new a*.asc files with new flags)

Minor edits.

(4) apply editing

   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 command (no quotes))

Number of edited points:  58 out of  59
   amp   = 0.9995  + 0.0016 (t - 302.7)
   phase =  -0.02  + -0.0047 (t - 302.7)
            median     mean      std
amplitude   1.0000   0.9995   0.0104
phase       0.0010  -0.0152   0.3979
nav - pc    0.0000   0.3276   1.6264
var         0.0000   0.0005   0.0007
min var     0.0000   0.0004   0.0006
delta-u    -0.2800  -0.0236   3.3560
delta-v    -0.3700  -0.4569   3.2439


Median looks great.

(5) apply calibration

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

No further correction necessary. Split mean/median, as has been typical lately.


(6) web plots:

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

ALL done

