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

Nutrient Retention ValueError

Hi All!
I'm working with the nutrient retention model and have run across a "ValueError". I'm not sure how to read the log to figure out where to look for the error. The log is below, any help would be appreciated. THANKS!


Initializing...

03/22/2016 16:25:48 root DEBUG PATH: ['C:\\InVEST_3_2_0_x86\\invest-3-x86\\.']

03/22/2016 16:25:48 root DEBUG Loading nutrient from PATH

Arguments:

accum_threshold 12

biophysical_table_uri G:/projects/14145/ENVIRONMENTAL/GIS/Data Sources/CT/BiophysicalCT.csv

calc_n True

calc_p True

dem_uri G:/projects/14145/ENVIRONMENTAL/GIS/shp/InVEST Data/CT/INVEST_LAYERS/dem_clipfil.tif

depth_to_root_rest_layer_uri G:/projects/14145/ENVIRONMENTAL/GIS/shp/InVEST Data/CT/INVEST_LAYERS/Depth2RestrLyr_mm.tif

eto_uri G:/projects/14145/ENVIRONMENTAL/GIS/shp/InVEST Data/CT/INVEST_LAYERS/Precip.tif

lulc_uri G:/projects/14145/ENVIRONMENTAL/GIS/shp/InVEST Data/CT/INVEST_LAYERS/NLCD.tif

pawc_uri G:/projects/14145/ENVIRONMENTAL/GIS/shp/InVEST Data/CT/INVEST_LAYERS/PAWC.tif

precipitation_uri G:/projects/14145/ENVIRONMENTAL/GIS/shp/InVEST Data/CT/INVEST_LAYERS/Precip.tif

seasonality_constant 5

valuation_enabled False

water_purification_threshold_table_uri C:/InVEST_3_2_0_x86/WP_Nutrient_Retention/Input/water_purification_threshold.csv

watersheds_uri G:/projects/14145/ENVIRONMENTAL/GIS/shp/InVEST Data/CT/INVEST_LAYERS/Watershed.shp

workspace_dir G:\projects\14145\ENVIRONMENTAL\GIS\Data Sources\CT\InVest



03/22/2016 16:25:48 root INFO Logging will be saved to nutrient-log-2016-03-22--16_25_48.txt

03/22/2016 16:25:48 root DEBUG Loaded the model from invest_natcap.nutrient.nutrient

03/22/2016 16:25:48 root INFO Executing the loaded model

03/22/2016 16:25:48 root INFO Running InVEST version "3.2.0"

03/22/2016 16:25:48 root INFO Python architecture: ('32bit', 'WindowsPE')

03/22/2016 16:25:48 root INFO Disk space remaining for workspace: 845.84 GB

an exception encountered when logging

03/22/2016 16:27:56 root INFO Pointing temporary directory at the workspace at G:\projects\14145\ENVIRONMENTAL\GIS\Data Sources\CT\InVest

03/22/2016 16:27:56 root INFO Updating os.environ["TMP"]=C:\Users\hemouna\AppData\Local\Temp to G:\projects\14145\ENVIRONMENTAL\GIS\Data Sources\CT\InVest

03/22/2016 16:27:56 root INFO Updating os.environ["TEMP"]=C:\Users\hemouna\AppData\Local\Temp to G:\projects\14145\ENVIRONMENTAL\GIS\Data Sources\CT\InVest

03/22/2016 16:27:56 root INFO Setting os.environ["TMPDIR"]=G:\projects\14145\ENVIRONMENTAL\GIS\Data Sources\CT\InVest

03/22/2016 16:27:56 root INFO Setting tempfile.tempdir to G:\projects\14145\ENVIRONMENTAL\GIS\Data Sources\CT\InVest\tmp

03/22/2016 16:27:56 root INFO Starting nutrient

03/22/2016 16:27:56 invest_natcap.hydropower.hydropower_water_yield INFO Starting Water Yield Core Calculations

03/22/2016 16:28:05 pygeoprocessing.geoprocessing INFO align_dataset_list aligning dataset 1 of 5

03/22/2016 16:28:11 pygeoprocessing.geoprocessing INFO align_dataset_list aligning dataset 3 of 5

03/22/2016 16:28:15 invest_natcap.hydropower.hydropower_water_yield INFO Reclassifying temp_Kc raster

03/22/2016 16:28:15 root ERROR ---------------------------------------------------

03/22/2016 16:28:15 root ERROR ---------------------- ERROR ----------------------

03/22/2016 16:28:15 root ERROR ---------------------------------------------------

03/22/2016 16:28:15 root ERROR Error: exception found while running nutrient

03/22/2016 16:28:15 root DEBUG

03/22/2016 16:28:15 root DEBUG Build details

03/22/2016 16:28:15 root DEBUG Interpreter

03/22/2016 16:28:15 root DEBUG Current temp dir: G:\projects\14145\ENVIRONMENTAL\GIS\Data Sources\CT\InVest\tmp

03/22/2016 16:28:15 root DEBUG tempfile.tempdir: G:\projects\14145\ENVIRONMENTAL\GIS\Data Sources\CT\InVest\tmp

03/22/2016 16:28:15 root DEBUG

03/22/2016 16:28:15 root DEBUG System

03/22/2016 16:28:15 root DEBUG OS : Windows-7-6.1.7601-SP1

03/22/2016 16:28:15 root DEBUG Processor architecture: AMD64

03/22/2016 16:28:15 root DEBUG FS encoding : mbcs

03/22/2016 16:28:15 root DEBUG Preferred encoding: cp1252

03/22/2016 16:28:15 root DEBUG

03/22/2016 16:28:15 root DEBUG Python

03/22/2016 16:28:15 root DEBUG Version : 2.7.9

03/22/2016 16:28:15 root DEBUG Build : ('default', 'Dec 10 2014 12:24:55')

03/22/2016 16:28:15 root DEBUG Compiler : MSC v.1500 32 bit (Intel)

03/22/2016 16:28:15 root DEBUG Implementation : CPython

03/22/2016 16:28:15 root DEBUG Architecture : 32bit

03/22/2016 16:28:15 root DEBUG Linkage format : WindowsPE

03/22/2016 16:28:15 root DEBUG

03/22/2016 16:28:15 root DEBUG Packages

03/22/2016 16:28:15 root DEBUG Cython : ?

03/22/2016 16:28:15 root DEBUG Numpy : 1.8.1

03/22/2016 16:28:15 root DEBUG Scipy : 0.15.1

03/22/2016 16:28:15 root DEBUG OSGEO : 1.10.1

03/22/2016 16:28:15 root DEBUG Shapely : 1.5.5

03/22/2016 16:28:15 root DEBUG InVEST : 3.2.0

03/22/2016 16:28:15 root DEBUG

03/22/2016 16:28:15 root DEBUG

03/22/2016 16:28:15 root DEBUG Exception not environment-related

03/22/2016 16:28:15 root DEBUG Printing traceback

Traceback (most recent call last):

File "invest_natcap\iui\executor.pyc", line 555, in runModel

File "invest_natcap\nutrient\nutrient.pyc", line 193, in execute

File "invest_natcap\hydropower\hydropower_water_yield.pyc", line 186, in execute

File "pygeoprocessing\geoprocessing.pyc", line 1619, in reclassify_dataset_uri

File "pygeoprocessing\geoprocessing.pyc", line 2386, in vectorize_datasets

File "pygeoprocessing\geoprocessing.pyc", line 1609, in map_dataset_to_value

ValueError: There was not a value for at least the following codes [0] for this file G:\projects\14145\ENVIRONMENTAL\GIS\Data Sources\CT\InVest\tmp\tmpz9ykyo.

Nodata value is: 255

None


03/22/2016 16:28:15 root ERROR Exiting due to failures

Comments

Sign In or Register to comment.