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

Helena Mitasova hmitaso at ncsu.edu
Sun Jan 15 23:42:16 EST 2012


one more observation:

r.mapcalc "diff = elev_ned10m_bil-elev_ned10m_bic" 
runs from command console in GRASS7.0 but does not run in GRASS6.4.2RC3

Helena 

On Jan 15, 2012, at 9:26 PM, Helena Mitasova wrote:

> 
> 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?
> 
> Helena
> 
> Traceback (most recent call last):
>  File "/Users/helena/grassrel6/grass64_release/dist.i386
> -apple-darwin10.8.0/etc/wxpython/gui_modules/prompt.py",
> line 1105, in OnKeyPressed
> 
> self.parent.RunCmd(cmd)
>  File "/Users/helena/grassrel6/grass64_release/dist.i386
> -apple-darwin10.8.0/etc/wxpython/gui_modules/goutput.py",
> line 521, in RunCmd
> 
> task = menuform.GUI(show = None).ParseCommand(command)
>  File "/Users/helena/grassrel6/grass64_release/dist.i386
> -apple-darwin10.8.0/etc/wxpython/gui_modules/menuform.py",
> 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
> XML
> 
> return parser.close()
>  File "/System/Library/Frameworks/Python.framework/Versions
> /2.6/lib/python2.6/xml/etree/ElementTree.py", line 1254, in
> close
> 
> self._parser.Parse("", 1) # end of data
> xml.parsers.expat
> .
> ExpatError
> :
> no element found: line 1, column 0
> 
>> 
>> Markus
> 
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev



More information about the grass-dev mailing list