-#include <glib.h>
-#include "radar.h"
+/*
+ * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#include <rsl.h>
+#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},
//{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
{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
{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},
{0x00,0x00,0x00,0xff},
{0x00,0x00,0x00,0xff},
{0x00,0x00,0x00,0xff}}},
- {NULL, {{}}},
+ {0, NULL, {{}}},
};