X-Git-Url: http://pileus.org/git/?p=aweather;a=blobdiff_plain;f=src%2Faweather-colormap.c;fp=src%2Fplugins%2Fradar-colormap.c;h=0fb289a76106ab1351631c1c0f0f55c5e8064255;hp=03b2f32816ae1ff58f509d438f80f534995f3078;hb=c0e52fc233205fb646326a0efd86e4359f51d96c;hpb=b5a1d6f3fdbfdd1a4063d8b20efcfee597d2fd98 diff --git a/src/plugins/radar-colormap.c b/src/aweather-colormap.c similarity index 96% rename from src/plugins/radar-colormap.c rename to src/aweather-colormap.c index 03b2f32..0fb289a 100644 --- a/src/plugins/radar-colormap.c +++ b/src/aweather-colormap.c @@ -1,5 +1,22 @@ -#include -#include "radar.h" +/* + * Copyright (C) 2009-2010 Andy Spencer + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include +#include "aweather-colormap.h" //{0xcc,0xff,0xff,0xff},{0xcc,0xff,0xff,0xff}, {0xcc,0xff,0xff,0xff}, //{0xcc,0x99,0xcc,0xff},{0xcc,0x99,0xcc,0xff}, {0xcc,0x99,0xcc,0xff}, @@ -7,8 +24,8 @@ //{0x66,0x33,0x66,0xff},{0x66,0x33,0x66,0xff}, {0x66,0x33,0x66,0xff}, //{0xcc,0xcc,0x99,0xff},{0xcc,0xcc,0x99,0xff}, {0xcc,0xcc,0x99,0xff}, //{0x99,0x99,0x66,0xff},{0x99,0x99,0x66,0xff}, {0x99,0x99,0x66,0xff}, -colormap_t colormaps[] = { - {"Reflectivity", +AWeatherColormap colormaps[] = { + {DZ_INDEX, "Reflectivity", {{0x00,0x00,0x00,0x00}, // 0 dBZ {0x00,0x00,0x00,0x00}, // 1 dBZ {0x00,0x00,0x00,0x00}, // 2 dBZ @@ -265,7 +282,7 @@ colormap_t colormaps[] = { {0x00,0x00,0x00,0x00}, {0x00,0x00,0x00,0x00}, {0x00,0x00,0x00,0x00}}}, - {"Velocity", + {VR_INDEX, "Velocity", { {0x88,0x88,0x88,0x00}, // 0 {0x98,0x77,0x77,0xff}, // 1 @@ -524,7 +541,7 @@ colormap_t colormaps[] = { {0x7c,0x97,0x7b,0xff}, // -2 {0x7c,0x97,0x7b,0xff}, // -1 }}, - {"Spectrum width", + {SW_INDEX, "Spectrum width", {{0x00,0x00,0x00,0x00}, {0x00,0x00,0xa0,0xff}, {0x00,0x00,0xd0,0xff}, @@ -781,5 +798,5 @@ colormap_t colormaps[] = { {0x00,0x00,0x00,0xff}, {0x00,0x00,0x00,0xff}, {0x00,0x00,0x00,0xff}}}, - {NULL, {{}}}, + {0, NULL, {{}}}, };