%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%% LATEXtools %%%%%%%%%%%%%%%%%%%%%%%%%
%  load_ADCP_Tethys.m with file from DTInsu ***skaphi.mat
%  adapted to new ADCP (changed in 2015)
%  APetrenko -  March 2017 - English 19
%  First credit 2001 A. Petrenko
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%fname='TFU1904skaphi.mat';
load([dirin_ADCP,fname]);
%load TPB1605skaphi.mat
lon=ensemble(:,14); % longitude nE x 1
lat=ensemble(:,13); % latitude nE x 1
temps=ensemble(:,11);  % in Jour julian day
u=eastCurrentComponent; % East component of current  
				 % nE x 60 (60 prof. Ou bins)
v=northCurrentComponent; % North component of current
u=u/100; % to obtain components in m/s
v=v/100;
amp=speedCurrentComponent/100;  % amplitude 
angle=dirCurrentComponent;  	 % clockwise angle versus Nord
                                 % where the current goes 
zz=19:8:571;   % depth of the ADCP bins in meters