source: Roms_tools/m_map/m_gshhs_i.m @ 2

Last change on this file since 2 was 1, checked in by cholod, 13 years ago

import Roms_Agrif

File size: 1.2 KB
Line 
1function m_gshhs_i(varargin);
2% M_GSHHS_I Add a coastline to a given map using the 'intermediate' resolution of
3%           the Global Self-consistant Hierarchical High-resolution
4%           Shorelines.
5%
6%         M_GSHHS_I( (standard line option,...,...) ) draws the coastline
7%         as a simple line.
8%         M_GSHHS_I('patch' ( ,standard patch options,...,...) ) draws the
9%         coastline as a number of patches.
10%
11%         M_GSHHS_I('save',FILENAME) saves the extracted coastline data
12%         for the current projection in a file FILENAME. This allows
13%         speedier replotting using M_USERCOAST(FILENAME).
14%   
15%         See also M_PROJ, M_GRID, M_COAST, M_GSHHS_L, M_GSHHS_H, M_GSHHS_C
16%         M_USERCOAST   
17
18% Rich Pawlowicz (rich@ocgy.ubc.ca) 15/June/98
19%
20%
21% This software is provided "as is" without warranty of any kind. But
22% it's mine, so you can't sell it.
23
24
25FILNAME='private/gshhs_i.b';
26
27% Set current projection to geographic
28Currentmap=m_coord('set');
29m_coord('geographic');
30
31
32if length(varargin)>1 & strcmp(varargin{1},'save'),
33  [ncst,Area,k]=mu_coast('i',FILNAME);
34  eval(['save ' varargin{2} ' ncst k Area']);
35else
36  mu_coast('i',FILNAME,varargin{:},'tag','m_gshhs_i');
37end;
38
39m_coord(Currentmap.name);
40
Note: See TracBrowser for help on using the repository browser.