Hi,
I am trying to use g.mlist to gather files to use with r.series.
r.series input=“g.mlist pat='*1987*pdds' sep=,
” output=test1987dd0 method=sum
When i run this i get:
r.series input=“g.mlist pat='*1987*pdds' sep=,
” output=test1987dd0 method=sum
Sorry, is not a valid parameter
Sorry, is not a valid parameter
When i run g.mlist alone i get the list of files that i expect.
I have successfully run r.series alone by manually selecting the files I want to sum.
If only I could get r.series and g.mlist to be happy!
I am using GRASS6.4.ORC4 on Mac OS X V.10.5.6
If anyone has an idea why this is happening I would greatly appreciate it!
Saewan
saewan:
I am trying to use g.mlist to gather files to use with r.series.
r.series input="`g.mlist pat='*1987*pdds' sep=,`" output=test1987dd0
method=sum
Try this:
r.series input=`g.mlist pat=*1987*pdds sep=,` output=test1987dd0
method=sum
Nikos
Hi Nikos,
Thanks for the super fast response.
I tried what you suggested but the same error messages came up.
If you have another suggestion please let me know,
Thanks again,
Saewan
On 19-May-09, at 6:12 PM, Nikos Alexandris wrote:
saewan:
I am trying to use g.mlist to gather files to use with r.series.
r.series input="`g.mlist pat='*1987*pdds' sep=,`" output=test1987dd0
method=sum
Try this:
r.series input=`g.mlist pat=*1987*pdds sep=,` output=test1987dd0
method=sum
Nikos
What is the exact command line you used and the error message? Because
in your first email the error was due to the wrong use of quotes. The
entire g.mlist command should be inside back ticks (` `), with no need
for quotes inside the g.mlist line, exactly like Nikos suggested...
On Tue, May 19, 2009 at 9:44 PM, saewan koh <saewan@gmail.com> wrote:
Hi Nikos,
Thanks for the super fast response.
I tried what you suggested but the same error messages came up.
If you have another suggestion please let me know,
Thanks again,
Saewan
On 19-May-09, at 6:12 PM, Nikos Alexandris wrote:
saewan:
I am trying to use g.mlist to gather files to use with r.series.
r.series input="`g.mlist pat='*1987*pdds' sep=,`" output=test1987dd0
method=sum
Try this:
r.series input=`g.mlist pat=*1987*pdds sep=,` output=test1987dd0
method=sum
Nikos
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
On Wed, May 20, 2009 at 3:37 AM, Daniel Victoria
<daniel.victoria@gmail.com> wrote:
What is the exact command line you used and the error message? Because
in your first email the error was due to the wrong use of quotes.
Not sure about this statement ... FWIW for me:
GRASS 6.4.0svn (spearfish60):~ > r.series input="`g.mlist pat='road*'
sep=,`" output=test1987dd0 method=sum
Reading raster map <roads>...
100%
works perfectly on a Linux box.
Markus
Hi Markus and Daniel,
Thanks for checking into this. I am currently going thru the nabble archives to see if there are issues with os x and g.mlist. I am going to install GRASS6.3 on my other computer and see if my problem is specific to my current set up.
Can anyone suggest a work around in the event I can’t get r.series to work with g.mlist? Is there a way I can use the two separately?
The last weird thing i just discovered is that when i use g.mlist on its own - it will not run if i use quotations as in g.mlist rast pat=“SmrDDT0Tot*”
It does run if i use g.mlist rast pat=SmrDDT0Tot*
So i wonder if my issue is something in the way the script is running within the shell.
Anyway ff there is anyone running GRASS 6.4.ORC4 on Mac OS X v. 10.5.6 who wouldn’t mind trying r.series with g.mlist please let me know if you can get it to work.
Thanks again,
Saewan
On 20-May-09, at 2:37 AM, Markus Neteler wrote:
On Wed, May 20, 2009 at 3:37 AM, Daniel Victoria
<daniel.victoria@gmail.com> wrote:
What is the exact command line you used and the error message? Because
in your first email the error was due to the wrong use of quotes.
Not sure about this statement … FWIW for me:
GRASS 6.4.0svn (spearfish60):~ > r.series input=“g.mlist pat='road*' sep=,
” output=test1987dd0 method=sum
Reading raster map …
100%
works perfectly on a Linux box.
Markus
Hi Saewan,
On Wed, May 20, 2009 at 8:51 PM, saewan koh <saewan@gmail.com> wrote:
...
The last weird thing i just discovered is that when i use g.mlist on its own
- it will not run if i use quotations as in g.mlist rast pat="SmrDDT0Tot*"
What happens exactly?
It does run if i use g.mlist rast pat=SmrDDT0Tot*
So i wonder if my issue is something in the way the script is running within
the shell.
At this point I wonder which shell you are using... what does
echo $SHELL
say?
Markus
Hi Markus,
On 20-May-09, at 1:48 PM, Markus Neteler wrote:
Hi Saewan,
On Wed, May 20, 2009 at 8:51 PM, saewan koh <saewan@gmail.com> wrote:
…
The last weird thing i just discovered is that when i use g.mlist on its own
- it will not run if i use quotations as in g.mlist rast pat=“SmrDDT0Tot*”
What happens exactly?
When i run
g.mlist pattern=“1986dd5s”
I get the following output.
g.mlist pattern=“1986dd5s”
(Wed May 20 13:49:57 2009) Command finished (0 sec)
If i run g.mlist pattern=1986dd5s
I get the following output.
1986_4_12_4_18_dd5s
1986_4_19_4_25_dd5s
1986_4_26_5_2_dd5s
1986_4_5_4_11_dd5s
etc.
It does run if i use g.mlist rast pat=SmrDDT0Tot*
So i wonder if my issue is something in the way the script is running within
the shell.
At this point I wonder which shell you are using… what does
echo $SHELL
say?
In my terminal when for the above command i get the response of:
-bash: echo/bin/bash: No such file or directory
I am in the wrong shell?
I really really appreciate all this help.
Thanks,
Saewan
Hi,
2009/5/20 saewan koh <saewan@gmail.com>:
g.mlist pattern="*1986*dd5s"
I get the following output.
g.mlist pattern="*1986*dd5s"
(Wed May 20 13:49:57 2009) Command finished (0 sec)
important here is that you are using "command prompt" from wxGUI which
behaves in different way from shell. The prompt in wxGUI is planned to
be rewritten, see [1].
Martin
[1] http://grass.osgeo.org/wiki/WxGUI#Layer_Manager
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
On Wed, May 20, 2009 at 9:58 PM, saewan koh <saewan@gmail.com> wrote:
Hi Markus,
On 20-May-09, at 1:48 PM, Markus Neteler wrote:
Hi Saewan,
On Wed, May 20, 2009 at 8:51 PM, saewan koh <saewan@gmail.com> wrote:
...
The last weird thing i just discovered is that when i use g.mlist on its own
- it will not run if i use quotations as in g.mlist rast pat="SmrDDT0Tot*"
What happens exactly?
When i run
g.mlist pattern="*1986*dd5s"
I get the following output.
g.mlist pattern="*1986*dd5s"
(Wed May 20 13:49:57 2009) Command finished (0 sec)
If i run g.mlist pattern=*1986*dd5s
I get the following output.
1986_4_12_4_18_dd5s
1986_4_19_4_25_dd5s
1986_4_26_5_2_dd5s
1986_4_5_4_11_dd5s
etc.
Bingo I got it thanks to Martin's comment: you use (did you mention?)
the wxGUI command line which is currently "eating" the quotes.
A known bug which requires some work to be fixed.
Solution for today: launch the commands in the real terminal.
Markus
Hi Markus and Martin,
Yes the solution for the day was indeed the solution i was looking for. As a GRASS noobie it never occurred to me that the wxGUI might treat some of the commands differently!
Thank you (everyone)!
(what a relief : )
Saewan
On 20-May-09, at 2:18 PM, Markus Neteler wrote:
On Wed, May 20, 2009 at 9:58 PM, saewan koh <saewan@gmail.com> wrote:
Hi Markus,
On 20-May-09, at 1:48 PM, Markus Neteler wrote:
Hi Saewan,
On Wed, May 20, 2009 at 8:51 PM, saewan koh <saewan@gmail.com> wrote:
...
The last weird thing i just discovered is that when i use g.mlist on its own
- it will not run if i use quotations as in g.mlist rast pat="SmrDDT0Tot*"
What happens exactly?
When i run
g.mlist pattern="*1986*dd5s"
I get the following output.
g.mlist pattern="*1986*dd5s"
(Wed May 20 13:49:57 2009) Command finished (0 sec)
If i run g.mlist pattern=*1986*dd5s
I get the following output.
1986_4_12_4_18_dd5s
1986_4_19_4_25_dd5s
1986_4_26_5_2_dd5s
1986_4_5_4_11_dd5s
etc.
Bingo I got it thanks to Martin's comment: you use (did you mention?)
the wxGUI command line which is currently "eating" the quotes.
A known bug which requires some work to be fixed.
Solution for today: launch the commands in the real terminal.
Markus