SDR MODEL ERROR: exception found while running natcap.invest.sdr

Hi! I have a question about SDR model. Anyone who can answer this for me?


I've already run the SDR model about 10 times, but every time there's an error like this:

12/04/2017 22:18:43  natcap.invest.sdr  INFO     calculate ic
12/04/2017 22:18:44  natcap.invest.sdr  INFO     calculate sdr
12/04/2017 22:18:44  natcap.invest.sdr  INFO     calculate sed export
12/04/2017 22:18:45  natcap.invest.sdr  INFO     calculate sediment retention index
12/04/2017 22:18:46  natcap.invest.sdr  INFO     calculate sediment retention
12/04/2017 22:18:46  natcap.invest.sdr  INFO     calculate S factor
12/04/2017 22:18:47  natcap.invest.sdr  INFO     calculating d_dn bare soil
12/04/2017 22:18:53  pygeoprocessing.routing.routing_core INFO     visit_stack on stream distance size: 334526 
12/04/2017 22:18:59  pygeoprocessing.routing.routing_core INFO     visit_stack on stream distance size: 191602 
12/04/2017 22:19:05  pygeoprocessing.routing.routing_core INFO     visit_stack on stream distance size: 28425 
12/04/2017 22:19:06  natcap.invest.sdr  INFO     calculating d_up bare soil
12/04/2017 22:19:06  natcap.invest.sdr  INFO     calculate ic
12/04/2017 22:19:09  natcap.invest.sdr  INFO     generating report
12/04/2017 22:19:11  root               ERROR    ---------------------------------------------------
12/04/2017 22:19:11  root               ERROR    ---------------------- ERROR ----------------------
12/04/2017 22:19:11  root               ERROR    ---------------------------------------------------
12/04/2017 22:19:11  root               ERROR    Error: exception found while running natcap.invest.sdr
12/04/2017 22:19:11  root               DEBUG    
12/04/2017 22:19:11  root               DEBUG    Build details
12/04/2017 22:19:11  root               DEBUG    Interpreter
12/04/2017 22:19:11  root               DEBUG    Current temp dir: D:\document\sedimentation_workspace\tmp
12/04/2017 22:19:11  root               DEBUG    tempfile.tempdir: D:\document\sedimentation_workspace\tmp
12/04/2017 22:19:11  root               DEBUG    
12/04/2017 22:19:11  root               DEBUG    System
12/04/2017 22:19:11  root               DEBUG    OS              : Windows-8-6.2.9200
12/04/2017 22:19:11  root               DEBUG    Processor architecture: AMD64
12/04/2017 22:19:11  root               DEBUG    FS encoding     : mbcs
12/04/2017 22:19:11  root               DEBUG    Preferred encoding: cp1252
12/04/2017 22:19:11  root               DEBUG    
12/04/2017 22:19:11  root               DEBUG    Python
12/04/2017 22:19:11  root               DEBUG    Version         : 2.7.9
12/04/2017 22:19:11  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
12/04/2017 22:19:11  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
12/04/2017 22:19:11  root               DEBUG    Implementation  : CPython
12/04/2017 22:19:11  root               DEBUG    Architecture    : 32bit
12/04/2017 22:19:11  root               DEBUG    Linkage format  : WindowsPE
12/04/2017 22:19:11  root               DEBUG    
12/04/2017 22:19:11  root               DEBUG    Packages
12/04/2017 22:19:11  root               DEBUG    Cython          : ?
12/04/2017 22:19:11  root               DEBUG    Numpy           : 1.11.2
12/04/2017 22:19:11  root               DEBUG    Scipy           : 0.16.1
12/04/2017 22:19:11  root               DEBUG    OSGEO           : 1.11.3
12/04/2017 22:19:11  root               DEBUG    Shapely         : 1.5.5
12/04/2017 22:19:11  root               DEBUG    InVEST          : 3.3.3
12/04/2017 22:19:11  root               DEBUG    
12/04/2017 22:19:11  root               DEBUG    
12/04/2017 22:19:11  root               DEBUG    Exception not environment-related
12/04/2017 22:19:11  root               DEBUG    Printing traceback
Traceback (most recent call last):
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.iui.executor", line 620, in runModel
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.sdr", line 297, in execute
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.sdr", line 936, in _generate_report
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\pygeoprocessing.geoprocessing", line 944, in aggregate_raster_values_uri
KeyError: 0

I checked rasters resolution which all 30 m *30 m, filled DEM sinks, all rasters have the same boundary clipped from watershed shapefile except DEM raster which is extending beyond the watersheds of interest. However, the watershed's boundary isn't exactly the same as rasters (K, R, LULC), I suppose this is because the watershed file is a shapefile with smoother boundary (like what the attach shows). 


Is this the problem why the error comes up? If not, could anyone point the reason for me?

Thanks. 


314 x 515 - 4K
Sign In or Register to comment.