LAST CHANGED    : 2016/02/12 18:33:25
CRUISE NAME(S)  : km1602, hot281
CRUISE DATES    : 2016/02/08 to 2016/02/12
SHIP NAME       : Kilo Moana
PORTS           : Honolulu, HI to Honolulu, HI
CHIEF SCIENTIST : Tara Clemente
DATABASE NAME   : a_km
DATA FILES      : km2016_038_76575.raw to km2016_042_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      : 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
                  2016/02/08 21:21:19  off  300  75  24   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     : original transducer orientation: 44.55
                  transducer depth: 7.0
                  (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 = os
## (determined from "sonar"): frequency = 38
## (determined from "sonar"): pingtype = nb
## (determined from "sonar"): instname = os38
           beamangle   30
          cruisename   km1602
            datatype   uhdas
             ens_len   300
             fixfile   a_km.gps
           frequency   38
          hcorr_inst   posmv
            instname   os38
               model   os
            pingtype   nb
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   nav
               sonar   os38nb
            txy_file   a_km.agt
           xducer_dx   16
           xducer_dy   6
            yearbase   2016



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

haupia:(os38nb)$ 

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

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


(0) remake all the plots

quick_mplplots.py --plots2run all --yearbase 2016

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

    figview.py cal/rotate/*png

There WERE some gaps.


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

Number of edited points:  35 out of  36
   amp   = 1.0023  + 0.0016 (t -  40.7)
   phase =  -0.03  + 0.0058 (t -  40.7)
            median     mean      std
amplitude   1.0040   1.0023   0.0087
phase      -0.0110  -0.0334   0.4580
nav - pc    2.0000   2.3429   3.8649
var         0.0020   0.0021   0.0017
min var     0.0010   0.0017   0.0013
delta-u     1.6700   0.4160   4.4516
delta-v    -0.0900   0.0880   3.6626


(this will need amplitude and phase adjustment 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

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

tail -20 cal/watertrk/adcpcal.out

** watertrack **  (HOT-281)

Number of edited points:  36 out of  37
   amp   = 0.9987  + 0.0017 (t -  40.8)
   phase =  -0.01  + 0.0130 (t -  40.8)
            median     mean      std
amplitude   1.0010   0.9987   0.0088
phase       0.0070  -0.0057   0.4634
nav - pc    1.0000   1.8611   3.0998
var         0.0020   0.0021   0.0015
min var     0.0010   0.0016   0.0013
delta-u     1.3850   0.4350   4.3890
delta-v    -0.3050   0.0011   3.6474

Looks GOOD (remember to save)


(6) web plots:

mkdir webpy
cp ../wh300/webpy/sectinfo.txt webpy/

quick_web.py --redo
cd ../
cat os38nb/cruise_info.txt dm_notes_os38nb.txt > os38nb.txt





ALL done
