Coloring 32bit floating point rasters
A.Th.C. Hulst
hulst at ARGOSS.NL
Mon Jul 30 00:57:53 PDT 2007
On Saturday 28 July 2007 16:15:24 Frank Warmerdam wrote:
> Samuel Hiatt wrote:
> > Hi all!
> >
> > I am trying to serve up several floating point 32-bit rasters and I am
> > curious to know the best way to render these images in color. I've read
> > that it is possible to use a LUT to define the colors of a pseudo-color
> > image, but only for byte data (256 colors).
> >
> > Has anyone already tackled this problem of displaying these float32
> > rasters? What do y'all think is the best way to do it?
I've displayed floating point data with the latest SVN version using the LUT
directive. That works pretty well.
LAYER
NAME "Hs"
DATA "netCDF:/var/www/mapserver/data/windwave/ww3_output.nc:sign_wave_height"
PROCESSING "SCALE=0.1,10"
PROCESSING "SCALE_BUCKETS=200"
PROCESSING "BANDS=1,1,1"
PROCESSING "LUT_1=96:0,157:255,221:255,255:240"
PROCESSING "LUT_2=29:0,93:255,157:255,221:0,255:0"
PROCESSING "LUT_3=1:255,93:255,157:0,255:0"
TYPE RASTER
STATUS ON
OFFSITE 0 0 0
TEMPLATE "rquery.html"
END
Cheers,
Sander
More information about the MapServer-users
mailing list