Re: [GRASS-user] Mapcalc to replace a range of values

2011-07-13 Thread Michael Barton
r.mapcalc 'newmap=if(oldmap>=-0.01 & oldmap<=0.01, 0, oldmap) You can also use r.recode. Michael __ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Arizona State University Tempe,

[GRASS-user] utlities for reading GeoScan/GeoPlot files?

2011-07-13 Thread Michael Barton
Does anyone know of an open source utility to read magnetometer/gradiometer dumped in GeoScan binary format as *.GRD and *.DAT files? In other words something to use geophysical survey instrument data without needed proprietary instrument vendor software? Thanks Michael

Re: [GRASS-user] Mapcalc to replace a range of values

2011-07-13 Thread Saber Razmjooei
Or maybe you can use r.null: r.null map=YourRASTER setnull=-0.1-0.1 null=0 On Wed, 2011-07-13 at 14:10 +0100, Rebecca Bennett wrote: > Hello Grass users, > > I have a (hopefully) quick question - I would like to replace all > values in a raster that fall in the range -0.01 to 0.01 (i.e. > 0.01>

Re: [GRASS-user] Mapcalc to replace a range of values

2011-07-13 Thread Marcello Gorini
r.mapcalc "new_raster=if(old_raster>-0.01 && old_raster<0.01,0,old_raster)" Cheers, Marcello. On Wed, Jul 13, 2011 at 10:10 AM, Rebecca Bennett wrote: > Hello Grass users, > > I have a (hopefully) quick question - I would like to replace all values in > a raster that fall in the range -0.01 to

[GRASS-user] Compiling GRASS 7.0 error with tcl.h

2011-07-13 Thread S. Koukoulas
I am trying to compile GRASS 7 svn (9Jul2011) snapshot on Ubuntu natty (11.04) but without any success. I followed the instructions from http://grass.osgeo.org/wiki/Compile_and_Install#Platform_Specific_Notes and I run configure as: ./configure --with-tcltk-includes="/usr/include/tcl8.5" --with-

[GRASS-user] Mapcalc to replace a range of values

2011-07-13 Thread Rebecca Bennett
Hello Grass users, I have a (hopefully) quick question - I would like to replace all values in a raster that fall in the range -0.01 to 0.01 (i.e. 0.01><-0.01) with 0 but can't quite work out how to express this in mapcalc. Can anyone set me on the right track? Thanks for reading, Rebecca __

[GRASS-user] Changing/matching the coordinates

2011-07-13 Thread giannis Nj
Hi, i have one raster and one vector file and i want to match them at the diplay map. I want to change the coordinates of one of them, i guess specifying the right coordinate reference system can do the job. How can i do this at Grass? In Quantum is very easy, from the layer Properties, in Gra