LAST CHANGED    : 2024/06/07 13:59:33
CRUISE NAME(S)  : rr2407
CRUISE DATES    : 2024/06/06 to 2024/06/07 
SHIP NAME       : R. Revelle
PORTS           : Morehead City, NC to Woods Hole, MA
CHIEF SCIENTIST : Magdalena Andres
DATABASE NAME   : a_rr
DATA FILES      : rr2024_157_72859.raw to rr2024_162_50400.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      : os150

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
                  2024/06/06 20:17:20  off  180  60   8   6  4  41.78   0.00 0001

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

POSITIONS       : gps positions from seapath380

CALIBRATION     : (check original processing parameters)
                  (1) transducer alignment
                      original transducer alignment: 41.78
                      additional rotation 0
                      final transducer angle is:
                           (original transducer angle) - (rotate_angle)

                  (2) scale factor
                      original scale factor 1
                      additional scale factor 1.0055

                  (3) ADCP (dx=starboard, dy=fwd) meters from GPS
                    original:        xducer_dx=0          xducer_dy=0
                    correction           -1                 9
                    final offset         -1                 9
                         final = original +  corrections


COMMENTS        : We reprocessed data incrementally with no bottom detection in order
                  to recover data that was lost by incorrectly identifying the bottom.
                  After editing, applied a correction to the gps position in relation
                  to the adcp transducer.

PROCESSOR       : A.S. Genz


--- original processing parameters from dbinfo.txt ----------



#
# written 2024/06/08 17:48:07
# this file contains CODAS quick_adcp.py info
#name, value pairs
#--------------------
## (determined from "sonar"): model = os
## (determined from "sonar"): frequency = 150
## (determined from "sonar"): instname = os150
## (determined from "sonar"): pingtype = nb
             badbeam   None
          beam_order   None
           beamangle   30
          configtype   python
          cruisename   RR2407
            datatype   uhdas
              dbname   aship
             ens_len   180
             fixfile   aship.gps
          hcorr_inst   seapath380
               pgmin   50
            pingpref   None
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   nav
               sonar   os150nb
            txy_file   aship.agt
           xducer_dx   -1
           xducer_dy   9
            yearbase   2024

==================================================
POST PROCESSING STEPS:
==================================================
Data was reprocessed incrementally throughout the cruise.  The q_py.cnt code was
updated to include the following:
--incremental
--py_gbindirbase gbin
--max_search_depth -1  # do not look for the bottom
--ens_len 180
---------------------
### 2. ADCP calibration
---------------------
Once editing was completed, I calibrated the dataset
### Run this: (to check dxdy statistics calibration after patching hcorr)
catxy.py Original
            **transducer-gps offset**
        -----------
        guessing ADCP (dx=starboard, dy=fwd) meters from GPS
        positions from aship.gps
        calculation done at 2024/06/11 15:03:03
        xducer_dx = -0.939103
        xducer_dy = 9.222461
        signal = 776.907132
        -----------
# apply offset
quick_adcp.py --steps2rerun navsteps:calib --xducer_dx -1 --xducer_dy 9 --auto

#check calibration
catxy.py
#Updated
        **transducer-gps offset**
        -----------
        guessing ADCP (dx=starboard, dy=fwd) meters from GPS
        positions from aship.agt
        calculation done at 2024/06/11 15:19:16
        xducer_dx = -0.126785
        xducer_dy = 0.485872
        signal = 776.904017
        -----------

### Run this: (to check watertrack calibration after applying horizontal offset)
catwt.py
#Original
        **watertrack**
        -----------
        Number of edited points:  44 out of  45

                    median     mean      std
        amplitude   1.0050   1.0063   0.0054
        phase      -0.0285   0.0052   0.3316
        -----------

# apply scale factor
quick_adcp.py --steps2rerun rotate:navsteps:calib --rotate_amplitude 1.0055 --auto

# check
catwt.py
#UPDated
            **watertrack**
        -----------
        Number of edited points:  45 out of  45

                    median     mean      std
        amplitude   0.9990   1.0004   0.0069
        phase      -0.0230   0.0142   0.3366
        -----------


-------------------------
### 6. Make plots and files
-------------------------

### Run this:

quick_web.py --redo --interactive
open webpy/index.html


### Run this to extract matlab files
quick_adcp.py --steps2rerun matfiles --auto

### Run this to extract a netCDF file
adcp_nc.py adcpdb/aship contour/os150nb  RR2407 os150nb --ship_name "R. Revelle"
    ncdump -h contour/os150nb.nc
### Run this to look at the headers
ncdump contour/os150nb.nc -h