[GRASS-user] can r.in.xyz get input from STDIN?
Hamish
hamish_nospam at yahoo.com
Thu Nov 30 19:40:19 EST 2006
Ken wrote:
> 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)
No, you can't right now. But it is a planned feature. (input="-")
This would have the advantage of bypassing any LFS problems. (?)
The only (minor) problem I see is that data taken from stdin would
obviously have to bypass the G_percent() calls (that's ok) but as a
replacement I'd like to use G_clicker(), and I'm not sure how well the
GUI version will deal with that. (would need some help from a Tcl expert)
Hamish
More information about the grass-user
mailing list