  1.  NAME

  uvprf2 - Plot velocity profiles and navigation data

  2.  SYNOPSIS

  uvprf2(year_base, nav_file, prf_file, plot_title, note, plot_mean,
  plot_ship )

  3.  DESCRIPTION

  This function is used by uvprf(1m) for plotting velocity profiles and
  navigation data. Absolute currents are calculated and the resulting
  profiles are plotted together. It reads data from a navigation and a
  profile file. The navigation file must have the following columns:

  1. time

  2. longitude

  3. latitude

  4. U ship

  5. V ship

     The profile files contains the concatenated profiles with the
     following columns:

  1. depth

  2. U relative

  3. V relative

     These two files may be easily generated by xtract(1m).

  4.  PARAMETERS

     year_base
        Year base used in input files.

     nav_file
        Name of navigation file.

     prf_file
        Name of profile file. Note that depth values must be
        monotonically increasing for each profile (this is necessary for
        the function to split out each profile from the file).

     plot_title
        Title for the plot.

     note
        Additionnal string to plot on the lower left corner of the plot.

     plot_mean
        If non-zero,plot a mean velocity profile. This assumes that
        profile data are given for the same depths.

     plot_ship
        If non-zero,also plot information about navigation.

  5.  OUTPUT

  This function generates the following files:

     uvprf.ps
        Postscript file with the velocity profile plots.

     shipprf.ps
        Postscript file with the navigation plot (if selected).

  6.  AUTHORS

  Pierre Jaccard, Geophysical Institute, University of Bergen, 1999

