Any difference between grid spatial grid from asc file?

16 views
Skip to first unread message

Etienne DELAY

unread,
Jul 21, 2017, 8:50:52 AM7/21/17
to GAMA
Hi all, 
I have developed a model based on abstract environment where each agents create a cell list overlapping a perception cone (like in the model library). 

Now I work on real spatial data so I create my initial grid from an asc file as Patrick said. But now my perception reflex doesn't work any more ...

it looks like that : 

reflex perception {
perceived_area <- (cone((180+heading)-3#km,(180+heading)+3#km) intersection world.shape) intersection circle(perception_distance);
if (perceived_area != nil) {
myVisibility <- dem_file overlapping perceived_area;
}
 
}

myVisibility stay desperately empty !! So is there any difference between grid create from  :

grid veg_cell width: 100 height: 100 neighbors: 8 {}

And 

grid dem_cell file:dem_file {}

Or overlapping function work differently ? 

E.

Patrick Taillandier

unread,
Jul 21, 2017, 9:40:08 AM7/21/17
to gama-p...@googlegroups.com
Hi,

You just test to replace the file by the grid in the computation of myVisibility:
myVisibility <- dem_file overlapping perceived_area; -> myVisibility <- dem_cell overlapping perceived_area;

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platform+unsubscribe@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Etienne DELAY

unread,
Jul 21, 2017, 10:45:20 AM7/21/17
to GAMA

Arg !! Shame ! 

Thank you Patrick you will be proud of my beautiful model ;-)


Le vendredi 21 juillet 2017 13:40:08 UTC, Patrick Taillandier a écrit :
Hi,

You just test to replace the file by the grid in the computation of myVisibility:
myVisibility <- dem_file overlapping perceived_area; -> myVisibility <- dem_cell overlapping perceived_area;
2017-07-21 14:50 GMT+02:00 Etienne DELAY <abce...@gmail.com>:
Hi all, 
I have developed a model based on abstract environment where each agents create a cell list overlapping a perception cone (like in the model library). 

Now I work on real spatial data so I create my initial grid from an asc file as Patrick said. But now my perception reflex doesn't work any more ...

it looks like that : 

reflex perception {
perceived_area <- (cone((180+heading)-3#km,(180+heading)+3#km) intersection world.shape) intersection circle(perception_distance);
if (perceived_area != nil) {
myVisibility <- dem_file overlapping perceived_area;
}
 
}

myVisibility stay desperately empty !! So is there any difference between grid create from  :

grid veg_cell width: 100 height: 100 neighbors: 8 {}

And 

grid dem_cell file:dem_file {}

Or overlapping function work differently ? 

E.

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages