On Fri, Mar 18, 2016 at 3:10 PM, Markus Neteler <nete...@osgeo.org> wrote:
> On Wed, Mar 16, 2016 at 9:24 PM, Vaclav Petras <wenzesl...@gmail.com> wrote:
>>
>> On Wed, Mar 16, 2016 at 1:27 PM, Markus Neteler <nete...@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?

Is there any reason why this should not work? According to the manual
it should work.

If neither red or green or blue are given, r.rgb could use
red=${input}.r
green=${input}.g
blue=${input}.b

That would be easy to fix.

Markus M

>>
>>
>>
>> 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
> _______________________________________________
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to