[GRASS-dev] r.rgb: syntax error, unexpected $end, expecting VARNAME or NAME or STRING
Markus Neteler
neteler at osgeo.org
Fri Mar 18 07:10:04 PDT 2016
On Wed, Mar 16, 2016 at 9:24 PM, Vaclav Petras <wenzeslaus at gmail.com> wrote:
>
> On Wed, Mar 16, 2016 at 1:27 PM, Markus Neteler <neteler at osgeo.org> wrote:
>>
>>
>> I just needed r.rgb and found the script broken: must be a silly bug
>> but I don't see it..:
>>
>> # NC
>>
>> GRASS 7.1.svn (nc_spm_08_grass7): > r.rgb input=elevation
>>
>> syntax error, unexpected $end, expecting VARNAME or NAME or STRING
>> Parse error
>> ERROR: parse error
>> ERROR: An error occurred while running r.mapcalc
>>
>> Any idea?
>
>
>
> Not all options are required but at least one of them:
>
> https://trac.osgeo.org/grass/changeset/68072
I see, that now works:
GRASS 7.1.svn (nc_spm_08_grass7): > r.rgb input=elevation
Description:
Splits a raster map into red, green and blue maps.
Keywords:
[...]
ERROR: At least one of the following options is required: <red>,
<green> and <blue>
ok. But another error occurs (missing error handling if the output
names were selected to be identica):
GRASS 7.1.svn (nc_spm_08_grass7): > r.rgb input=elevation
red=elevation green=elevation blue=elevation
syntax error, unexpected '=', expecting '('
Parse error
ERROR: parse error
ERROR: An error occurred while running r.mapcalc
Eventually this works:
r.rgb input=elevation red=elevation.r green=elevation.g blue=elevation.b
Perhaps there is an elegant solution to catch the (user) error above?
Markus
More information about the grass-dev
mailing list