[GRASS5] r.in.gdal and colors

Markus Neteler neteler at itc.it
Thu Feb 6 03:32:31 EST 2003

On Wed, Feb 05, 2003 at 11:20:46PM -0500, Russell Nelson wrote:
> Frank Warmerdam writes:
>  > Do you or others who get the Zen of GRASS better than I think
>  > r.in.gdal ought to be writing a greyscale colortable for imported
>  > files without a colormap?
> Yes.  The three rasters are not independent images, but are instead
> the red, green, and blue planes of the imported image.  For that
> reason, they should have greyscale colortables, and should be named
> ".r", ".g", and ".b" instead of .1, .2, and .3.

Also I vote for this suggestion.
>  > Should it only do this for multiband
>  > images?  Only for 8bit images?
> If it's an indexed image and comes with a colortable, then by all
> means set the colortable.  Otherwise, if it's an RGB image, then the
> resultant three rasters should be interpreted not as colors, but as
> intensities.  And that means greyscale.



More information about the grass-dev mailing list