[GRASS-dev] possible problem in GRASS 6.4 command parsing in Windows

I was just working with a couple postdocs using GRASS 6.4.0 on Windows. We tried to enter the following command in the command line window in the layer manager

r.mapcalc newmap=if(oldmap<=18000,1,null())

This generated an error saying that it could not find oldmap.

If we did this in the MSys terminal (adding single quotes as needed there) it works fine.

r.mapcalc 'newmap=if(oldmap<=18000,1,null())'

I don't know if this is an error or if we were doing something wrong.

Maybe someone else more accustomed to GRASS for Windows can test.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

I had a similar complaint for GRASS6.4.1 on Windows 7 running r.mapcalc from command console,
I don't remember exactly what the issue was but I will to try to check tomorrow.

Helena

On Jan 12, 2011, at 6:51 PM, Michael Barton wrote:

I was just working with a couple postdocs using GRASS 6.4.0 on Windows. We tried to enter the following command in the command line window in the layer manager

r.mapcalc newmap=if(oldmap<=18000,1,null())

This generated an error saying that it could not find oldmap.

If we did this in the MSys terminal (adding single quotes as needed there) it works fine.

r.mapcalc 'newmap=if(oldmap<=18000,1,null())'

I don't know if this is an error or if we were doing something wrong.

Maybe someone else more accustomed to GRASS for Windows can test.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Thanks Helena.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jan 12, 2011, at 5:46 PM, Helena Mitasova wrote:

I had a similar complaint for GRASS6.4.1 on Windows 7 running r.mapcalc from command console,
I don't remember exactly what the issue was but I will to try to check tomorrow.

Helena

On Jan 12, 2011, at 6:51 PM, Michael Barton wrote:

I was just working with a couple postdocs using GRASS 6.4.0 on Windows. We tried to enter the following command in the command line window in the layer manager

r.mapcalc newmap=if(oldmap<=18000,1,null())

This generated an error saying that it could not find oldmap.

If we did this in the MSys terminal (adding single quotes as needed there) it works fine.

r.mapcalc 'newmap=if(oldmap<=18000,1,null())'

I don't know if this is an error or if we were doing something wrong.

Maybe someone else more accustomed to GRASS for Windows can test.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page