Cellular automata

2912
1
10-16-2014 07:39 AM
MaybrithJohannsen
New Contributor

Jeg har en opgave med cellular automata hvor jeg skal simulere by-udvikling over tid. Jeg har min by-raster, hvor by=1, andet =0. Jeg har beregnet Focal statistic, med Moore neighbourhood og beregnet SUM for hver celle. Jeg opsætter min 1.regel som hedder: IF there are three or more developed cells in the Moore neighbourhood of a cell THEN the cell is developed. I raster calculator definerer jeg mit udtryk således: Con("Focal_statistic" >=3,1,0) Det virker ok. Dernæst har jeg en vej-raster, hvor vej=1, andet=0, "vej_raster". Jeg skal nu addere min regel 2 som hedder: IF there are one or two urban cells in the Moore neighbourhood AND there is a road running through this cell THEN the cell is developed. Jeg har nu et udtryk som hedder: Con("Focal_statistic">=3,1,0) & Con((Focal_statistic==1 & Focal_statistic==2) & "vej_raster",1) Men det virker ikke, kan nogen hjælpe?

vh MJ

0 Kudos
1 Reply
JohannesBierer
Occasional Contributor III

?

0 Kudos