[GRASS-dev] GRASS 6.4.3 release planning

Helena Mitasova hmitaso at ncsu.edu
Thu Jun 27 17:29:57 PDT 2013


regarding the r.mapcalc issue in command console on wingrass -
(sorry I did not make it clear it was for wingrass - it always worked well on Mac and linux)

It is not critical, windows users can still use the mapcalculator GUI where it runs OK,
but the r.mapcalc in the command console still does not seem to work - tried by a student
using June 26 snapshot this is what she says:

Here are examples of the commands run and the errors received: 
r.mapcalc urban2_30m=if(landuse96_28m==1 || landuse96_28m==2,landuse96_28m,null())
syntax error, unexpected $end, expecting ')'
Parse error
'landuse96_28m' is not recognized as an internal or external
command,
operable program or batch file.

r.mapcalc MASK=if((elevation<100 && elevation>60) && (landuse96_28m==1 || landuse96_28m==2),1,null())
1 was unexpected at this time.

This is the same we were getting in GRASS6.4.3RC2 and apparently the proposed solutions did not work
http://lists.osgeo.org/pipermail/grass-dev/2013-February/062047.html
http://lists.osgeo.org/pipermail/grass-dev/2013-March/062607.html

if I get this confirmed I will file a bug report (I thought I already did, but it is not there).
If it is not fixable it should be at least mentioned on the known issues web page
http://grasswiki.osgeo.org/wiki/WinGRASS_Current_Status#Raster_modules

Helena




> 
> Helena:
>> I am also wondering whether the r.mapcalc expressions with || (or)
>> now run from the wxGUI command console.
> 
> I just tried on linux 6.4.3svn wxGUI command console:
>   r.mapcalc "either = 0 || 1"
> and it worked.
> 
> In general I wouldn't be surprised if full command line quoting took
> years and huge amounts of effort to (re)perfect. And even then, does
> it try to follow Bash conventions, or python, or DOS, or some mix of
> all those? How much do we try to (re)teach about command line
> techniques in our own docs? Will unquoted input=C:\Users\files\data.txt
> always be parsed to input=C:Usersfilesdata.txt (literal \U, \f, \d)
> in the command console in that case?
> 
> 
> best,
> Hamish
> 
> _______________________________________________
> 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