6 static float grey_l[] = {0.0,1.0};
7 static float grey_c[] = {0.0,1.0};
8 static float blank_c[] = {0.0,0.0};
12 static float rain_l[] = {-0.5, 0.0, 0.17, 0.33, 0.50, 0.67, 0.83, 1.0, 1.7};
13 static float rain_r[] = { 0.0, 0.0, 0.0, 0.0, 0.6, 1.0, 1.0, 1.0, 1.0};
14 static float rain_g[] = { 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.6, 0.0, 1.0};
15 static float rain_b[] = { 0.0, 0.3, 0.8, 1.0, 0.3, 0.0, 0.0, 0.0, 1.0};
20 static float heat_l[] = {0.0, 0.2, 0.4, 0.6, 1.0};
21 static float heat_r[] = {0.0, 0.5, 1.0, 1.0, 1.0};
22 static float heat_g[] = {0.0, 0.0, 0.5, 1.0, 1.0};
23 static float heat_b[] = {0.0, 0.0, 0.0, 0.3, 1.0};
28 static float ramp_l[] = {0.0, 0.5, 0.5, 0.7, 0.7, 0.85, 0.85, 0.95, 0.95, 1.0};
29 static float ramp_r[] = {0.0, 1.0, 0.0, 0.0, 0.3, 0.8, 0.3, 1.0, 1.0, 1.0};
30 static float ramp_g[] = {0.0, 0.5, 0.4, 1.0, 0.0, 0.0, 0.2, 0.7, 1.0, 1.0};
31 static float ramp_b[] = {0.0, 0.0, 0.0, 0.0, 0.4, 1.0, 0.0, 0.0, 0.95, 1.0};
36 static float aips_l[] = {0.0, 0.1, 0.1, 0.2, 0.2, 0.3, 0.3, 0.4, 0.4, 0.5,
37 0.5, 0.6, 0.6, 0.7, 0.7, 0.8, 0.8, 0.9, 0.9, 1.0};
38 static float aips_r[] = {0.0, 0.0, 0.3, 0.3, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0,
39 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0};
40 static float aips_g[] = {0.0, 0.0, 0.3, 0.3, 0.0, 0.0, 0.0, 0.0, 0.8, 0.8,
41 0.6, 0.6, 1.0, 1.0, 1.0, 1.0, 0.8, 0.8, 0.0, 0.0};
42 static float aips_b[] = {0.0, 0.0, 0.3, 0.3, 0.7, 0.7, 0.7, 0.7, 0.9, 0.9,
43 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
48 #define A_SIZE(lev) sizeof(lev)/sizeof(lev[0])
72 static Cmap std_cmaps[] = {
73 {
"aips", A_SIZE(aips_l), aips_l, aips_r, aips_g, aips_b},
74 {
"blue", A_SIZE(grey_l), grey_l, blank_c, blank_c, grey_c},
75 {
"green", A_SIZE(grey_l), grey_l, blank_c, grey_c, blank_c},
76 {
"grey", A_SIZE(grey_l), grey_l, grey_c, grey_c, grey_c},
77 {
"heat", A_SIZE(heat_l), heat_l, heat_r, heat_g, heat_b},
78 {
"none", 0, 0, 0, 0, 0},
79 {
"rainbow", A_SIZE(rain_l), rain_l, rain_r, rain_g, rain_b},
80 {
"ramp", A_SIZE(ramp_l), ramp_l, ramp_r, ramp_g, ramp_b},
81 {
"red", A_SIZE(grey_l), grey_l, grey_c, blank_c, blank_c},
83 static int n_std_cmap = A_SIZE(std_cmaps);