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