error reading file ndvi.asc:java.lang.numberformatexception:For input string: "-1.#IND"

1,022 views
Skip to first unread message

moesotaku

unread,
Sep 24, 2014, 2:00:44 AM9/24/14
to max...@googlegroups.com
when i click run receive this error.
(ndvi.asc:java.lang.numberformatexception:For input string: "-1.#IND")
what does this mean? this is my first time use maxent software and im not fimiliar with java either.
the ndvi come from a worldview 2 data

will...@arc.agric.za

unread,
Oct 7, 2014, 9:33:27 AM10/7/14
to max...@googlegroups.com
I have the same problem with this error message - can somebody help? 

w001...@umail.usq.edu.au

unread,
May 28, 2015, 9:54:45 PM5/28/15
to max...@googlegroups.com
Probably a little late to help, however, in case its of assist to others. The errors likely a result of the Ascii file when created not being assigned or converting the null values to the desired number. If you open the Acssi file for example in notepad, you'll see the values "-1.#IND" listed throughout. In my situation, the value of "-1.#IND" occurred when nodata values were assigned a non-numeric value (i.e. nan). This appears to result from running different geoprocesses in QGIS for example, of when doing raster calculations where values are divided by 0.

You need to ensure that your nodata values are transformed correctly (check the Ascii itself, rather than just the metadata of the file). In QGIS I use gdal_warp to ensure null values reflect the desired number (i.e. -9999).
Reply all
Reply to author
Forward
0 new messages