tsvel2

PURPOSE

TS Reads a scalar variable at a particular station from TSEPIC.CDF files.

SYNOPSIS

function [w,jd,z]=tsvel2(cdf,ista,zuser);

DESCRIPTION

TS Reads a scalar variable at a particular station from TSEPIC.CDF files.
Returns data from all sigma layers, or intepolates to specified depths.
USAGE:
1. [u,jd,z]=tsvel2(cdf,sta); to return a matrix containing time,depth
information for variable "var" at station
sta for all sigma levels.
2. [u,jd]=tsvel2(cdf,sta,depths);
to return a matrix containing time,depth
information for variable "var" at station
sta for depths specified in vector "depths".
Example: [t,jd]=tsvel2('tsepic.cdf',2,[-2 -10 -24]);
Returns a matrix containing temperature at Station 2 at
2, 10 and 24 m below surface. jd is the julian day vector.
If the User specifies positive depths, they denote distance above bottom
instead of distance below the free surface