[GRASS-user] r.shaded.relief-spgrass6 problems

Markus Neteler neteler at osgeo.org
Sun Jan 30 07:46:04 EST 2011


Hello Brian,

On Tue, Nov 16, 2010 at 1:43 AM, brian <zenlines at gmail.com> wrote:
>
> Hello List,
> I am having trouble parsing the r.shaded.relief module from R using the
> spgrass6 package.
> When doing it directly in GRASS, it works but an error is first returned. It
> goes as follows:
>
> r.shaded.relief map=alt shadedmap=elev.shad_relief altitude=80 --overwrite
> basename: extra operand
> `(x86)/GRASS-65-SVN/scripts/r.shaded.relief'
> Try `basename --help' for more information.
> basename: extra operand
> `(x86)/GRASS-65-SVN/scripts/r.shaded.relief'
> Try `basename --help' for more information.

I think I finally found this one today. It should be fixed in 6.4.1RC2 and
later (not yet released).

> Calculating shading, please stand by.
> Color table for raster map <elev.shad_relief> set to 'grey'
> Shaded relief map created and named <elev.shad_relief>.
>
> This looks the same in R but this causes R to cease computation. The above
> command sent with R yields:
>
>> execGRASS("r.shaded.relief",flags="overwrite", parameters=list(map="alt",
>> altitude=80, shadedmap="elev.shad_relief"))
> Error : basename: extra operand `(x86)/GRASS-65-SVN/scripts/r.shaded.relief'
> Try `basename --help' for more information.
> <?xml version="1.0" encoding="CP1252"?>
> <!DOCTYPE task SYSTEM "grass-interface.dtd">
> ...
> </task>  does not seem to be XML, nor to identify a file name
> Error in parseGRASS(cmd) : r.shaded.relief not parsed
>
> Is this a bug or my mistake?

A bug due to improper variable quoting in the r.shaded.relief and all
other scripts.

Markus


More information about the grass-user mailing list