]> Pileus Git - aweather/commit
Add dual-pole support and improve colormap handling
authorAndy Spencer <andy753421@gmail.com>
Sun, 13 Feb 2011 11:00:42 +0000 (11:00 +0000)
committerAndy Spencer <andy753421@gmail.com>
Tue, 15 Feb 2011 13:06:15 +0000 (13:06 +0000)
commit62239c1f2419f1fb7d6adc263b1e11dcefddc737
treedca5d581a36fc1a373f596de3195bea39e058ee2
parent84c9924553482ded8566105d4559088a6ab543ac
Add dual-pole support and improve colormap handling

Add support for dual-pole (KOUN). This should work for the most part.
Some of the dual-pole colormaps are still broken. For KOUN to work, a
recent (unreleased) version of the RSL wsr88d_locations.dat file is
needed.

Use non builtin colormaps. This should make updating colormaps easier.
The colormaps are written in simple flat files, the format is:

  - line 1: Parameter name,  - Reflectivity
  - line 2: Data scale,      - 2
  - line 3: Data shift,      - 31
  - line 4: RGBA color data, - 255 207 0 255
  - line n: Same as line 4 for however many lines are needed

The scale and shift parameters map the parameter values to a colortable
index. The index is clamped to the number of color data lines.
14 files changed:
data/Makefile.am
data/colors/dr.clr [new file with mode: 0644]
data/colors/dz.clr [new file with mode: 0644]
data/colors/ph.clr [new file with mode: 0644]
data/colors/rh.clr [new file with mode: 0644]
data/colors/sw.clr [new file with mode: 0644]
data/colors/vr.clr [new file with mode: 0644]
src/Makefile.am
src/aweather-location.c
src/plugins/Makefile.am
src/plugins/level2.c
src/plugins/radar-info.c
src/plugins/radar-info.h
src/plugins/radar.c