t.rast.what: allow stdin and add to GRASS 7.0
|Reported by:||sbl||Owned by:|
Please find attached a diff which allows t.rast.what to read from stdin. That way it becomes also possible to add a site name to the output, which is pretty useful for later useage of it... The site name is only propagated to the output, when a site name has been provided in the (first line of the) input.
There are probably more elegant solutions for this, so improvements are very welcome. I did not update the manual and the test suite yet, but I will try to do so, if you consider this addition useful too...
For users with "commandlineophobia" it would be probably better to specify coordinates using the file option G_OPT_F_INPUT?
Furthermore, the script works very well in GRASS 7.0 too. Any particular reason for not shipping it with the stable release? t.rast.what is a pretty handy tool!