Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-29 Thread Markus Neteler
On Tue, May 27, 2014 at 9:26 AM, Huidae Cho wrote: > Just submitted r60500 Backported to relbr7 in r60587 > > On Tue, May 27, 2014 at 2:56 AM, Markus Neteler wrote: ... >> ... btw, this would indirectly resolve >> http://trac.osgeo.org/grass/ticket/1724 Fixed, too. Markus

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-27 Thread Glynn Clements
Markus Neteler wrote: > >> BTW, does r.series take input from stdin? In terminal, g.mlist ¦ r.series > >> would be great. > > > > It doesn't understand "file=-" as referring to stdin (although that > > would be a simple change) > > For consistency with other commands that would be a good change

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-27 Thread Huidae Cho
Just submitted r60500 On Tue, May 27, 2014 at 2:56 AM, Markus Neteler wrote: > On Mon, May 26, 2014 at 11:57 PM, Huidae Cho wrote: > > Makes sense. If no objections, I'll apply the two patches in this > > discussion. > > ... btw, this would indirectly resolve > http://trac.osgeo.org/grass/tick

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-26 Thread Markus Neteler
On Mon, May 26, 2014 at 11:57 PM, Huidae Cho wrote: > Makes sense. If no objections, I'll apply the two patches in this > discussion. ... btw, this would indirectly resolve http://trac.osgeo.org/grass/ticket/1724 Markus ___ grass-dev mailing list grass

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-26 Thread Markus Neteler
On Tue, May 27, 2014 at 12:57 AM, Glynn Clements wrote: > > Huidae Cho wrote: > >> BTW, does r.series take input from stdin? In terminal, g.mlist ¦ r.series >> would be great. > > It doesn't understand "file=-" as referring to stdin (although that > would be a simple change) For consistency with

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-26 Thread Glynn Clements
Huidae Cho wrote: > BTW, does r.series take input from stdin? In terminal, g.mlist ¦ r.series > would be great. It doesn't understand "file=-" as referring to stdin (although that would be a simple change), but on Unix you can typically use e.g. "g.mlist | r.series file=/dev/stdin". -- Glynn

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-26 Thread Huidae Cho
Makes sense. If no objections, I'll apply the two patches in this discussion. BTW, does r.series take input from stdin? In terminal, g.mlist ¦ r.series would be great. On May 26, 2014 5:44 PM, "Markus Neteler" wrote: > On Mon, May 26, 2014 at 5:27 PM, Vaclav Petras > wrote: > > > > On Mon, May

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-26 Thread Markus Neteler
On Mon, May 26, 2014 at 5:27 PM, Vaclav Petras wrote: > > On Mon, May 26, 2014 at 10:39 AM, Huidae Cho wrote: >> >> What about the standard output redirection (>)? g.mlist ... > file.txt.. >> Hmm... We can overwrite existing files.. > > > This does not work from GUI and in terminal, it requires a

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-26 Thread Vaclav Petras
On Mon, May 26, 2014 at 10:39 AM, Huidae Cho wrote: > What about the standard output redirection (>)? g.mlist ... > file.txt.. > Hmm... We can overwrite existing files.. This does not work from GUI and in terminal, it requires additional knowledge. I'm not sure how if this works on MS Windows b

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-26 Thread Huidae Cho
What about the standard output redirection (>)? g.mlist ... > file.txt.. Hmm... We can overwrite existing files.. -p and -f flags redirect outputs to a pager, so it won't make sense for them to output to a file. Why don't we make output=file and -p/-f mutually exclusive? See the attached patch.

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-26 Thread Vaclav Petras
On Mon, May 26, 2014 at 5:33 AM, Markus Neteler wrote: > g.mlist rast pattern="precip*1951_1980_monthly_sums*" output=maplist.txt > r.series file=maplist.txt output=precip_0_25deg.1951.1980.sum method=sum > > Makes sense? > It is a very good idea. ___

Re: [GRASS-dev] g.mlist: output (to ASCII file) parameter wish

2014-05-26 Thread Martin Landa
Hi, 2014-05-26 11:33 GMT+02:00 Markus Neteler : > > g.mlist rast pattern="precip*1951_1980_monthly_sums*" output=maplist.txt > r.series file=maplist.txt output=precip_0_25deg.1951.1980.sum method=sum > > Makes sense? > yes, make sense, see patch in the attachment (it's not complete, -p/-f ignor