This fixes a bug when using correlation coefficient
extern AWeatherColormap colormaps[];
extern AWeatherColormap colormaps[];
-static inline guint8 *colormap_get(AWeatherColormap *colormap, int value)
+static inline guint8 *colormap_get(AWeatherColormap *colormap, float value)
{
int idx = value * colormap->scale + colormap->shift;
return colormap->data[CLAMP(idx, 0, colormap->len)];
{
int idx = value * colormap->scale + colormap->shift;
return colormap->data[CLAMP(idx, 0, colormap->len)];