%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%                    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 plot_TSG
%%
%% Plots TSG data superimposed with satellite SST
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 27/10/15 : louise.rousselet@mio.osupytheas.fr : creation 
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function plot_TSG(fname)

	fid=fopen(fname);
	data = textscan(fid,'%*s %*s %s %s %*s %f %f %*s %f %f %*s %*s %*s %*s %*s %*s %*s %*s %f %*s %*s %f %*[^\n]','delimiter',',','HeaderLines',9);
	fclose(fid)

	date=data{1};
	hour=data{2};
	lat=data{3};
	lat_min=data{4};
	lon=data{5};
	lon_min=data{6};
	temp_tsg=data{7};
	sal_tsg=data{8};

	lat_tsg=degmin_to_decideg(lat,lat_min);	
	lon_tsg=degmin_to_decideg(lon,lon_min);

	m_scatter(lon_tsg,lat_tsg,30,temp_tsg,'filled');

return
