source: trunk/src/cartemonde1.m @ 82

Last change on this file since 82 was 82, checked in by pinsard, 14 years ago

modif. of headers for manuals hyperlinks improvements

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1% CARTEMONDE1 trace les contours des continents et les frontieres
2
3%+
4% =============
5% cartemonde1.m
6% =============
7%
8% ---------------------------------------------------
9% trace les contours des continents et les frontieres
10% ---------------------------------------------------
11%
12% DESCRIPTION
13% ===========
14%
15% trace les contours des continents et les frontieres.
16%
17% Data of continents and borders are in ``monde.mat``
18%
19% A appeler à la fin de votre programme
20%
21% Ajuster la fenetre spatiale au besoin avec la
22%  fonction AXIS([longmin longmax latmin latmax])
23%
24% EXAMPLES
25% ========
26%
27% ::
28%
29% >> ............ (début de votre programme)
30% >> cartemonde;
31% >> axis ([40 100 0 50]);
32%
33% SEE ALSO
34% ========
35%
36% :ref:`cartemonde.m`
37%
38% TODO
39% ====
40%
41% update borders or replace usage of this module by one provided by matlab
42%
43% EVOLUTIONS
44% ==========
45%
46% $Id$
47%
48%-
49
50% chargement fond carte
51% (contenu : conti, npconti, fronti, npfronti)
52
53status=load('monde.mat','conti','npconti','fronti','npfronti');
54conti=status.conti;
55npconti=status.npconti;
56fronti=status.fronti;
57npfronti=status.npfronti;
58clear status;
59
60% trace fond de carte continents
61[nll,ncc]=size(npconti);
62aa=1;
63bb=0;
64hold on;
65for qi=1:nll,
66  aa=aa+bb;
67  cc=npconti(qi)+(aa-1);
68       cco=plot (conti(aa:cc,1),conti(aa:cc,2),'k');
69       set (cco,'LineWidth',1);          % default=0.5;
70  bb=npconti(qi);
71end
72
73%  tracage des frontieres
74 [nnl,nnc]=size(npfronti);
75 aa=1;
76 bb=0;
77 hold on;
78 for iii=1:nnl,
79   aa=aa+bb;
80   cc=npfronti(iii)+(aa-1);
81%        gg=plot (fronti(aa:cc,1),fronti(aa:cc,2));
82%        set (gg,'Color',[0.5 0.5 0.5],'LineWidth',0.4)
83   bb=npfronti(iii);
84 end
Note: See TracBrowser for help on using the repository browser.