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

Water Yield ERROR

Hello

I am running the Water Yield model. I had the following ERROR. Could you help me?


Initializing...

05/03/2017 19:25:14 root DEBUG Loading <module 'natcap.invest.hydropower.hydropower_water_yield' from 'C:\PROGRA~2\INVEST~1.2_X\INVEST~1\natcap\invest\hydropower\hydropower_water_yield.pyc'> in frozen environment

Arguments:

biophysical_table_uri C:/Users/Natalia/Dropbox (CPI)/DOUTORADO/Water_Yield/Dados_Geo/INPUT/Tabela_Biof/Bio_Table3.csv

depth_to_root_rest_layer_uri C:/Users/Natalia/Dropbox (CPI)/DOUTORADO/Water_Yield/Dados_Geo/INPUT/Root_Layer/root.tif

eto_uri C:/Users/Natalia/Dropbox (CPI)/DOUTORADO/Water_Yield/Dados_Geo/INPUT/ETo/ETo_TopoRaster1.tif

lulc_uri C:/Users/Natalia/Dropbox (CPI)/DOUTORADO/Water_Yield/Dados_Geo/INPUT/LULC/Baseline_ano2011/Uso_Solo_Baseline.tif

pawc_uri C:/Users/Natalia/Dropbox (CPI)/DOUTORADO/Water_Yield/Dados_Geo/INPUT/PAWC/pawc.tif

precipitation_uri C:/Users/Natalia/Dropbox (CPI)/DOUTORADO/Water_Yield/Dados_Geo/INPUT/Precip/Preci_TopoRaster2.tif

results_suffix WY_run_1

seasonality_constant 5

sub_watersheds_uri

valuation_container False

water_scarcity_container False

watersheds_uri C:/Users/Natalia/Dropbox (CPI)/DOUTORADO/Water_Yield/Dados_Geo/INPUT/Watershed/watershedID.shp

workspace_dir C:\Users\Natalia\Dropbox (CPI)\DOUTORADO\Water_Yield\Dados_Geo\CORRIDAS\WY_run_1



05/03/2017 19:25:14 root INFO Logging will be saved to natcap.invest.hydropower.hydropower_water_yield-log-2017-05-03--19_25_14.txt

05/03/2017 19:25:14 root DEBUG Loaded the model from natcap.invest.hydropower.hydropower_water_yield

05/03/2017 19:25:14 root INFO Executing the loaded model

05/03/2017 19:25:14 root INFO Running InVEST version "3.3.2"

05/03/2017 19:25:14 root INFO Python architecture: ('32bit', 'WindowsPE')

05/03/2017 19:25:14 root INFO Disk space remaining for workspace: 586.79 GB

05/03/2017 19:25:14 root INFO Pointing temporary directory at the workspace at C:\Users\Natalia\Dropbox (CPI)\DOUTORADO\Water_Yield\Dados_Geo\CORRIDAS\WY_run_1

05/03/2017 19:25:14 root INFO Updating os.environ["TMP"]=C:\Users\Natalia\AppData\Local\Temp to C:\Users\Natalia\Dropbox (CPI)\DOUTORADO\Water_Yield\Dados_Geo\CORRIDAS\WY_run_1

05/03/2017 19:25:14 root INFO Updating os.environ["TEMP"]=C:\Users\Natalia\AppData\Local\Temp to C:\Users\Natalia\Dropbox (CPI)\DOUTORADO\Water_Yield\Dados_Geo\CORRIDAS\WY_run_1

05/03/2017 19:25:14 root INFO Setting os.environ["TMPDIR"]=C:\Users\Natalia\Dropbox (CPI)\DOUTORADO\Water_Yield\Dados_Geo\CORRIDAS\WY_run_1

05/03/2017 19:25:14 root INFO Setting tempfile.tempdir to C:\Users\Natalia\Dropbox (CPI)\DOUTORADO\Water_Yield\Dados_Geo\CORRIDAS\WY_run_1\tmp

05/03/2017 19:25:14 root INFO Starting natcap.invest.hydropower.hydropower_water_yield

05/03/2017 19:25:14 natcap.invest.hydropower.hydropower_water_yield INFO Starting Water Yield Core Calculations

05/03/2017 19:25:14 pygeoprocessing.geoprocessing WARNING These two datasets might not be in the same projection. The different projections are:


'filename: C:/Users/Natalia/Dropbox (CPI)/DOUTORADO/Water_Yield/Dados_Geo/INPUT/PAWC/pawc.tif'

PROJCS["Australian_Natl_S_Amer_1969_Polyconic",

GEOGCS["GCS_Australian_Natl_S_Amer_1969",

DATUM["D_unknown",

SPHEROID["aust_SA",6378160,298.25]],

PRIMEM["Greenwich",0],

UNIT["degree",0.0174532925199433]],

PROJECTION["Polyconic"],

PARAMETER["latitude_of_origin",0],

PARAMETER["central_meridian",-54],

PARAMETER["false_easting",5000000],

PARAMETER["false_northing",10000000],

UNIT["metre",1,

AUTHORITY["EPSG","9001"]]]


and:


'filename:C:/Users/Natalia/Dropbox (CPI)/DOUTORADO/Water_Yield/Dados_Geo/INPUT/LULC/Baseline_ano2011/Uso_Solo_Baseline.tif'

PROJCS["Australian_Natl_S_Amer_1969_Polyconic",

GEOGCS["GCS_Australian_Natl_S_Amer_1969",

DATUM["unknown",

SPHEROID["aust_SA",6378160,298.25]],

PRIMEM["Greenwich",0],

UNIT["degree",0.0174532925199433]],

PROJECTION["Polyconic"],

PARAMETER["latitude_of_origin",0],

PARAMETER["central_meridian",-54],

PARAMETER["false_easting",5000000],

PARAMETER["false_northing",10000000],

UNIT["metre",1,

AUTHORITY["EPSG","9001"]]]



05/03/2017 19:25:20 pygeoprocessing.geoprocessing INFO align_dataset_list aligning dataset 1 of 5

05/03/2017 19:25:27 pygeoprocessing.geoprocessing INFO align_dataset_list aligning dataset 3 of 5

05/03/2017 19:25:57 root ERROR ---------------------------------------------------

05/03/2017 19:25:57 root ERROR ---------------------- ERROR ----------------------

05/03/2017 19:25:57 root ERROR ---------------------------------------------------

05/03/2017 19:25:57 root ERROR Error: exception found while running natcap.invest.hydropower.hydropower_water_yield

05/03/2017 19:25:57 root DEBUG

05/03/2017 19:25:57 root DEBUG Build details

05/03/2017 19:25:57 root DEBUG Interpreter

05/03/2017 19:25:57 root DEBUG Current temp dir: C:\Users\Natalia\Dropbox (CPI)\DOUTORADO\Water_Yield\Dados_Geo\CORRIDAS\WY_run_1\tmp

05/03/2017 19:25:57 root DEBUG tempfile.tempdir: C:\Users\Natalia\Dropbox (CPI)\DOUTORADO\Water_Yield\Dados_Geo\CORRIDAS\WY_run_1\tmp

05/03/2017 19:25:57 root DEBUG

05/03/2017 19:25:57 root DEBUG System

05/03/2017 19:25:57 root DEBUG OS : Windows-8-6.2.9200

05/03/2017 19:25:57 root DEBUG Processor architecture: AMD64

05/03/2017 19:25:57 root DEBUG FS encoding : mbcs

05/03/2017 19:25:57 root DEBUG Preferred encoding: cp1252

05/03/2017 19:25:57 root DEBUG

05/03/2017 19:25:57 root DEBUG Python

05/03/2017 19:25:57 root DEBUG Version : 2.7.9

05/03/2017 19:25:57 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

05/03/2017 19:25:57 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

05/03/2017 19:25:57 root DEBUG Implementation : CPython

05/03/2017 19:25:57 root DEBUG Architecture : 32bit

05/03/2017 19:25:57 root DEBUG Linkage format : WindowsPE

05/03/2017 19:25:57 root DEBUG

05/03/2017 19:25:57 root DEBUG Packages

05/03/2017 19:25:57 root DEBUG Cython : ?

05/03/2017 19:25:57 root DEBUG Numpy : 1.11.2rc1

05/03/2017 19:25:57 root DEBUG Scipy : 0.16.1

05/03/2017 19:25:57 root DEBUG OSGEO : 1.11.3

05/03/2017 19:25:57 root DEBUG Shapely : 1.5.5

05/03/2017 19:25:57 root DEBUG InVEST : 3.3.2

05/03/2017 19:25:57 root DEBUG

05/03/2017 19:25:57 root DEBUG

05/03/2017 19:25:57 root DEBUG Exception not environment-related

05/03/2017 19:25:57 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 136, in execute

KeyError

: 'Kc'



05/03/2017 19:25:57 root ERROR Exiting due to failures




Follow my Bio_Table:


LULC_desclucodeKcroot_depthLULC_veg
URBANO30.3-10
Agricultura
(anual)
60.7254501
CERRADO20.7100001
AGUA51.2-10
Floresta41.037001
Pastagem70.6503001
Reflorestamento11.016001
BANCO DE AREIA80.5-10
APP vegetada91.037001

Comments

  • swolnyswolny Member, NatCap Staff
    Quick question about the biophysical table. Is the "(anual)" in the table on its own row in the table, or is it actually part of the "Agricultura" field, and just appears to be on its own line, but isn't really if you look in the .csv in Excel? If "(anual)" is on its own line, try deleting it and see if that helps.

    Can you check to make sure that there are no spaces in the "Kc" field name? You might try making a new field with that name and copying over the values and see if that helps.

    ~ Stacie
  • TAIAPFTAIAPF Member
    I'd checked both: spaces in the "Kc" field name and the "anual" row.
    I also took out the LULC_dec field.
    It continues appearing the same ERROR message.


  • TAIAPFTAIAPF Member

    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.hydropower.hydropower_water_yield", line 136, in execute

    KeyError: 'Kc'



    05/08/2017 12:20:03 root ERROR Exiting due to failures



  • RichRich Administrator, NatCap Staff
    A couple of things... Can you make sure the "Kc" in your table doesn't have any extra spaces before or after it?  That might mess with the lookup parser.  Also in the past I've seen tables that are semicolon delimited rather than comma delimited.   Can you check if your table is semicolon delimited?  An easy way might be to open it in notepad and see if it looks like "LULC_desc;lucode;Kc;root_depth" or "LULC_desc,lucode,Kc,root_depth".

    If none of that works, post again and we'll follow up more.
  • TAIAPFTAIAPF Member
    Hi Rich and Swolny

    It did work!
    It was the table with the semicolon delimitation.

    Thanks!

Sign In or Register to comment.