NetLogo/GIS-Extension — Issue #5: importing GIS data can result in NaN values
Author: SethTisue
Created: 2012-01-25 03:08:16+00:00
State: open

Tina Balke reports:

> Dear Netlogo Team, I came across a possible bug in Netlogo
> concerning the min and max methods in combination with is-number?
> when using the GIS extension. In the simulation I use population
> figures as patch variable (the name of this variable is
> "population"). I've loaded GIS raster information into Netlogo
> and used "gis:apply-raster gis:load-dataset
> "data/sez_01_rer_grid.asc" population" to match the GIS data with
> the patch variable.
> When querying the max value of population using "show max [
> population ] of patches with [is-number? population]" I get NaN
> as a result, despite the is-number? statement. Using "show max [
> population ] of patches with [population >= 0]" instead works.