Quantcast

extractnetwork script problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

extractnetwork script problem

giuseppeform@libero.it
Dear all, i have written this script to run h.extractnetwork with different
threshold values:


 threshold=[20,30,50,70,90,
100,110,120,140,180,200,210,220,230,250,280,300,310,330]
 println threshold.
getAt(1)
 double a = threshold.getAt(1)
 println a
 jgrass h.extractnetwork --
mode 0 --igrass-flow dir_uno --igrass-tca tca_uno --threshold a --ograss-net
net30_uno
 

the output error is this:

30
30.0
For input string: "a"
Link flow
not created.



I also have tried this:

threshold=[20,30,50,70,90,
100,110,120,140,180,200,210,220,230,250,280,300,310,330]
 jgrass h.
extractnetwork --mode 0 --igrass-flow dir_uno --igrass-tca tca_uno --threshold
threshold.getAt(1)  --ograss-net net30_uno

and this is the error

default.
jgrass(45) : error E1002: unexpected '('.

Finally i also tried to cast a like
String......but i obtain the same error


Any suggestions?


thanks
giuseppe
_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: extractnetwork script problem

Emanuele Cordano-2
Dear Giuseppe,

when you usa a variable as options of a  grass or jgrass command, you  
should type $ before the name of variable es.

> jgrass h.extractnetwork --
> mode 0 --igrass-flow dir_uno --igrass-tca tca_uno --threshold $a --
> ograss-net
net30_uno

and not only "a"  as you did ($ means "the value of" )


cheers

Emanuele

Emanuele Cordano
DICA/CUDAM - Dipartimento di Ingegneria Civile e Ambientale
Stanza/Room 402
Universita' degli Studi di Trento
Via Mesiano 77 - 38100 Povo (Trento)
Tel: +39 0461 88 2610
Fax: +39 0461 88 2672
email: [hidden email]
web:  http://www.ing.unitn.it/dica/hp/?user=cordano
http://www.geotop.org/cgi-bin/moin.cgi/EmanueleCordano#preview




On Nov 25, 2009, at 11:37 AM, [hidden email] wrote:

> Dear all, i have written this script to run h.extractnetwork with  
> different
> threshold values:
>
>
> threshold=[20,30,50,70,90,
> 100,110,120,140,180,200,210,220,230,250,280,300,310,330]
> println threshold.
> getAt(1)
> double a = threshold.getAt(1)
> println a
> jgrass h.extractnetwork --
> mode 0 --igrass-flow dir_uno --igrass-tca tca_uno --threshold a --
> ograss-net
> net30_uno
>
>
> the output error is this:
>
> 30
> 30.0
> For input string: "a"
> Link flow
> not created.
>
>
>
> I also have tried this:
>
> threshold=[20,30,50,70,90,
> 100,110,120,140,180,200,210,220,230,250,280,300,310,330]
> jgrass h.
> extractnetwork --mode 0 --igrass-flow dir_uno --igrass-tca tca_uno --
> threshold
> threshold.getAt(1)  --ograss-net net30_uno
>
> and this is the error
>
> default.
> jgrass(45) : error E1002: unexpected '('.
>
> Finally i also tried to cast a like
> String......but i obtain the same error
>
>
> Any suggestions?
>
>
> thanks
> giuseppe
> _______________________________________________
> JGrass-users mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users

_______________________________________________
JGrass-users mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: extractnetwork script problem

ellavera125
This post has NOT been accepted by the mailing list yet.
In reply to this post by giuseppeform@libero.it
It's not clear in the various input windows in JGrass whether you're
supposed to enter just a filename or directory name
or the full path, with or without the forward slash at the end - I've
tried many different combinations.
""EllA VeerA""
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: extractnetwork script problem

wew111
This post has NOT been accepted by the mailing list yet.
casino  thanks for shared it thats good
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: extractnetwork script problem

wew111
This post has NOT been accepted by the mailing list yet.
game poker online thats very good and nice site best
Loading...