[GRASS-user] setting no data color

Hamish hamish_b at yahoo.com
Wed May 21 23:04:40 EDT 2008


Jim:
> >>     
> >>> I am trying to set no data, which represents
> >>> ocean to blue. I see r.colors has a option to
> >>> set nv to a color. I tried this and the oceans 
> >>> are still white. Any suggestions?

are you sure they are really NULL? check with d.what.rast? r.univar?


> Here is the color file:
> 
> 0 0 0 0
> 1 127 96 40
> 2 76 153 51
> 3 0 99 0
> 4 176 48 96
> 5 204 165 127
> 6 244 244 219
> 7 127 127 127
> 8 210 44 47
> 9 158 248 255
> nv 191 233 255
> end

looks ok. It should work; was working for me yesterday.


> If I can't get it to make nulls the color I want, I can
> change the nulls to zeros, but prefer to keep them null.

you shouldn't have to.
have a look in the $MAPSET/colr/$MAPNAME file too if you like.



Hamish



      



More information about the grass-user mailing list