| scmapc | stsdas.sobsolete | scmapc |
scmapc -- Convert an SAOimage colormap file to an image.
scmapc saocmap cmapimg
This task converts an SAOimage colormap file to an image. This image may then be passed to the vdisplay.celco task to replicate colors displayed by SAOimage in a color photograph produced with the Celco film recorder. An SAOimage colormap file is a text file containing a functional representation of the colormap used by SAOimage. The data represent "nodes" in graphs of the input pixel value versus output intensity for each color. An optional "gamma" value may be present to modify the linear functional relationship. The output colormap is a standard IRAF image. The rows in this 256 x 3 image represent the red, green, and blue maps, respectively, containing floating point data values scaled to the range zero to one.
If this is set to "no", then use only the entries 1:200 for gray level values. This is useful for ensuring correct rendition of an image dumped directly from the display window, in which only 200 color values are reserved for the image pixel values. The remainder are either overlay graphics colors or reserved for the other windows on the screen.
If listmap = yes, print the color map to the standard output (the terminal), one group of red, green, and blue values per line.
1. Assume that the file bwgam.scm contains the following:
# SAOimage color table # dev$pix - m51 B 600s # Wed Feb 26 15:06:25 1992 PSEUDOCOLOR RED: gamma 1.5 (0.000,0.000)(1.000,1.000) GREEN: gamma 1.5 (0.000,0.000)(1.000,1.000) BLUE: gamma 1.5 (0.000,0.000)(1.000,1.000)It is a color map output from SAOimage of the default gray ramp with an applied gamma of 1.5. The following command could be used to reformat the file to an STF image.
pl> scmapc bwgam.scm bwgam.hhh
dstoim, saodump