%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%                    LATEXtools                         %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%  This  file  is  free software ;  it  is distributed  in  %
%%  the hope that  it  will  be  useful,  but  without  any  %
%%  warranty.  You  can  redistribute  it and/or modify  it  %
%%  under  the  terms  of  the  GNU  General Public License  %
%%  as  published  by  the   Free  Software  Foundation  at  %
%%       http://www.gnu.org/copyleft/gpl.html                %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% function load_TSG
%%
%% load TSG data from an .ASC file
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 26/11/2015 AD: modificated to simply read the .mat file prepared by P.Marrec 
%% 25/11/2015 AD: creation 
%% credits : louise.rousselet@mio.osupytheas.fr 
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%function [DATE_TIME,CRUISE_DAY,LON,LAT,SST,SSS,DENS,FLUO,O2_raw_4330]=load_TSG(fname)
function [DATE_TIME,CRUISE_DAY,LON,LAT,SST,SSS,DENS,FLUO,CHLA]=load_TSG(fname)

load(fname)

CRUISE_DAY=DAY;
return

%function [numdate,lat,lon,sst,sss,fluo]=load_TSG(fname)
%
%	fid=fopen(fname);
%	data = textscan(fid,'%s %s %f %f %f %f %f %d %d');
%	fclose(fid);
%
%	date=data{1};
%	hour=data{2};
%
%[ismax,toto]=size(date);
%for is=1:ismax
%numdate=datenum([date{is},hour{is}],'mm/dd/yyyyHH:MM:SS');
%end
%	lat=data{3};
%	lon=data{4};
%	sst=data{5};
%	conductivity=data{6};
%	sss=data{7};
%	fluo=data{8};
%	unknown=data{9};
%
%return
