[GRASS-dev] ps.map colortable
Hamish
hamish_b at yahoo.com
Fri May 8 00:46:03 EDT 2009
Casey Vandenberg wrote:
> How easy would it be to implement an
> option in the ps.map instructions for colortables so that
> the user could decide if he/she wanted to use a discrete
> colortable vs. a continuous color table (see attached).
>
> Currently, to change the color bar from continuous to
> discrete, I comment out the following lines in the ps_map.c
> instructions. It would be nice if one could choose between
> colortable_continuous vs colortable_discrete like one has
> the choice between geogrid or grid when making a ps.map
> file.
>
> gedit ~/grass/ps/ps.map/ps_map.c
>
>
> /* do the colortable, if requested */
> if (PS.do_colortable) {
> // if ( G_raster_map_is_fp(ct.name,
> ct.mapset) ) //
> PS_fcolortable();
> // else
>
> PS_colortable();
> }
I am trying to replicate your Discrete.png using the above patch &
the elevation.10m map from the Spearfish sample dataset, but failing.
Did you make a custom category (cats) file for your map containing the
discrete bands/ranges first?
Hamish
More information about the grass-dev
mailing list