adcp_tide(1m)

NAME
adcp_tide - Interpolate tide data to ADCP positions and time

USAGE
adcp_tide

DESCRIPTION
This Matlab script interpolates first all U and V tide components at ADCP positions for all times. These are then interpolated at ADCP ensemble times. The output file can be used to generate a vector plot of the tidal current at ADCP ensembles, and to detide ADCP currents. Tidal data are read from five different input files: Time in decimal days (suffix .t) Longitude in degrees (suffix .lon) Latitude in degrees (suffix .lat) Eastward tidal component (suffix .u) Northward tidal component (suffix .v) ADCP ensemble times can be read from the output of the getnav utility. See below for the input .

PARAMETERS
The following parameters must be edited before running the script:

year_base
    Year base corresponding to input decimal days

tide_file
    Root name of ASCII files containing tide data. Extensions will be added automatically.

adcp_file
    Name of a file with ADCP time,longitude and latitude as output by utility getnav.

out_file
    Name of output file. See below for its .

INPUT FILE FORMAT
Input data have only one column with one data for each grid point. The grid defines a two dimensional geographical area with associated longitude, latitude, eastward and northward currents values at each point. These data must be listed in the same order in each file. If several times are listed in the time file, current values must repeat themselves in the corresponding files in the same order as well. All of these files can be generated with the xtract(1) utility.

OUTPUT FILE FORMAT
The generated file has the following columns: ADCP time Longitude Latitude Eastward tidal component Northward tidal component

SEE ALSO
xtract(1)

AUTHORS
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999