LAST CHANGED    : 2025/02/09 20:52:50
CRUISE NAME(S)  : FKt250110
CRUISE DATES    : 2025/01/13  09:21:18 to 2025/02/09  20:52:28
SHIP NAME       : Falkor (too)
PORTS           : Punta Arenas, Chile to Punta Arenas, Chile
CHIEF SCIENTIST : Patricia Esquete
DATABASE NAME   : a_ftoo
DATA FILES      : ftoo2025_012_33374.raw to ftoo2025_039_72000.raw

STATUS          :  to do                           done
                  ------                       -----------
                  averaged                       [ X ]
                  loaded                         [ X ]
                  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
                  2025/02/06 10:17:28  off  300  75  24   7 16   0.21   0.00 0001

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

POSITIONS       : gps positions from posmv_gps

CALIBRATION     : (check original processing parameters)
                  (1) transducer alignment
                      original transducer alignment: 0.21
                      additional rotation 0.24
                      final transducer angle is: -0.03
                  
                  (2) scale factor
                      original scale factor 1
                      additional scale factor 1.006
                  
                  (3) ADCP (dx=starboard, dy=fwd) meters from GPS
                                    xducer_dx          xducer_dy
                    original:            1                 -10               
                    correction:          0                   0 
                    final offset:        1                 -10 

COMMENTS        : The mission of this cruise was to map the 
                  seafloor near the Antarctic Peninsula. Some 
	          data below the bottom was removed. A 0.24 
                  degree rotation was applied as well as a 
                  scale factor of 1.006 scale factor. Lastly
                  the uvship algorithm was applied.  
                  
PROCESSOR       : Jamie

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

## (determined from "sonar"): model = os
## (determined from "sonar"): frequency = 38
## (determined from "sonar"): instname = os38
## (determined from "sonar"): pingtype = nb
           beamangle   30
          cruisename   FKt250110
            datatype   uhdas
              dbname   a_ftoo
             ens_len   300
             fixfile   a_ftoo.gps
           frequency   38
          hcorr_inst   seapath
            instname   os38
               model   os
            pingtype   nb
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   nav
               sonar   os38nb
            txy_file   a_ftoo.agt
           xducer_dx   1
           xducer_dy   -10
            yearbase   2025

==================================================
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 interpolate for missing heading correction fixes)
cd cal/rotate
patch_hcorr.py
cd ../..

# There existed missing heading corrections patch_hcorr.py was needed and was
# implemented.

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

   **watertrack**  
-----------
Number of edited points: 110 out of 117

            median     mean      std
amplitude   1.0060   1.0077   0.0100
phase       0.2665   0.2817   0.5144
-----------

**transducer-gps offset**
-----------
guessing ADCP (dx=starboard, dy=fwd) meters from GPS
positions from a_ftoo.agt
calculation done at 2025/02/09 20:52:49
xducer_dx = -0.958271
xducer_dy = 1.340558
signal = 1927.685380
-----------

   **bottomtrack**  
-----------
unedited: 3797 points
edited:   1221 points, 2.0 min speed, 2.5 max dev
            median     mean      std
amplitude   1.0008   1.0008   0.0015
phase       0.2409   0.2436   0.1017
-----------

# While the suggested watertrack amplitude adjustment is above the typical
# threshold, the bottom track calibration suggests that it is not.
# With that, a phase calibration is needed. Furthermore, there is some light
# vertical biases that can be adjusted for using the uv ship algorithm. 

--------------------------------------------------------------------------------
### 3. Apply UV-ship
--------------------------------------------------------------------------------

# I apply the uvship algorithm and compared it to the original.
quick_adcp.py --steps2rerun navsteps:calib --refuv_source uvship --auto
dataviewer.py -c os38nb_edit_uv os38nb_og

# Yes, uvship improves the quality of the data. 

--------------------------------------------------------------------------------
### 4. Editing points
--------------------------------------------------------------------------------

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

# Re-check calibrations. 
catxy.py
catwt.py
catbt.py

**transducer-gps offset**
-----------
guessing ADCP (dx=starboard, dy=fwd) meters from GPS
positions from a_ftoo.agt
calculation done at 2025/03/11 01:11:18
xducer_dx = -0.735518
xducer_dy = 1.325758
signal = 1927.685420
-----------

   **watertrack**  
-----------
Number of edited points: 110 out of 118

            median     mean      std
amplitude   1.0060   1.0074   0.0093
phase       0.2405   0.3074   0.6025
-----------

   **bottomtrack**  
-----------
unedited: 3799 points
edited:   1214 points, 2.0 min speed, 2.5 max dev
            median     mean      std
amplitude   1.0007   1.0007   0.0020
phase       0.2457   0.2447   0.1097
-----------

# We will apply the 0.24 rotation as well as a 1.006 amplitude.
quick_adcp.py --steps2rerun rotate:navsteps:calib  --rotate_angle 0.24 --auto
quick_adcp.py --steps2rerun rotate:navsteps:calib --rotate_amplitude 1.006 --auto

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

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

# There are differences that are attributed to differences in the resolution
# of the sonars.

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

### creat the figures. 
mkdir webpy
cp ../wh300/webpy/sectinfo.txt webpy
quick_web.py --redo

### Run this to extract a netCDF file
adcp_nc.py adcpdb contour/os38nb FKt250110 os38nb --ship_name "Falkor (too)"

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

--------------------------------------------------------------------------------
### 7. Final dbinfo. 
--------------------------------------------------------------------------------

## (determined from "sonar"): model = os
## (determined from "sonar"): frequency = 38
## (determined from "sonar"): instname = os38
## (determined from "sonar"): pingtype = nb
           beamangle   30
          cruisename   FKt250110
            datatype   uhdas
              dbname   a_ftoo
             ens_len   300
             fixfile   a_ftoo.gps
           frequency   38
          hcorr_inst   seapath
            instname   os38
               model   os
            pingtype   nb
         proc_engine   python
          ref_method   refsm
     refuv_smoothwin   3
        refuv_source   uvship
               sonar   os38nb
            txy_file   a_ftoo.agt
           xducer_dx   1
           xducer_dy   -10
            yearbase   2025

