+static void load_color_table(char *table)
+{
+ /* TODO: replace this with a better color table */
+ g_message("loading color table");
+ if (g_str_equal(table, "Velocity"))
+ RSL_load_vel_color_table();
+ else if (g_str_equal(table, "Spectrum width"))
+ RSL_load_sw_color_table();
+ else
+ RSL_load_refl_color_table();
+ RSL_get_color_table(RSL_RED_TABLE, red, &nred);
+ RSL_get_color_table(RSL_GREEN_TABLE, green, &ngreen);
+ RSL_get_color_table(RSL_BLUE_TABLE, blue, &nblue);
+}
+