[GRASS-user] null values

Lets say I have a map with a range of -20, and 20. I am able to create a legend that only shows -10,10. But I want my map to only show values from -10,10. Is there a way to make the areas that are above 10, or below -10 show up as white or null values on the display map. I have been playing around with val. list in d.rast. But I have not had much sucess in creating maps that take out my max and min outliers. Any suggestions?
Aaron

you can use r.mapcalc or r.null

c

On 8/6/07, goldneaa@onid.orst.edu <goldneaa@onid.orst.edu> wrote:

Lets say I have a map with a range of -20, and 20. I am able to
create a legend that only shows -10,10. But I want my map to only
show values from -10,10. Is there a way to make the areas that are
above 10, or below -10 show up as white or null values on the display
map. I have been playing around with val. list in d.rast. But I have
not had much sucess in creating maps that take out my max and min
outliers. Any suggestions?
Aaron

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Visiting Researcher at Kingston University London - UK
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.

goldneaa@onid.orst.edu wrote:

Lets say I have a map with a range of -20, and 20. I am able to
create a legend that only shows -10,10. But I want my map to only
show values from -10,10. Is there a way to make the areas that are
above 10, or below -10 show up as white or null values on the display
map. I have been playing around with val. list in d.rast. But I have
not had much sucess in creating maps that take out my max and min
outliers. Any suggestions?

If the maps are integer-valued, use r.reclass to map the undesired
categories to null.

If the maps have floating-point values, use r.mapcalc instead.

While the r.mapcalc approach will work for integer values, it copies
the map data, while r.reclass only need to store the reclass rules.

--
Glynn Clements <glynn@gclements.plus.com>

See r.colors for display colours...
you should define your color rules...

Alternatively you can create/modify your color file (same name of your
raster map) under the colr folder of your mapset.
e.g.:
% -20 20
-20:255:255:255 -10:255:255:255
-10:255:0:0 10:0:255:0
10:255:255:255 20:255:255:255

these represent in withe cells with values lower -10 and upper +10, and
from red to green in between

lines mean:
(from -20 to -10 ramp between 255:255:255 and 255:255:255)-.>withe
(from -10 to 10 ramp between 255:0:0 and 0:255:0)->red to green
(from 10 to 20 ramp between 255:255:255 and 255:255:255) -.>withe

bye
Maxi

goldneaa@onid.orst.edu wrote:

Lets say I have a map with a range of -20, and 20. I am able to create a legend that only shows -10,10. But I want my map to only show values from -10,10. Is there a way to make the areas that are above 10, or below -10 show up as white or null values on the display map. I have been playing around with val. list in d.rast. But I have not had much sucess in creating maps that take out my max and min outliers. Any suggestions?
Aaron

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

goldneaa@onid.orst.edu wrote:

Lets say I have a map with a range of -20, and 20. I am able to create a legend that only shows -10,10. But I want my map to only show values from -10,10. Is there a way to make the areas that are above 10, or below -10 show up as white or null values on the display map. I have been playing around with val. list in d.rast. But I have not had much sucess in creating maps that take out my max and min outliers. Any suggestions?
Aaron

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

I assume yue use gui, do temporary display only values from -10 to 10 simply in "values to display" type: -10-10

that all
Jarek