This forum is shutting down! Please post new discussions at community.naturalcapitalproject.org

ERROR in SDR model

Hi all,

I'm running the SDR model and I am getting the following error. Could you please help me to pass the error? What did I wrong please? (I attached my log here)

...
09/29/2016 13:10:30  natcap.invest.sdr  INFO     calculate ls term
09/29/2016 13:10:36  pygeoprocessing.geoprocessing INFO     align_dataset_list aligning dataset 1 of 3
09/29/2016 13:10:44  pygeoprocessing.geoprocessing INFO     ReprojectImage 50.0% complete C:\WORK\01_LENA\04_INVEST\01_OUTPUT\try3\tmp\tmpv79xyx.tif, psz_message 
09/29/2016 13:10:50  pygeoprocessing.geoprocessing INFO     ReprojectImage 82.0% complete C:\WORK\01_LENA\04_INVEST\01_OUTPUT\try3\tmp\tmpv79xyx.tif, psz_message 
09/29/2016 13:10:51  pygeoprocessing.geoprocessing INFO     ReprojectImage 100.0% complete C:\WORK\01_LENA\04_INVEST\01_OUTPUT\try3\tmp\tmpv79xyx.tif, psz_message 
09/29/2016 13:10:53  pygeoprocessing.geoprocessing INFO     align_dataset_list aligning dataset 2 of 3
09/29/2016 13:11:02  pygeoprocessing.geoprocessing INFO     raster stack calculation approx. 12.59% complete
09/29/2016 13:11:07  pygeoprocessing.geoprocessing INFO     raster stack calculation approx. 25.36% complete
09/29/2016 13:11:12  pygeoprocessing.geoprocessing INFO     raster stack calculation approx. 37.77% complete
09/29/2016 13:11:17  pygeoprocessing.geoprocessing INFO     raster stack calculation approx. 50.00% complete
09/29/2016 13:11:22  pygeoprocessing.geoprocessing INFO     raster stack calculation approx. 62.14% complete
09/29/2016 13:11:27  pygeoprocessing.geoprocessing INFO     raster stack calculation approx. 73.66% complete
09/29/2016 13:11:32  pygeoprocessing.geoprocessing INFO     raster stack calculation approx. 85.62% complete
09/29/2016 13:11:37  pygeoprocessing.geoprocessing INFO     raster stack calculation approx. 98.93% complete
09/29/2016 13:11:39  natcap.invest.sdr  INFO     classifying streams from flow accumulation raster
09/29/2016 13:11:47  natcap.invest.sdr  INFO     calculate per pixel W
09/29/2016 13:11:48  root               ERROR    ---------------------------------------------------
09/29/2016 13:11:48  root               ERROR    ---------------------- ERROR ----------------------
09/29/2016 13:11:48  root               ERROR    ---------------------------------------------------
09/29/2016 13:11:48  root               ERROR    Error: exception found while running natcap.invest.sdr
09/29/2016 13:11:48  root               DEBUG    
09/29/2016 13:11:48  root               DEBUG    Build details
09/29/2016 13:11:48  root               DEBUG    Interpreter
09/29/2016 13:11:48  root               DEBUG    Current temp dir: C:\WORK\01_LENA\04_INVEST\01_OUTPUT\try3\tmp
09/29/2016 13:11:48  root               DEBUG    tempfile.tempdir: C:\WORK\01_LENA\04_INVEST\01_OUTPUT\try3\tmp
09/29/2016 13:11:48  root               DEBUG    
09/29/2016 13:11:48  root               DEBUG    System
09/29/2016 13:11:48  root               DEBUG    OS              : Windows-8-6.2.9200
09/29/2016 13:11:48  root               DEBUG    Processor architecture: AMD64
09/29/2016 13:11:48  root               DEBUG    FS encoding     : mbcs
09/29/2016 13:11:48  root               DEBUG    Preferred encoding: cp1251
09/29/2016 13:11:48  root               DEBUG    
09/29/2016 13:11:48  root               DEBUG    Python
09/29/2016 13:11:48  root               DEBUG    Version         : 2.7.9
09/29/2016 13:11:48  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
09/29/2016 13:11:48  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
09/29/2016 13:11:48  root               DEBUG    Implementation  : CPython
09/29/2016 13:11:48  root               DEBUG    Architecture    : 32bit
09/29/2016 13:11:48  root               DEBUG    Linkage format  : WindowsPE
09/29/2016 13:11:48  root               DEBUG    
09/29/2016 13:11:48  root               DEBUG    Packages
09/29/2016 13:11:48  root               DEBUG    Cython          : ?
09/29/2016 13:11:48  root               DEBUG    Numpy           : 1.11.0
09/29/2016 13:11:48  root               DEBUG    Scipy           : 0.16.0b2
09/29/2016 13:11:48  root               DEBUG    OSGEO           : 1.11.3
09/29/2016 13:11:48  root               DEBUG    Shapely         : 1.5.5
09/29/2016 13:11:48  root               DEBUG    InVEST          : 3.3.1
09/29/2016 13:11:48  root               DEBUG    
09/29/2016 13:11:48  root               DEBUG    
09/29/2016 13:11:48  root               DEBUG    Exception not environment-related
09/29/2016 13:11:48  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 560, 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 201, 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 544, in _calculate_w
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\pygeoprocessing.geoprocessing", line 1604, in reclassify_dataset_uri
KeyError: u'0'


09/29/2016 13:11:48  root               ERROR    Exiting due to failures
09/29/2016 13:11:48  root               INFO     Elapsed time: 8m 22.99s
Tagged:

Comments

  • RichRich Administrator, NatCap Staff
    Hi, this looks like an unusual error.  I can't figure out what might be going on just from looking at your log.  Would you mind dropboxing me your data to richsharp@stanford.edu and I'll see if I can recreate it on my end and offer a solution.
  • Thank you very much for the fast feedback. I haven't got enough free space on Dropbox, so I uploaded it on MEGA.nz the link is (here).
    Anyway can it an error in projections? I'm using Alberts Conic Projection not WGS unfortunatelly
  • RichRich Administrator, NatCap Staff
    Hi, your CSV file is semicolon delimited.  Sorry but InVEST can't handle those at the moment.  can you change it so it's comma delimted?  
  • I finally run the model. No problems with csv file! The problem was in the projection. I just converted evything to WGS and it works!

    Anyway thank you very much for the feedback!
Sign In or Register to comment.