[GRASS-dev] Re: GRASS 6.4.2RC3 released: mapcalc problem

Helena Mitasova hmitaso at ncsu.edu
Sun Jan 15 21:26:24 EST 2012

On Jan 15, 2012, at 12:41 PM, Markus Neteler wrote:

> On Sun, Jan 15, 2012 at 4:42 AM, Helena Mitasova <hmitaso at ncsu.edu> wrote:
>> I can confirm it on Mac. A simple expression like this:
>> r.mapcalc diff=elev_ned10m_bil-elev_ned10m_bic
>> runs in linux shell, but fails in wxgui command console and
>> in the map calculator.
> Did you try with white space around the "="? I darkly remember
> some issue, but maybe that's unrelated.

that is an issue for MSWin in 6.4.1 but not on Mac.
Anyway, but I tried couple more alternatives and compared with 6.4.1
this is what I am getting

in GRASS 6.4.2RC3 r.mapcalc runs only in linux shell
The expressions below, when pasted into command console give all the same error message :

r.mapcalc diff=elev_ned10m_bil-elev_ned10m_bic
r.mapcalc diff = elev_ned10m_bil-elev_ned10m_bic
r.mapcalc diff = elev_ned10m_bil - elev_ned10m_bic
r.mapcalc 'diff = elev_ned10m_bil - elev_ned10m_bic'
r.mapcalc diff = "elev_ned10m_bil-elev_ned10m_bic"

- the expression does not run in calculator GUI either with our without spaces 

in GRASS6.4.1 the following runs from command console without any trouble:
r.mapcalc diff=elev_ned10m_bil-elev_ned10m_bic
but problems were reported for r.mapcalc in console on MS windows if spaces were not included.

I am guessing that r.mapcalc runs from wxgui on linux and only Mac and MSwindows are the problem?


Traceback (most recent call last):
  File "/Users/helena/grassrel6/grass64_release/dist.i386
line 1105, in OnKeyPressed

  File "/Users/helena/grassrel6/grass64_release/dist.i386
line 521, in RunCmd

task = menuform.GUI(show = None).ParseCommand(command)
  File "/Users/helena/grassrel6/grass64_release/dist.i386
line 1732, in ParseCommand

blackList = _blackList)
  File "/Users/helena/grassrel6/grass64_release/dist.i386
-apple-darwin10.8.0/etc/python/grass/script/task.py", line
460, in parse_interface

tree = etree.fromstring(get_interface_description(name))
  File "/System/Library/Frameworks/Python.framework/Versions
/2.6/lib/python2.6/xml/etree/ElementTree.py", line 964, in

return parser.close()
  File "/System/Library/Frameworks/Python.framework/Versions
/2.6/lib/python2.6/xml/etree/ElementTree.py", line 1254, in

self._parser.Parse("", 1) # end of data
no element found: line 1, column 0

> Markus

More information about the grass-dev mailing list