Hello all,
I am preparing a large amount of .dat (and .hdr) files in IDL, to be view in ENVI and elsewhere. Is there a way to prepare color tables for the images (which are floating-point rasters) so that when they are opened up in ENVI the images will automatically be displayed according to said color table?
When I load the image into ENVI and right click --> Change Color Table, and change the color table to a specific scale, the image is displayed the way I (for the most part) desire. I am wondering if I can specify this in my IDL code instead of having to do it by hand (as there are hundreds of images)?
I have two types of .dat files: one representing the % of water pixels throughout time and one representing the % of land pixels throughout time. For the % water images, I would like to specify a graduated color scheme of white to dark blue, and for % land, a graduated color scheme of white to dark green. Even if both go from white to black, that would be fine, although I would like to avoid using black.
I'm aware (vaguely) of how to load a color table using IDL graphics system, but I don't know how to permanently apply this color table to .dat image files. I did something similar at an earlier step when I was producing classified images (applying a lookup table in the hdr file), but am clueless how to supply this 'graduated' or 'continuous' color scale/table for a floating point raster, or if it's even possible.
Any comments/insight/suggestions are greatly appreciated.
Thanks!
|