Error running water yield model

Hi,

I'm running the water yield model and I am getting the following error:

KeyError encountered: "lucode"

The log is:

04/20/2016 11:15:39 natcap.invest.hydropower.hydropower_water_yield INFO Starting Water Scarcity

04/20/2016 11:15:39 root ERROR ---------------------------------------------------

04/20/2016 11:15:39 root ERROR ---------------------- ERROR ----------------------

04/20/2016 11:15:39 root ERROR ---------------------------------------------------

04/20/2016 11:15:39 root ERROR Error: exception found while running natcap.invest.hydropower.hydropower_water_yield

04/20/2016 11:15:39 root DEBUG

04/20/2016 11:15:39 root DEBUG Build details

04/20/2016 11:15:39 root DEBUG Interpreter

04/20/2016 11:15:39 root DEBUG Current temp dir: D:\GIS\2_Prod\Outcomes\wateryield_workspaceP\tmp

04/20/2016 11:15:39 root DEBUG tempfile.tempdir: D:\GIS\2_Prod\Outcomes\wateryield_workspaceP\tmp

04/20/2016 11:15:39 root DEBUG

04/20/2016 11:15:39 root DEBUG System

04/20/2016 11:15:39 root DEBUG OS : Windows-8-6.2.9200

04/20/2016 11:15:39 root DEBUG Processor architecture: AMD64

04/20/2016 11:15:39 root DEBUG FS encoding : mbcs

04/20/2016 11:15:39 root DEBUG Preferred encoding: cp1252

04/20/2016 11:15:39 root DEBUG

04/20/2016 11:15:39 root DEBUG Python

04/20/2016 11:15:39 root DEBUG Version : 2.7.9

04/20/2016 11:15:39 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

04/20/2016 11:15:39 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

04/20/2016 11:15:39 root DEBUG Implementation : CPython

04/20/2016 11:15:39 root DEBUG Architecture : 32bit

04/20/2016 11:15:39 root DEBUG Linkage format : WindowsPE

04/20/2016 11:15:39 root DEBUG

04/20/2016 11:15:39 root DEBUG Packages

04/20/2016 11:15:39 root DEBUG Cython : ?

04/20/2016 11:15:39 root DEBUG Numpy : 1.10.2rc1

04/20/2016 11:15:39 root DEBUG Scipy : 0.16.0b2

04/20/2016 11:15:39 root DEBUG OSGEO : 1.11.3

04/20/2016 11:15:39 root DEBUG Shapely : 1.5.5

04/20/2016 11:15:39 root DEBUG InVEST : 3.3.0

04/20/2016 11:15:39 root DEBUG

04/20/2016 11:15:39 root DEBUG

04/20/2016 11:15:39 root DEBUG Exception not environment-related

04/20/2016 11:15:39 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.hydropower.hydropower_water_yield", line 529, in execute

KeyError: 'lucode'



04/20/2016 11:15:39 root ERROR Exiting due to failures


Could anybody cast some light on what am I doing wrong?
Is it may be that the Field names in the raster appear in capital letters (e.g. LUCODE) while in the biophysical table are in small letters (e.g. lucode)? I have been trying to find a way to write the raster field names in small letters in ArcGIS (Add field option) but it automatically changes it to capital letters.

May be the problem has nothing to do with this!

Please let me know if you have any ideas

Thanks a lot!!
Best wishes,
Elena

Comments

  • elenaelena Member
    Hi again!

    Just realised the error: my demand table had the field name in capitals LUCODE instead of lucode. 

    Now the model is running!

    Thanks!
    Best
    Elena
This discussion has been closed.