Mapper
get_legend.c
Go to the documentation of this file.
1 #include "prototypes.h"
2 
3 void get_legend(int type,int kscale,float *delim)
4 
5 {
6 
7 extern int maxkscale;
8 int i;
9 
10 float relim[][16]=
11  {{0.01,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0, 1.1, 1.2, 1.3, 1.4, 1.5},
12  {0.01,0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0, 2.2, 2.4, 2.6, 2.8, 3.0},
13  {0.01,0.3,0.6,0.9,1.2,1.5,1.8,2.1,2.4,2.7,3.0, 3.3, 3.6, 3.9, 4.2, 4.5},
14  {0.01,0.3,0.6,1.2,1.8,2.4,3.0,3.6,4.2,4.8,5.4, 6.0, 6.6, 7.2, 7.8, 8.4},
15  {0.01,0.3,1.2,1.2,2.4,3.6,4.8,6.0,7.2,8.4,9.6,10.8,12.0,13.2,14.4,15.6}};
16 
17 float telim[][16]=
18  {{ 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75},
19  { 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95,100,105},
20  { 55, 60, 65, 70, 75, 80, 85, 90, 95,100,105,110,115,120,125}};
21 
22 float dtelim[][16]=
23  {{-35,-30,-25,-20,-15,-10,-05, 0, 05, 10, 15, 20, 25, 30, 35}};
24 
25 float xelim[][16]=
26  {{ 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90}};
27 
28 float welim[][16]=
29  {{ 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75}};
30 
31 if(type==13 || type ==14 || type==15 || type==16) {
32 
33  for(i=0;i<16;i++)
34  delim[i]=relim[kscale][i];
35 
36  maxkscale=5;
37 
38 }
39 
40 else if(type==0 || type ==2 || type==7 || type==9) {
41 
42  for(i=0;i<16;i++)
43  delim[i]=telim[kscale][i];
44 
45  maxkscale=3;
46 
47 }
48 
49 else if(type==1 || type==10) {
50 
51  for(i=0;i<16;i++)
52  delim[i]=dtelim[kscale][i];
53 
54  maxkscale=1;
55 
56  }
57 
58 else if(type==8) {
59 
60  for(i=0;i<16;i++)
61  delim[i]=xelim[kscale][i];
62 
63  maxkscale=1;
64 
65  }
66 
67 else if(type==11) {
68 
69  for(i=0;i<16;i++)
70  delim[i]=welim[kscale][i];
71 
72  maxkscale=1;
73 
74  }
75 
76 }
77 
78 
static int i
void get_legend(int type, int kscale, float *delim)
Definition: get_legend.c:3
int maxkscale
Definition: mapper.c:102
float delim[][16]
Definition: mapper.c:30
int kscale
Definition: mapper.c:101