LAST CHANGED    : 2024/07/26 21:14:31
CRUISE NAME(S)  : I08S (tn430)
CRUISE DATES    : 2024/02/21 to 2024/04/01
SHIP NAME       : Thomas Thompson
PORTS           : Fremantle, Australia to Port Elizabeth, South Africa
CHIEF SCIENTIST : Bigorre, Sebastien
DATABASE NAME   : aship
DATA FILES      : tt2024_051_25596.raw to tt2024_091_14400.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
                  2024/02/21 07:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/02/21 17:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/02/22 23:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/02/23 19:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/02/24 05:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/02/25 01:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/02/25 11:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/02/25 21:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/02/26 07:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/02/29 15:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/01 01:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/02 07:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/03 13:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/06 01:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/12 07:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/13 13:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/14 19:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/15 15:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/16 01:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/16 11:08:37  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/16 21:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/17 07:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/18 03:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/18 13:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/18 23:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/20 15:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/21 11:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/21 21:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/23 13:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/24 09:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/25 15:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/26 01:08:36  off  120  70   2   5  2  44.88   0.00 0001
                  2024/03/26 11:08:36  off  120  70   2   5  2  44.88   0.00 0001

HEADING         :
     PRIMARY    : heading from gyro1
     CORRECTION : heading correction from posmv5

POSITIONS       : gps positions from seapath

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

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

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

COMMENTS        : The dataset was reprocessed using the seapath as the position instrument,
                  the gyro as the reliable heading instrument, and the posmv as the accurate
                  heading instrument. Bad data was removed, then the uvship algorithm was
                  applied.

PROCESSOR       : James Ash

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

## (determined from "sonar"): model = wh
## (determined from "sonar"): frequency = 300
## (determined from "sonar"): instname = wh300
## (determined from "sonar"): pingtype = bb
             badbeam   None
          beam_order   None
           beamangle   20
          configtype   python
          cruisename   TN430
            datatype   uhdas
              dbname   aship
             ens_len   120
             fixfile   aship.gps
          hcorr_inst   posmv5
               pgmin   50
            pingpref   None
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   nav
               sonar   wh300
            txy_file   aship.agt
           xducer_dx   3
           xducer_dy   -14
            yearbase   2024

==================================================
POST PROCESSING STEPS:
==================================================

-----------------------------------------------------------------------
### 1. Check visual oddities
-----------------------------------------------------------------------

### Run this: (to look for gaps in the cruise track)
plot_nav.py nav/a*.gps
figview.py
dataviewer.py

### Run this: (to check watertrack calibration after patching hcorr)
catwt.py
catxy.py

-----------
**transducer-gps offset**
-----------
guessing ADCP (dx=starboard, dy=fwd) meters from GPS
positions from aship.agt
calculation done at 2024/08/24 02:43:46
xducer_dx = 0.238363
xducer_dy = -0.164236
signal = 1729.724420
-----------

   **watertrack**
-----------
Number of edited points: 133 out of 145

            median     mean      std
amplitude   1.0040   1.0028   0.0137
phase       0.0030   0.0332   0.6482
-----------

-----------------------------------------------------------------------
### 2. ADCP calibration
-----------------------------------------------------------------------

# Not needed.

-----------------------------------------------------------------------
### 3. Editing points
-----------------------------------------------------------------------

### Run this: (to go through the dataset and edit out bad values)
dataviewer.py -e

### Run this: (to recompute the calibration residuals)
quick_adcp.py --steps2rerun navsteps:calib --auto

# Here I ran the uv ship algorithm.
quick_adcp.py --steps2rerun navsteps:calib --refuv_source uvship --auto

### Run this: (to recompute the calibration residuals)
quick_adcp.py --steps2rerun navsteps:calib --auto

catxy.py
catwt.py

   **watertrack**
-----------
Number of edited points: 132 out of 145

            median     mean      std
amplitude   1.0040   1.0029   0.0135
phase      -0.0040   0.0306   0.6468
-----------

**transducer-gps offset**
-----------
guessing ADCP (dx=starboard, dy=fwd) meters from GPS
positions from aship.agt
calculation done at 2024/08/29 19:49:45
xducer_dx = 0.343628
xducer_dy = 0.068846
signal = 1729.724420
-----------

-----------------------------------------------------------------------
### 4. Check edited, calibrated dataset against original dataset
-----------------------------------------------------------------------

### Run this: (Has this corrected the problems in the original?)
dataviewer.py -c . ../wh300.orig

### Run this to compare this sonar with another sonar (after both are finished)
dataviewer.py -c ../os75nb.uvship  .

# There is a slight difference between the os75 and wh300. This is
# likely caused by the difference in resolution of the sonars.

-----------------------------------------------------------------------
### 5. Make plots and files
-----------------------------------------------------------------------

# To section the data.
mkdir webpy
cp ../os75nb/webpy/sectioninfo.txt .
quick_web.py --redo

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

### Run this to extract a netCDF file
adcp_nc.py adcpdb contour/wh300 TN430 wh300 --ship_name "Thomas Thomson"

### Run this to look at the headers
ncdump -h contour/wh300.nc

# -----------------------------------------------------------------------

## (determined from "sonar"): model = wh
## (determined from "sonar"): frequency = 300
## (determined from "sonar"): instname = wh300
## (determined from "sonar"): pingtype = bb
             badbeam   None
          beam_order   None
           beamangle   20
          configtype   python
          cruisename   TN430
            datatype   uhdas
              dbname   aship
             ens_len   120
             fixfile   aship.gps
          hcorr_inst   posmv5
               pgmin   50
            pingpref   None
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   uvship
               sonar   wh300
            txy_file   aship.agt
           xducer_dx   3
           xducer_dy   -14
            yearbase   2024
