(apologies for interfering...)
Etienne wrote:
Hi Dylan and everybody
I'm come back. I have past this week on R for uderstand what you do in
http://casoilresource.lawr.ucdavis.edu/drupal/node/340
Now it's great for R but... I don't understand how make a loop in grass
in the web site we can read
for x in `seq 1 5`
do v.extract --o in=bclust where="cluster=$x" out=bclust_$x
v.hull --o in=bclust_$x out=bclust_hull_$x
d.vect bclust_hull_$x type=boundary fcol=none width=2 col=white
d.vect bclust icon=basic/box fcol=black col=black size=6
done
but I have an error and I dont understand very well how work the loop?
My message error is
Sorry <1> is not a valid option
Sorry <5> is not a valid option
Try out like this:
for x in `seq 1 5`; do
v.extract --o in=bclust where="cluster="${x}"" out=bclust_"${x}"
v.hull --o in=bclust_"${x}" out=bclust_hull_"${x}"
d.vect bclust_hull_"${x}" type=boundary fcol=none width=2 col=white
d.vect bclust icon=basic/box fcol=black col=black size=6
done
By the way, I remember reading expert comment in the list that using "${x}" is
rather a good idea.
Cheers, Nikos
Le 04/08/10 21:37, Nikos Alexandris a écrit :
(apologies for interfering...)
Etienne wrote:
Hi Dylan and everybody
I'm come back. I have past this week on R for uderstand what you do in
http://casoilresource.lawr.ucdavis.edu/drupal/node/340
Now it's great for R but... I don't understand how make a loop in grass
in the web site we can read
for x in `seq 1 5`
do v.extract --o in=bclust where="cluster=$x" out=bclust_$x
v.hull --o in=bclust_$x out=bclust_hull_$x
d.vect bclust_hull_$x type=boundary fcol=none width=2 col=white
d.vect bclust icon=basic/box fcol=black col=black size=6
done
but I have an error and I dont understand very well how work the loop?
My message error is
Sorry <1> is not a valid option
Sorry <5> is not a valid option
Try out like this:
for x in `seq 1 5`; do
v.extract --o in=bclust where="cluster="${x}"" out=bclust_"${x}"
v.hull --o in=bclust_"${x}" out=bclust_hull_"${x}"
d.vect bclust_hull_"${x}" type=boundary fcol=none width=2 col=white
d.vect bclust icon=basic/box fcol=black col=black size=6
done
By the way, I remember reading expert comment in the list that using "${x}" is
rather a good idea.
Cheers, Nikos
Hi Nikos I have try your commande but I have this error :
bash: seq: command not found
So I don't know why !!
Can you explain
Thank's 
--
Cordialement
Etienne DELAY
Deust "Webmaster et gest. d'intranet" (IDSkype : etienne.delay.tic)
Master IUP "valorisation du patrimoine et aménagement du territoire"
Le 05/08/10 19:48, Dylan Beaudette a écrit :
On Thu, Aug 5, 2010 at 10:37 AM, Etienne DELAY (deust 2010)
<etienne.delay@etu.unilim.fr> wrote:
Le 04/08/10 21:37, Nikos Alexandris a écrit :
(apologies for interfering...)
Etienne wrote:
Hi Dylan and everybody
I'm come back. I have past this week on R for uderstand what you do in
http://casoilresource.lawr.ucdavis.edu/drupal/node/340
Now it's great for R but... I don't understand how make a loop in grass
in the web site we can read
for x in `seq 1 5`
do v.extract --o in=bclust where="cluster=$x" out=bclust_$x
v.hull --o in=bclust_$x out=bclust_hull_$x
d.vect bclust_hull_$x type=boundary fcol=none width=2 col=white
d.vect bclust icon=basic/box fcol=black col=black size=6
done
but I have an error and I dont understand very well how work the loop?
My message error is
Sorry <1> is not a valid option
Sorry <5> is not a valid option
Try out like this:
for x in `seq 1 5`; do
v.extract --o in=bclust where="cluster="${x}"" out=bclust_"${x}"
v.hull --o in=bclust_"${x}" out=bclust_hull_"${x}"
d.vect bclust_hull_"${x}" type=boundary fcol=none width=2 col=white
d.vect bclust icon=basic/box fcol=black col=black size=6
done
By the way, I remember reading expert comment in the list that using "${x}" is
rather a good idea.
Cheers, Nikos
Hi Nikos I have try your commande but I have this error :
bash: seq: command not found
Hmmm... are you using Mac OS X ? I noticed that it was missing as well..
http://scruss.com/blog/2008/02/08/seq-for-os-x/
Dylan
Thank you very much Dylan and Nikos
Yes I work on Mac and now it's great !!!!
Trank's again 
--
Cordialement
Etienne DELAY
Deust "Webmaster et gest. d'intranet" (IDSkype : etienne.delay.tic)
Master IUP "valorisation du patrimoine et aménagement du territoire"