[GRASS-user] Raster color table in ps.map

Hamish hamish_b at yahoo.com
Sat May 31 11:28:05 EDT 2008

> I am using SRTM data for my study area with elevation
> values ranging from 12 m to 960 m. I have set the color table to bgyr.
> When I tried composing a map in ps.map using the above data with color
> table, it gave me the following error message:
> Your cats/ file is invalid. A cats/ file with categories and labels is
> required for 'colortable' when using CELL rasters.
> No colortable will be assigned to this output postscript file.
> However, raster legend can be displayed in the grass map
> display window.
> I am using GRASS 6.3 on ubuntu 8.04 Can any of you advise me on how
> to overcome this problem and print color table?

not a very good solution, but convert the map to a FCELL raster with:

g.region rast=cell_map
r.mapcalc "fcell_map = float(cell_map)"

then it shouldn't treat it as categorical and the colortable legend should work.



More information about the grass-user mailing list