[GRASS-user] Cluster whit area?
Etienne DELAY (deust 2010)
etienne.delay at etu.unilim.fr
Thu Aug 5 13:37:47 EDT 2010
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"
More information about the grass-user
mailing list