[GRASS-user] standardizing raster color tables

Jed O. Kaplan jed.kaplan at ips.unibe.ch
Thu Jul 6 14:01:59 EDT 2006


Hello all,

I have a series of geotiff files that are 8-bit paletted pseudocolor  
images. I imported these into GRASS rasters with r.in.gdal.  
Unfortunately each separate image file has a different color table,  
though they are a sort of DRGs so the original scans had  
approximately all the same colors.

I would like to convert all the rasters to have a standard color  
table, so that, e.g., I can merge the files into a single image,  
perform other GIS operations, etc.

Is there any way using GRASS tools that I can give all of my  
individual images the same color table?  The image files are large  
(ca. 2000x3000 pixels), but I could convert them temporarily to rgb  
images and then reduce the colors.  I have a standard color table in  
another geotiff file.

I have tried to do this using the imagemagick tool: convert -map  
<file> <infile> <outfile> but this process is impossibly slow.

Any suggestions for (standardized, semi-automated) color reduction  
for DRG's would be much appreciated.

Thanks,

Jed Kaplan




More information about the grass-user mailing list