[GRASS-user] can r.in.xyz get input from STDIN?

Hamish hamish_nospam at yahoo.com
Sun Dec 3 22:42:46 EST 2006


> > > i'm getting xyz data from the grass command prompt using a query
> > > like: echo "select x,y,z from...." | db.select  > outfile.xyz
> > > 
> > > then reading into grass using:
> > > r.in.xyz input=outfile.xyz ....
> > > 
> > > just wondering if i can do this in one step by piping my select
> > > output directly into r.in.xyz?
> > > 
> > > (i suppose i could just right a wrapper script to do this if i
> > > can't do it directly)

Hamish:
> > No, you can't right now. But it is a planned feature.  (input="-")

Glynn:
> r.in.xyz may use multiple passes, and thus requires the ability to
> rewind the input.

We would have to add a startup check for "percent=100" (single pass
mode) if data was not from a file. This would limit the output raster
map size based on local system RAM, but not the amount of input data.


Hamish




More information about the grass-user mailing list