LAST CHANGED    : 2015/07/22 16:30:02
CRUISE NAME(S)  : km1512, hot274
CRUISE DATES    : 2015/07/18 to 2015/07/22
SHIP NAME       : Kilo Moana
PORTS           : Honolulu, HI to Honolulu, HI
CHIEF SCIENTIST : Dan Sadler
DATABASE NAME   : a_km
DATA FILES      : km2015_198_80946.raw to km2015_202_57600.raw

STATUS          :  to do                           done
                  ------                       -----------
                  averaged                       [     ]
                  loaded                         [     ]

                  NOTE: heading correction instrument exists
                        NOTE: time-dependent heading corrections
                        applied IN the ensembles
                        (see   cal/rotate/ens_hcorr.ang)

                  check heading correction       [     ]
                  calibration                    [     ]
                  edited                         [     ]
                  re-check heading correction    [     ]
                  check editing                  [     ]
                  figures                        [     ]

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
                  2015/07/18 22:34:12  off  300 115  12   7 16  44.55   0.00 0001
                  2015/07/19 23:34:08  off  300 115  12   7 16  44.55   0.00 0001
                  2015/07/21 00:34:09  off  300 115  12   7 16  44.55   0.00 0001
                  2015/07/22 01:34:11  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     : 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       : I.M. Persistent


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


## (determined from "sonar"): model = os
## (determined from "sonar"): frequency = 38
## (determined from "sonar"): pingtype = bb
## (determined from "sonar"): instname = os38
           beamangle   30
          cruisename   km1512
            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   2015



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

haupia:(os38bb)$ 

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

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


(0) remake all the plots

quick_mplplots.py --plots2run all --yearbase 2015

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

    figview.py cal/rotate/*png


There were NO 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-274)

Number of edited points:  32 out of  33
   amp   = 0.9984  + 0.0033 (t - 200.9)
   phase =  -0.16  + 0.2223 (t - 200.9)
            median     mean      std
amplitude   0.9990   0.9984   0.0099
phase      -0.1320  -0.1586   0.5967
nav - pc    0.0000  -0.3125   3.7712
var         0.0020   0.0023   0.0017
min var     0.0020   0.0020   0.0018
delta-u    -1.3650  -0.4747   3.7831
delta-v     0.4150   0.0197   3.6017


(this will need amplitude and phase adjustment in later steps)


(3) in directory "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 (in this case os38bb) :

    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_angle -0.132 --datatype uhdas --auto

tail -20 cal/watertrk/adcpcal.out

** watertrack **  (HOT-274)

Number of edited points:  32 out of  33
   amp   = 0.9984  + 0.0034 (t - 200.9)
   phase =  -0.03  + 0.2230 (t - 200.9)
            median     mean      std
amplitude   0.9990   0.9984   0.0099
phase       0.0000  -0.0268   0.5972
nav - pc    0.0000  -0.0938   3.7791
var         0.0020   0.0023   0.0018
min var     0.0020   0.0019   0.0017
delta-u    -1.3650  -0.4747   3.7831
delta-v     0.4150   0.0197   3.6017


Looks GOOD

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