biodiversity value map error

hasolak825hasolak825 Member
edited April 2014 in Terrestrial Models
Hi there,

I am trying to run the biodiversity model with my own data and I am getting a value map error. I am really not sure what it is referring to. Here it is below:


Initializing...
04/16/2014 10:43:02 root DEBUG PATH: ['C:\\InVEST_2_5_6_x86\\invest-3-x86\\.']
04/16/2014 10:43:15 root DEBUG Loading biodiversity_biophysical from PATH
Arguments:
half_saturation_constant 0.5
landuse_bas_uri D:/Pass/Hayley/HERO Alternative Data/Invest_Test/Input/BaseLineLand1.img
landuse_cur_uri D:/Pass/Hayley/HERO Alternative Data/Invest_Test/Input/CurrentLand1.img
landuse_fut_uri D:/Pass/Hayley/HERO Alternative Data/Invest_Test/Input/FutureLand1.img
sensitivity_uri D:/Pass/Hayley/HERO Alternative Data/Invest_Test/Sensitivity.csv
suffix InVest
threats_uri D:/Pass/Hayley/HERO Alternative Data/Invest_Test/Threats.csv
workspace_dir D:\Pass\Hayley\HERO Alternative Data\Invest_Test


04/16/2014 10:43:15 root INFO Logging will be saved to biodiversity_biophysical-log-2014-04-16--10_43_15.txt
04/16/2014 10:43:15 root DEBUG Loaded the model from invest_natcap.biodiversity.biodiversity_biophysical
04/16/2014 10:43:15 root INFO Executing the loaded model
04/16/2014 10:43:15 root INFO Running InVEST version "2.5.6"
04/16/2014 10:43:15 root INFO Python architecture: ('32bit', 'WindowsPE')
04/16/2014 10:43:15 root INFO Disk space remaining for workspace: 20.8 GB
04/16/2014 10:43:15 root INFO Pointing temporary directory at the workspace at D:\Pass\Hayley\HERO Alternative Data\Invest_Test
04/16/2014 10:43:15 root INFO Upddating os.environ["TMP"]=C:\Users\hsolak\AppData\Local\Temp to D:\Pass\Hayley\HERO Alternative Data\Invest_Test
04/16/2014 10:43:15 root INFO Upddating os.environ["TEMP"]=C:\Users\hsolak\AppData\Local\Temp to D:\Pass\Hayley\HERO Alternative Data\Invest_Test
04/16/2014 10:43:15 root INFO Setting os.environ["TMPDIR"]=D:\Pass\Hayley\HERO Alternative Data\Invest_Test
04/16/2014 10:43:16 biodiversity_core DEBUG Starting biodiversity biophysical calculations
04/16/2014 10:43:16 biodiversity_core DEBUG Starting map_raster_to_dict_values
04/16/2014 10:43:16 raster_utils INFO Reclassifying
04/16/2014 10:43:16 raster_utils INFO Creating lookup numpy array
04/16/2014 10:43:16 raster_utils INFO Looping through rows in the input data
04/16/2014 10:43:18 raster_utils INFO Flushing the cache and exiting reclassification
04/16/2014 10:43:18 biodiversity_core DEBUG Handling Access Shape
04/16/2014 10:43:18 biodiversity_core DEBUG No Access Shape Provided
04/16/2014 10:43:18 biodiversity_core DEBUG landuse_dict : {'_f': >, '_c': >, '_b': >}
04/16/2014 10:43:18 biodiversity_core DEBUG Calculating results for landuse : _f
04/16/2014 10:43:18 raster_utils DEBUG Raster_Properties : {'width': 30.0, 'x_size': 3029, 'y_size': 2779, 'height': -30.0}
04/16/2014 10:43:18 biodiversity_core DEBUG Calculating threat : roads
04/16/2014 10:43:18 biodiversity_core DEBUG Threat Data : {'MAX_DIST': '1', 'THREAT': 'roads', 'WEIGHT': '0.9'}
04/16/2014 10:43:18 biodiversity_core DEBUG Sigma for gaussian : 2.35870181114
04/16/2014 10:43:18 raster_utils INFO setting up files in gaussian_filter_dataset
04/16/2014 10:43:18 raster_utils INFO shape (2779, 3029)
04/16/2014 10:43:18 raster_utils INFO make the source memmap at d:\pass\hayley\hero alternative data\invest_test\tmp\tmpwop9n9\source.dat
04/16/2014 10:43:18 raster_utils INFO make the mask memmap at d:\pass\hayley\hero alternative data\invest_test\tmp\tmpwop9n9\mask.dat
04/16/2014 10:43:18 raster_utils INFO make the dest memmap at d:\pass\hayley\hero alternative data\invest_test\tmp\tmpwop9n9\dest.dat
04/16/2014 10:43:18 raster_utils INFO load dataset into source array
04/16/2014 10:43:18 raster_utils INFO gaussian filter
04/16/2014 10:43:19 raster_utils INFO mask the result back to nodata where originally nodata
04/16/2014 10:43:19 raster_utils INFO write to gdal object
04/16/2014 10:43:20 raster_utils INFO deleting d:\pass\hayley\hero alternative data\invest_test\tmp\tmpwop9n9
04/16/2014 10:43:21 biodiversity_core DEBUG Starting map_raster_to_dict_values
04/16/2014 10:43:21 raster_utils INFO Reclassifying
04/16/2014 10:43:22 raster_utils INFO Creating lookup numpy array
04/16/2014 10:43:22 raster_utils INFO Looping through rows in the input data
04/16/2014 10:43:22 root INFO Disk space free: 20.7 GB
04/16/2014 10:43:22 root ERROR Error: a problem occurred while running the model
04/16/2014 10:43:22 root DEBUG Exception not environment-related
04/16/2014 10:43:22 root DEBUG Printing traceback
Traceback (most recent call last):
File "invest_natcap\iui\executor.pyc", line 455, in runModel
File "invest_natcap\biodiversity\biodiversity_biophysical.pyc", line 161, in execute
File "invest_natcap\biodiversity\biodiversity_core.pyc", line 168, in biophysical
File "invest_natcap\biodiversity\biodiversity_core.pyc", line 482, in map_raster_to_dict_values
File "invest_natcap\raster_utils.pyc", line 1990, in reclassify_dataset
UndefinedValue: The following values were in the raster but not in the value_map set([0])
None

04/16/2014 10:43:22 root INFO Saving log file to D:\Pass\Hayley\HERO Alternative Data\Invest_Test\biodiversity_biophysical-log-2014-04-16--10_43_15.txt
04/16/2014 10:43:22 root ERROR Exiting due to failures


I am running the standalone 3.0 model. I have also tried the 2.5.6 version standalone and I am getting the same error, don't know if that helps at all. Thanks!

Comments

  • swolnyswolny Member, NatCap Staff
    Hello!

    My guess is that your LULC raster has an LULC class with a Value of 0, but there is no corresponding 0 entry in your sensitivity table. Please check this and let us know...

    ~ Stacie
  • Got it, thanks!
This discussion has been closed.