When I use this code to import a raster layer into NetLogo and resize the world, all patch variables of the last column is zero when it should contain data. This happens only for a few rasters from the same landscape.
set rasterLayer gis:load-dataset "x.asc"
resize-world 0 (gis:width-of rasterLayer) -1 0 (gis:height-of rasterLayer) -1
gis:set-world-envelope gis:envelope-of rasterLayer
gis: apply-raster rasterLayer
Without the '-1' when resizing the world, I get a column of NaN values (Importing raster data into NetLogo results in a row/column of NaN values).
The dimensions of this raster are correct; the column of 0 values is not an extra one, meaning that some data is lost.