-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathm_coast.m
30 lines (24 loc) · 926 Bytes
/
m_coast.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function h=m_coast(varargin);
% M_COAST Add a coastline to a given map.
% M_COAST draw a coastline as either filled patches (slow) or
% lines (fast) on a given projection. It uses a coastline database with
% a resolution of about 1/4 degree.
%
% M_COAST( (standard line option,...,...) ) or
% M_COAST('line', (standard line option,...,...) ) draws the coastline
% as a simple line.
% M_COAST('patch' ( ,standard patch options,...,...) ) draws the
% coastline as a number of patches.
%
%
% See also M_PROJ, M_GRID
% Rich Pawlowicz (rich@ocgy.ubc.ca) 15/June/98
%
%
% This software is provided "as is" without warranty of any kind. But
% it's mine, so you can't sell it.
% Set current projection to geographic
Currentmap=m_coord('set');
m_coord('geographic');
h=mu_coast('default',varargin{:},'tag','m_coast');
m_coord(Currentmap.name);