[GRASS-user] r.profile (2)

Markus Neteler neteler at osgeo.org
Sun Jun 7 11:58:55 PDT 2015


On Sun, Jun 7, 2015 at 5:13 PM, Stuart Edwards <sedwards2 at cinci.rr.com> wrote:
> Following from my last post, I have tried to run r.profile from the command line in the gui and get the following result:
>
> cat GIS/pipe.csv | r.profile input=DEM output=profilepoints.csv
>
> 2333260.42997275|283492.366510945
...

AFAIK the delimiter must be comma, not pipe ('|').

This works, just tested in GRASS 7.0.svn (nc_spm_08_grass7):

echo "641712,226095
641546,224138
641546,222048
641049,221186" > coors.txt

cat coors.txt | r.profile elevation resolution=1000 file=-
Using resolution: 1000 [meters]
Output columns:
Along track dist. [meters], Elevation
Approx. transect length: 1964.027749 [meters]
 0.000000 84.661507
 1000.000000 98.179062
Approx. transect length: 2090.000000 [meters]
 1964.027749 83.638138
 2964.027749 89.141029
 3964.027749 78.497757
Approx. transect length: 995.014070 [meters]
 4054.027749 73.988029

Best
Markus


More information about the grass-user mailing list