huge values resulted from distance_to

16 views
Skip to first unread message

Suhad Faisal

unread,
Sep 26, 2014, 6:20:14 PM9/26/14
to gama-p...@googlegroups.com
Hello 

I try to simulate trajectory of agent for several days and several hours, but when I compute the distance between two points and dividing the distance by time to obtain the speed of an agent, the resulted value from distance_to is not normal (very big values). I checked my data they were correct.   so I attached my model and its own files 

thanks in advance to help and advice me 

cheers
suhad
ProtoType26.5.9.gaml
alias2191258Date.csv
VoronoiVoronoi.shp

Srirama Bhamidipati

unread,
Sep 27, 2014, 2:06:45 AM9/27/14
to
Hi,

Never seen such a complex code to achieve simple things. Seems you did not follow advice from Alexis about creating agents from csv. I suggest you to please look at models library with example csv_agents.gaml about how to import attributes as species variables and to discard the header row.

Also please carefully understand scope of local and global. Why do you have species inside a global block ?

Follow those examples and you can solve your problem. I suggest you practise all the examples of data_importation and those in save_statement, at least those related to csv files.

regards,
Srirama


Suhad Faisal

unread,
Sep 29, 2014, 4:50:56 AM9/29/14
to gama-p...@googlegroups.com
Thank you Srirama , I will revise my attitude

cheers
Suhad
Reply all
Reply to author
Forward
0 new messages