Hi all,
How are you?
I am having difficulty importing matrix files into NetLogo 6.2and I hope someone in this group can help me.
I have a GIS file in .asc format. This file is a raster that contains NDVI (Normalized Difference Vegetation Index) values for a study area (bellow one example file in .asc).
ncols 3
nrows 7
xllcorner 0
yllcorner 0
cellsize 10
NODATA_value -9999
0.44 0.44 0.44
0.46 0.44 0.42
0.48 0.44 0.41
0.42 0.41 0.41
0.38 0.37 0.4
0.39 0.37 0.39
0.39 0.38 0.39
I used the following code to import this .asc file into NetLogo 6.2 (bellow):
extensions [ gis ]
globals
[
L2_EVI02
]
to setup-evi
ca
set L2_EVI02 gis:load-dataset "C:/L2_EVI02.asc"
end
However, when using inspect the patch, no NDVI value appears. Can someone help me understand why?
Therefore, as I was unable to import this .asc file into NetLogo 6.2. I thought about importing the file as a matrix. However, not every matrix I will know the column number and the row number. So, could someone suggest how I can do to import this matrix in NetLogo version 6.2?
Thanks all
Rafaela