From 2c52b3d110b44f76bb1495199bcd142b1310d616 Mon Sep 17 00:00:00 2001
From: Jacques Grelet <jacques.grelet@ird.fr>
Date: Tue, 8 Jan 2008 15:02:57 +0000
Subject: [PATCH] utilise les conventions NetCDF V1.4

---
 tsg_util/plotmap.m | 49 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 tsg_util/plotmap.m

diff --git a/tsg_util/plotmap.m b/tsg_util/plotmap.m
new file mode 100644
index 0000000..c3eb12c
--- /dev/null
+++ b/tsg_util/plotmap.m
@@ -0,0 +1,49 @@
+function tsg_plotmap(hTsgGUI, hAxes)
+% Function to plot the earth map and ship trackline
+%
+% Input
+% -----
+% hTsgGUI ............ Handel to the main user interface
+% hPlotAxes .......... Handels to the graphic axes
+%
+% Output
+% ------
+%
+% Library : 'M_MAP' 
+%
+% PROBLEM NOT YET RESOLVED
+%    Does M_MAP use 0-360° or -180°-180° covention ?
+% $Id$
+
+% Retrieve named application data
+% -------------------------------
+tsg = getappdata( hTsgGUI, 'tsg_data');
+
+% Positionning the right axes
+% ----------------------------
+axes(hAxes(4));
+
+% Use of Mercator projection
+% --------------------------
+m_proj('Mercator','lat',[-70 70],'long',[-180 180]);
+
+% detailed coast lines
+% m_gshhs_i('patch',[.7 .7 .7]);
+
+% Less detailed coast lines
+% m_gshhs_l('patch',[.7 .7 .7]);
+
+% Lesser  detailed coast lines
+% ----------------------------
+m_coast('patch',[.7 .7 .7]);
+
+m_grid('box','fancy','tickdir','in', ...
+       'ytick', [-70:20:70],...
+       'xtick', [-180:40:180],...
+       'Fontsize', [10]);
+            
+% Plot the ship track - Check if LAT-LON in deg-decimal
+% -----------------------------------------------------
+m_line(tsg.LONX,tsg.LATX,'marker','.','markersize',3,'color','b');
+
+end
-- 
GitLab