[GRASS-dev] Re: Profiler updates

Michael Barton michael.barton at asu.edu
Wed Feb 14 01:36:22 EST 2007


Hamish,

See below.


On 2/13/07 10:45 PM, "Hamish" <hamish_nospam at yahoo.com> wrote:

> H:
>>> also-- the display manager is ignoring the color rule for NULL.
>>> 
>>> For that screenshot I had set up color rules like this:
>>> 
>>> G63> r.colors elevation.dem col=rules << EOF
>>> nv red
>>> 0% green
>>> 50% yellow
>>> 100% blue
>>> EOF
> 
> Michael wrote:
>> This one is easy I think. The map display by default sets nulls to
>> transparent for better display of overlaid raster maps. There is a
>> check box to change this.
> 
> Ok, I see it. -If overlay is not checked- the pulldown menu lets you
> pick the color used for null.
> 
> So gis.m does ignore the value in the colr table for "nv", but it gives
> you another way to manually set it. This is a bug, the pulldown list
> needs either an entry for "none", or "Set background color" in the GIS
> manager's raster panel needs a checkbox before it to make d.rast's "bg="
> an optional term, as it is on the command line. But a fairly minor bug.

The GUI only runs d.rast with its options in this case. The default is
d.rast -o (because it seemed that most of the times people would prefer to
run it in overlay mode). The command passed to the shell is...

D.rast -o map=elevation.10m

Unchecking the box simply turns off the -o flag. The bg option is only set
if you pick a color. Otherwise it is simply not included in the command
passed to the shell. For example, if you unselect the overlay checkbox and
don't pick a background color, the command passed to the shell is...

D.rast map=elevation.10m

Also, there is no "none" color allowed for the bg=[color] option. When I
tried it, I got...

D.rast map=elevation.10m bg=none

Error: value <none> out of range for parameter <bg>
       Legal range:
white,black,red,green,blue,yellow,magenta,cyan,aqua,grey,gray,orange,brown,p
urple,violet,indigo

I don't know any other way to parse d.rast to display what you are trying to
display. Sorry.

Michael

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton





More information about the grass-dev mailing list