LAST CHANGED    : 2021/11/02 17:09:51
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      : 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
                  2021/10/27 20:54:22  off  300 115  12   7 16  44.55   0.00 0001
                  2021/10/28 21:54:23  off  300 115  12   7 16  44.55   0.00 0001
                  2021/10/30 23:54:25  off  300 115  12   7 16  44.55   0.00 0001
                  2021/11/01 00:54:27  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.088
                  final transducer angle is:
                       (original transducer angle) - (rotate_angle) 44.55- (-0.088) = 44.638
                  applied scale factor 1.002
                  additional scale factor (none)

COMMENTS        : gaps in heading correction? One small set
                  scattering layers? Not bad
                  bubbles? Not bad
                  underway bias? Minimal
                  
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   km2116
            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   2021


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

codaspy:(os38bb)$ 

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


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

patch_hcorr.py

- Water Track Calibration:
            median     mean      std
amplitude   1.0020   1.0010   0.0077
phase      -0.0840  -0.0105   0.3854



---New Calibration---
- Water Track Calibration:
            median     mean      std
amplitude   1.0020   1.0012   0.0076
phase      -0.0880  -0.0084   0.3878


Ran correction:
quick_adcp.py --steps2rerun rotate:apply_edit:navsteps:calib --rotate_amplitude 1.002 --rotate_angle -0.088  --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

Number of edited points:  49 out of  53
   amp   = 0.9992  + -0.0002 (t - 302.9)
   phase =   0.08  + -0.1083 (t - 302.9)
            median     mean      std
amplitude   1.0000   0.9992   0.0074
phase      -0.0030   0.0772   0.3805
nav - pc   -1.0000  -1.1429   2.6458
var         0.0010   0.0008   0.0005
min var     0.0010   0.0007   0.0005
delta-u    -0.0400  -0.0033   3.4501
delta-v    -0.0300  -0.0800   3.4100


Continuing with editing, despite median/mean differences.


(3) gautoedit.py

Really good auto-editing.  Removed just a few data points.


(4) apply editing

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

(5) rechecking calibration

tail -20 cal/watertrk/adcpcal.out

Number of edited points:  49 out of  52
   amp   = 0.9992  + -0.0002 (t - 302.9)
   phase =   0.08  + -0.1083 (t - 302.9)
            median     mean      std
amplitude   1.0000   0.9992   0.0074
phase      -0.0030   0.0772   0.3805
nav - pc   -1.0000  -1.1429   2.6458
var         0.0010   0.0008   0.0005
min var     0.0010   0.0007   0.0005
delta-u    -0.0400  -0.0033   3.4501
delta-v    -0.0300  -0.0800   3.4100


Takin' it.


(6) web plots (make sure to save this file now):

Making 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
