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

ramaraju ramarajua at gmail.com
Sat May 31 11:46:01 EDT 2008


Hamish,

thank you. It's working

ramaraju

On Sat, May 31, 2008 at 8:58 PM, Hamish <hamish_b at yahoo.com> wrote:

> ramaraju:
> > 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.
>
>
> Hamish
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080531/4005ebf7/attachment.html


More information about the grass-user mailing list