]> Pileus Git - aweather/blobdiff - src/aweather-colormap.c
Move RSL file handling to level2 object
[aweather] / src / aweather-colormap.c
similarity index 96%
rename from src/plugins/radar-colormap.c
rename to src/aweather-colormap.c
index 03b2f32816ae1ff58f509d438f80f534995f3078..0fb289a76106ab1351631c1c0f0f55c5e8064255 100644 (file)
@@ -1,5 +1,22 @@
-#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},
@@ -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, {{}}},
 };