[GRASS-user] r.mapcalc-problem

2009-03-12 Thread Helmut Kudrnovsky
hi, i test a little bit the examples in http://skagit.meas.ncsu.edu/~helena/grasswork/grassbookdat07/ncexternal/grasstestrast.txt on grass64 from osgeo4w on a Win Vista 32 box. I copy simply the command from the file above in the command line of the wx-gui first example: # find developed are

[GRASS-user] r.mapcalc problem ?

2009-07-02 Thread Martin Laloux
Excuse me if I seem stupid but I have a problem with r.mapcalc. I have a dem stored in FCELL with range of data(z) : min = -26.67 max = 695.960022 . I try to extract a raster/dem with all values < 0. I try r.mapcalc 'test = if(mydem >0.,mydem,null())' Results give me Range of datafor test

Re: [GRASS-user] r.mapcalc-problem

2009-03-13 Thread Markus Neteler
On Thu, Mar 12, 2009 at 10:38 PM, Helmut Kudrnovsky wrote: > hi, > > i test a little bit the examples in > > http://skagit.meas.ncsu.edu/~helena/grasswork/grassbookdat07/ncexternal/grasstestrast.txt > > on grass64 from osgeo4w on a Win Vista 32 box. > > I copy simply the command from the file abov

Re: [GRASS-user] r.mapcalc-problem

2009-03-13 Thread Martin Landa
Hi, 2009/3/13 Markus Neteler : >> r.mapcalc "developed_lake=if(landuse96_28m==1 || landuse96_28m==2, >> lakes_buff, null())" >> syntax error, unexpected $end, expecting '=' >> Parse error try without quotation marks, e.g. r.mapcalc developed_lake = if(landuse96_28m==1 || landuse96_28m==2, lakes

Re: [GRASS-user] r.mapcalc-problem

2009-03-13 Thread Markus Neteler
On Fri, Mar 13, 2009 at 9:00 AM, Martin Landa wrote: > Hi, > > 2009/3/13 Markus Neteler : >>> r.mapcalc "developed_lake=if(landuse96_28m==1 || landuse96_28m==2, >>> lakes_buff, null())" >>> syntax error, unexpected $end, expecting '=' >>> Parse error > > try without quotation marks, e.g. > > r.ma

Re: [GRASS-user] r.mapcalc problem ?

2009-07-02 Thread Juan Carlos Torres
Hi Martin I think that your second command is correct. That is r.mapcalc 'test = if(mydem < 0.,mydem,null())' Probably your problem is that your are drawing the new map on top of the older one. Just try to erase the monitor before drawing d.mon start=x0 d.erase d.rast test Juan Carlos

Re: [GRASS-user] r.mapcalc problem ?

2009-07-02 Thread Glynn Clements
Juan Carlos Torres wrote: > I think that your second command is correct. That is > > > r.mapcalc 'test = if(mydem < 0.,mydem,null())' > > Probably your problem is that your are drawing the new map on top of the > older one. > Just try to erase the monitor before drawing Or use "d.rast -n

Re: [GRASS-user] r.mapcalc problem ?

2009-07-04 Thread Nikos Alexandris
Juan CT: > > I think that your second command is correct. That is > > r.mapcalc 'test = if(mydem < 0.,mydem,null())' > > > > Probably your problem is that your are drawing the new map on top of the > > older one. Just try to erase the monitor before drawing Glynn C: > Or use "d.rast -n ...

Re: [GRASS-user] r.mapcalc problem ?

2009-07-04 Thread Martin Landa
Hi, 2009/7/4 Nikos Alexandris : > Glynn C: >> Or use "d.rast -n ...", which will draw null cells. > > Ehm... where is this flag (-n) ? In grass70? yes, -n Make null cells opaque in GRASS7 null cells are displayed transparent by default (in GRASS6 you have to use '-o' flag for that). Martin

Re: [GRASS-user] r.mapcalc problem ?

2009-07-04 Thread Nikos Alexandris
Glynn: > >> Or use "d.rast -n ...", which will draw null cells. Nikos: > > Ehm... where is this flag (-n) ? In grass70? Martin: > yes, > -n Make null cells opaque > in GRASS7 null cells are displayed transparent by default (in GRASS6 > you have to use '-o' flag for that). So it's just that

Re: [GRASS-user] r.mapcalc problem ?

2009-07-04 Thread Martin Landa
Hi, 2009/7/4 Nikos Alexandris : [...] >> yes, >>   -n   Make null cells opaque > >> in GRASS7 null cells are displayed transparent by default (in GRASS6 >> you have to use '-o' flag for that). > > So it's just that "-o" changed to "-n" (?). -o has opposite meaning of -n See -o Overlay (non

Re: [GRASS-user] r.mapcalc problem ?

2009-07-04 Thread Martin Landa
2009/7/4 Martin Landa : [...] > I.e. in GRASS7 are null values displayed opaque by default. s/GRASS7/GRASS6/g Martin -- Martin Landa * http://gama.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mail