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

error: Can only aggregate by integer based fields, requested field is of type Real

Hi.
i have a problem Running water yield model, obtained this error: Can only aggregate by integer based fields, requested field is of type  Real.
Somebody knows what is it? and how can i solve it?

Arguments:
biophysical_table_uri        C:/Users/Kevin/Desktop/Wateryield/u1bpt-obh7v.csv
depth_to_root_rest_layer_uri C:/Users/Kevin/Desktop/Wateryield/rootdepth.tif
eto_uri                      C:/Users/Kevin/Desktop/Wateryield/EToETo.tif
lulc_uri                     C:/Users/Kevin/Desktop/Wateryield/LULC.tif
pawc_uri                     C:/Users/Kevin/Desktop/Wateryield/PAWC.tif
precipitation_uri            C:/Users/Kevin/Desktop/Wateryield/precipitacion1.tif
results_suffix               
seasonality_constant         25
sub_watersheds_uri           C:/Users/Kevin/Desktop/Wateryield/subwatershed.shp
valuation_container          False
water_scarcity_container     False
watersheds_uri               C:/Users/Kevin/Desktop/Wateryield/Watershed.shp
workspace_dir                C:\Users\Kevin\Desktop\Wateryield\Salida


09/24/2018 14:08:58  root               INFO     Logging will be saved to natcap.invest.hydropower.hydropower_water_yield-log-2018-09-24--14_08_58.txt
09/24/2018 14:08:58  root               DEBUG    Loaded the model from natcap.invest.hydropower.hydropower_water_yield
09/24/2018 14:08:58  root               INFO     Executing the loaded model
09/24/2018 14:08:58  root               INFO     Running InVEST version "3.3.3"
09/24/2018 14:08:58  root               INFO     Python architecture: ('32bit', 'WindowsPE')
09/24/2018 14:08:58  root               INFO     Disk space remaining for workspace: 318.31 GB
09/24/2018 14:08:58  root               INFO     Pointing temporary directory at the workspace at C:\Users\Kevin\Desktop\Wateryield\Salida
09/24/2018 14:08:58  root               INFO     Starting natcap.invest.hydropower.hydropower_water_yield
09/24/2018 14:08:58  root               INFO     Setting tempfile.tempdir to C:\Users\Kevin\Desktop\Wateryield\Salida\tmp
09/24/2018 14:08:58  natcap.invest.hydropower.hydropower_water_yield INFO     Starting Water Yield Core Calculations
09/24/2018 14:08:59  natcap.invest.hydropower.hydropower_water_yield INFO     Reclassifying temp_Kc raster
09/24/2018 14:08:59  natcap.invest.hydropower.hydropower_water_yield INFO     Reclassifying tmp_root raster
09/24/2018 14:08:59  natcap.invest.hydropower.hydropower_water_yield INFO     Reclassifying tmp_veg raster
09/24/2018 14:08:59  natcap.invest.hydropower.hydropower_water_yield DEBUG    Calculate PET from Ref Evap times Kc
09/24/2018 14:08:59  natcap.invest.hydropower.hydropower_water_yield DEBUG    Performing fractp operation
09/24/2018 14:08:59  natcap.invest.hydropower.hydropower_water_yield DEBUG    {'Kc': -1.0, 'soil': 4294934528, 'pawc': -3.4028231e+38, 'veg': -1.0, 'precip': 2147483647, 'root': -1.0, 'eto': 2147483647}
09/24/2018 14:09:00  natcap.invest.hydropower.hydropower_water_yield DEBUG    Performing wyield operation
09/24/2018 14:09:00  osgeo.gdal         WARNING  [errno 1] Value 1638552455.95 of field Shape_Area of feature 0 not successfully written. Possibly due to too larger number with respect to field width
09/24/2018 14:09:01  natcap.invest.hydropower.hydropower_water_yield DEBUG    Performing aet operation
09/24/2018 14:09:01  root               ERROR    ---------------------------------------------------
09/24/2018 14:09:01  root               ERROR    ---------------------- ERROR ----------------------
09/24/2018 14:09:01  root               ERROR    ---------------------------------------------------
09/24/2018 14:09:01  root               ERROR    Error: exception found while running natcap.invest.hydropower.hydropower_water_yield
09/24/2018 14:09:01  root               DEBUG    
09/24/2018 14:09:01  root               DEBUG    Build details
09/24/2018 14:09:01  root               DEBUG    Interpreter
09/24/2018 14:09:01  root               DEBUG    Current temp dir: C:\Users\Kevin\Desktop\Wateryield\Salida\tmp
09/24/2018 14:09:01  root               DEBUG    tempfile.tempdir: C:\Users\Kevin\Desktop\Wateryield\Salida\tmp
09/24/2018 14:09:01  root               DEBUG    
09/24/2018 14:09:01  root               DEBUG    System
09/24/2018 14:09:01  root               DEBUG    OS              : Windows-8-6.2.9200
09/24/2018 14:09:01  root               DEBUG    Processor architecture: AMD64
09/24/2018 14:09:01  root               DEBUG    FS encoding     : mbcs
09/24/2018 14:09:01  root               DEBUG    Preferred encoding: cp1252
09/24/2018 14:09:01  root               DEBUG    
09/24/2018 14:09:01  root               DEBUG    Python
09/24/2018 14:09:01  root               DEBUG    Version         : 2.7.9
09/24/2018 14:09:01  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
09/24/2018 14:09:01  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
09/24/2018 14:09:01  root               DEBUG    Implementation  : CPython
09/24/2018 14:09:01  root               DEBUG    Architecture    : 32bit
09/24/2018 14:09:01  root               DEBUG    Linkage format  : WindowsPE
09/24/2018 14:09:01  root               DEBUG    
09/24/2018 14:09:01  root               DEBUG    Packages
09/24/2018 14:09:01  root               DEBUG    Cython          : ?
09/24/2018 14:09:01  root               DEBUG    Numpy           : 1.11.2
09/24/2018 14:09:01  root               DEBUG    Scipy           : 0.16.1
09/24/2018 14:09:01  root               DEBUG    OSGEO           : 1.11.3
09/24/2018 14:09:01  root               DEBUG    Shapely         : 1.5.5
09/24/2018 14:09:01  root               DEBUG    InVEST          : 3.3.3
09/24/2018 14:09:01  root               DEBUG    
09/24/2018 14:09:01  root               DEBUG    
09/24/2018 14:09:01  root               DEBUG    Exception not environment-related
09/24/2018 14:09:01  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.hydropower.hydropower_water_yield", line 416, in execute
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\pygeoprocessing.geoprocessing", line 805, in aggregate_raster_values_uri
TypeError: Can only aggregate by integer based fields, requested field is of type  Real

Comments

Sign In or Register to comment.