[GRASS-de] GRASS

Otto Dassau otto.dassau at gmx.de
Mi Feb 4 15:00:29 CET 2004


Florian Jurgeit schrieb:
> 
> is there a possibility to get the output of a grass-command
> without starting the interactive grass monitor? i've tried:
> 
> #!/bin/sh
> grass5 -text /home/atlas/grass/GRASSDATA/atlas/dgm
> r.profile dem_asc line="700000,200000,705000,195000"
> 
> and all i get is the monitor. maybe it's clearer if i tell you
> what i want to achieve: "abuse" GRASS to produce height profile's
> ASCII output according to a user's selection on an html page

Hallo Florian, 

dies ist die deutsche GRASS Liste:

Klar kannst du deine Befehle auch starten, ohne eine monitor x0,etc 
zu oeffnen, hast du oben doch auch gemacht. 

#!/bin/sh
grass5 -text /home/atlas/grass/GRASSDATA/atlas/dgm

Der Befehl ist bei mir ein wenig anders? Benutze GRASS 5.3.
r.profile -g in=dem_asc out=- profile="700000,200000,705000,195000"

#### Hier meine Benutzerhilfe: ##### ist die bei Dir anders??

r.profile [-ig] input=name output=name
[profile=east,north[,east,north,...]] [res=value]

Flags:
  -i   Interactively select End-Points
  -g   Output easting and northing in first two columns of four column
output

Parameters:
    input   Name of existing raster map
   output   Name of file for output (use out=- for stdout)
  profile   Profile Coordinate Pairs
      res   Resolution along profile (default = current region
resolution)

ich bekomme bei mir Ergebnisse, wie:

Using Resolution 1.066812
Output Format:
[Easting] [Northing] [Along Track Dist.(m)] [Elevation]

Approx. transect length 707.106812 m.
1609000.000000 5106500.000000 0.000000 2000.171509
1609000.754350 5106499.245650 1.066812 1992.116455
1609001.508700 5106498.491300 2.133624 1992.116455
1609002.263050 5106497.736950 3.200436 1992.116455

so sollte es bei dir auch sein, oder habe ich was falsch verstanden?

  otto