LAST CHANGED    : 2024/07/26 20:50:02
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      : os75

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:11:37  off  300  60  16   5  8  59.90   0.00 0001

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

POSITIONS       : gps positions from seapath

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

                  (2) scale factor
                      original scale factor 1
                      additional scale factor: 1.007

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

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 points
                  were removed, then the uvship algorithm was applied.

PROCESSOR       : James Ash

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

## (determined from "sonar"): model = os
## (determined from "sonar"): frequency = 75
## (determined from "sonar"): instname = os75
## (determined from "sonar"): pingtype = nb
             badbeam   None
          beam_order   None
           beamangle   30
          configtype   python
          cruisename   TN430
            datatype   uhdas
              dbname   aship
             ens_len   300
             fixfile   aship.gps
          hcorr_inst   posmv5
               pgmin   50
            pingpref   None
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   nav
               sonar   os75nb
            txy_file   aship.agt
           xducer_dx   1
           xducer_dy   -8
            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


Number of edited points: 147 out of 149
   amp   = 1.0065  + -0.0002 (t -  75.5)
   phase =   0.05  + 0.0004 (t -  75.5)
            median     mean      std
amplitude   1.0070   1.0065   0.0089
phase       0.0120   0.0540   0.3984


----------------------------------------------------------------------
### 2. ADCP calibration
----------------------------------------------------------------------
 quick_adcp.py --steps2rerun rotate:navsteps:calib --rotate_amplitude 1.0065 --auto

   **watertrack**
------------
Number of edited points: 147 out of 149
   amp   = 1.0001  + -0.0002 (t -  75.5)
   phase =   0.05  + 0.0000 (t -  75.5)
            median     mean      std
amplitude   1.0010   1.0001   0.0087
phase       0.0030   0.0517   0.3985
------------


----------------------------------------------------------------------
### 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

# I ran the uvship algorithm and recalculated the calibration coeficients.

quick_adcp.py --steps2rerun navsteps:calib --refuv_source uvship --auto

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

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

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

# Unfortunatly there is a slight difference between the os75 and wh300.
# This may be related to the suggested dy calibration for the os75nb.

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

# Section off the datasets.
quick_web.py --interactive

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

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

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

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

## (determined from "sonar"): model = os
## (determined from "sonar"): frequency = 75
## (determined from "sonar"): instname = os75
## (determined from "sonar"): pingtype = nb
             badbeam   None
          beam_order   None
           beamangle   30
          configtype   python
          cruisename   TN430
            datatype   uhdas
              dbname   aship
             ens_len   300
             fixfile   aship.gps
          hcorr_inst   posmv5
               pgmin   50
            pingpref   None
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   uvship
               sonar   os75nb
            txy_file   aship.agt
           xducer_dx   1
           xducer_dy   -8
            yearbase   2024
