Re: grass { r.shaded.relief.bat map=demED50 shadedmap=rilievoOmbreggiato2 altitude=30 azimuth=270 zmult=1 scale=1 units=meters }

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: grass { r.shaded.relief.bat map=demED50 shadedmap=rilievoOmbreggiato2 altitude=30 azimuth=270 zmult=1 scale=1 units=meters }

Giuseppe Cinque
Hi,
in windows xp I set up the environment variable:

GRASS_SH = ""

and in path:

C:\GRASS\msys\bin

I change C:\grass63RC5\grass-6.3.0RC5\etc\Init.bat

GRASS_SH=c:\msys\1.0\bin\sh.exe

in

GRASS_SH=C:\GRASS\msys\bin\sh.exe

When I launch the grass command:
grass r.shaded.relief.bat -help

in output there is:
C:\grass63RC5\grass-6.3.0RC5/scripts/r.shaded.relief: basename:
command not found

Description:
 Creates shaded relief map from an elevation map (DEM).

Keywords:
 raster, elevation

Usage:
 r.shaded.relief map=string [shadedmap=string] [altitude=value]
   [azimuth=value] [zmult=value] [scale=value] [units=string]
   [--overwrite] [--verbose] [--quiet]

Flags:
 --o   Allow output files to overwrite existing files
 --v   Verbose module output
 --q   Quiet module output

Parameters:
        map   Input elevation map
  shadedmap   Output shaded relief map name
   altitude   Altitude of the sun in degrees above the horizon
              options: 0-90
              default: 30
    azimuth   Azimuth of the sun in degrees to the east of north
              options: 0-360
              default: 270
      zmult   Factor for exaggerating relief
              default: 1
      scale   Scale factor for converting horizontal units to elevation units
              default: 1
      units   Set scaling factor (applies to lat./long. locations only)
              options: meters,feet

If I launch the grass command:
grass r.shaded.relief.bat map=demED50 shadedmap=rilievoOmbreggiato2
altitude=30 azimuth=270 zmult=1 scale=1 units=meters --overwrite

in output there is:
C:\grass63RC5\grass-6.3.0RC5/scripts/r.shaded.relief: basename:
command not found
_spawnlp() failed: Invalid argument
r.shaded.relief.bat : exit code: 1

Some idea?

Thank you
_______________________________________________
JGrass-devel mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-devel
Reply | Threaded
Open this post in threaded view
|

Re: grass { r.shaded.relief.bat map=demED50 shadedmap=rilievoOmbreggiato2 altitude=30 azimuth=270 zmult=1 scale=1 units=meters }

Andrea Antonello
Hi Giuseppe,
in the latest version of JGrass (the 4udig branch) you should no
longer need to set GRASS_SH, since I added it to the variables JGrass
sets.
So perhaps by doing things manually something is breaking?

Try with a fresh GRASS install, without setting any variable in windows.

Let me know,
Ciao
Andrea


On Mon, Dec 15, 2008 at 3:08 PM, Giuseppe Cinque <[hidden email]> wrote:

> Hi,
> in windows xp I set up the environment variable:
>
> GRASS_SH = ""
>
> and in path:
>
> C:\GRASS\msys\bin
>
> I change C:\grass63RC5\grass-6.3.0RC5\etc\Init.bat
>
> GRASS_SH=c:\msys\1.0\bin\sh.exe
>
> in
>
> GRASS_SH=C:\GRASS\msys\bin\sh.exe
>
> When I launch the grass command:
> grass r.shaded.relief.bat -help
>
> in output there is:
> C:\grass63RC5\grass-6.3.0RC5/scripts/r.shaded.relief: basename:
> command not found
>
> Description:
>  Creates shaded relief map from an elevation map (DEM).
>
> Keywords:
>  raster, elevation
>
> Usage:
>  r.shaded.relief map=string [shadedmap=string] [altitude=value]
>   [azimuth=value] [zmult=value] [scale=value] [units=string]
>   [--overwrite] [--verbose] [--quiet]
>
> Flags:
>  --o   Allow output files to overwrite existing files
>  --v   Verbose module output
>  --q   Quiet module output
>
> Parameters:
>        map   Input elevation map
>  shadedmap   Output shaded relief map name
>   altitude   Altitude of the sun in degrees above the horizon
>              options: 0-90
>              default: 30
>    azimuth   Azimuth of the sun in degrees to the east of north
>              options: 0-360
>              default: 270
>      zmult   Factor for exaggerating relief
>              default: 1
>      scale   Scale factor for converting horizontal units to elevation units
>              default: 1
>      units   Set scaling factor (applies to lat./long. locations only)
>              options: meters,feet
>
> If I launch the grass command:
> grass r.shaded.relief.bat map=demED50 shadedmap=rilievoOmbreggiato2
> altitude=30 azimuth=270 zmult=1 scale=1 units=meters --overwrite
>
> in output there is:
> C:\grass63RC5\grass-6.3.0RC5/scripts/r.shaded.relief: basename:
> command not found
> _spawnlp() failed: Invalid argument
> r.shaded.relief.bat : exit code: 1
>
> Some idea?
>
> Thank you
>
_______________________________________________
JGrass-devel mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-devel
Reply | Threaded
Open this post in threaded view
|

Re: grass { r.shaded.relief.bat map=demED50 shadedmap=rilievoOmbreggiato2 altitude=30 azimuth=270 zmult=1 scale=1 units=meters }

Giuseppe Cinque
In reply to this post by Giuseppe Cinque
Hello Andrea,
also with the latest version of JGrass in windows I have this problem

_spawnlp() failed: Invalid argument
r.shaded.relief.bat : exit code: 1

when I launch the command

grass r.shaded.relief.bat map=demED50 shadedmap=rilievoOmbreggiato2
altitude=30 azimuth=270 zmult=1 scale=1 units=meters --overwrite

Ciao,
Giuseppe

andrea antonello ha scritto:

Hi Giuseppe,
in the latest version of JGrass (the 4udig branch) you should no
longer need to set GRASS_SH, since I added it to the variables JGrass
sets.
So perhaps by doing things manually something is breaking?

Try with a fresh GRASS install, without setting any variable in windows.

Let me know,
Ciao
Andrea



Giuseppe Cinque ha scritto:

> Hi,
> in windows xp I set up the environment variable:
>
> GRASS_SH = ""
>
> and in path:
>
> C:\GRASS\msys\bin
>
> I change C:\grass63RC5\grass-6.3.0RC5\etc\Init.bat
>
> GRASS_SH=c:\msys\1.0\bin\sh.exe
>
> in
>
> GRASS_SH=C:\GRASS\msys\bin\sh.exe
>
> When I launch the grass command:
> grass r.shaded.relief.bat -help
>
> in output there is:
> C:\grass63RC5\grass-6.3.0RC5/scripts/r.shaded.relief: basename:
> command not found
>
> Description:
>  Creates shaded relief map from an elevation map (DEM).
>
> Keywords:
>  raster, elevation
>
> Usage:
>  r.shaded.relief map=string [shadedmap=string] [altitude=value]
>    [azimuth=value] [zmult=value] [scale=value] [units=string]
>    [--overwrite] [--verbose] [--quiet]
>
> Flags:
>  --o   Allow output files to overwrite existing files
>  --v   Verbose module output
>  --q   Quiet module output
>
> Parameters:
>         map   Input elevation map
>   shadedmap   Output shaded relief map name
>    altitude   Altitude of the sun in degrees above the horizon
>               options: 0-90
>               default: 30
>     azimuth   Azimuth of the sun in degrees to the east of north
>               options: 0-360
>               default: 270
>       zmult   Factor for exaggerating relief
>               default: 1
>       scale   Scale factor for converting horizontal units to elevation units
>               default: 1
>       units   Set scaling factor (applies to lat./long. locations only)
>               options: meters,feet
>
> If I launch the grass command:
> grass r.shaded.relief.bat map=demED50 shadedmap=rilievoOmbreggiato2
> altitude=30 azimuth=270 zmult=1 scale=1 units=meters --overwrite
>
> in output there is:
> C:\grass63RC5\grass-6.3.0RC5/scripts/r.shaded.relief: basename:
> command not found
> _spawnlp() failed: Invalid argument
> r.shaded.relief.bat : exit code: 1
>
> Some idea?
>
> Thank you
>
>  

_______________________________________________
JGrass-devel mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-devel