Table of Contents
lut - GIPSY 256 color lookup table
lut files are simple ASCII
tables with 3 columns, representing the colors Red, Green and Blue resp,
scaled between 0.0 and 1.0, for 256 responses between a datamin and datamax
(normally taken as 0 to 255.
An example of reading the Red, Green
and Blue responses:
real *coldat[3], *r, *g, *b;
int ncolors, colnum[3];
stream instr = stropen(fn,"r");
colnum[0] = 1; coldat[0] = r = (real *) allocate(256*sizeof(real));
colnum[1] = 2; coldat[1] = g = (real *) allocate(256*sizeof(real));
colnum[2] = 3; coldat[2] = b = (real *) allocate(256*sizeof(real));
ncolors = get_atable(instr,3,colnum,coldat,256);
if (ncolors != 256) error("Problem %d reading %s",ncolors,fn);
The ds9 image display server can read the GIPSY lut
ccdppm(1NEMO)
Peter Teuben
NEMODAT/lut data files, mirrored from GIPSY's $gip_dat/lut
17-dec-03 documentation written (100 years Wright flight) PJT
Table of Contents