IndexError: index 310 is out of bounds for axis 0 with size 183

irondaffodillirondaffodill Member
edited September 2016 in Marine Models
Getting Error with population layer. Please do help.

Arguments:
aoi_uri                    F:/NIOT/Orissa_geomorphology/AOI_Orissa.shp
area_computed              both
bathymetry_uri             C:/InVEST_3.3.1_x86/Base_Data/Marine/DEMs/global_dem/hdr.adf
cell_size                  1000
continental_shelf_uri      C:/InVEST_3.3.1_x86/CoastalProtection/Input/continentalShelf.shp
depth_contour              150
depth_threshold            0
elevation_averaging_radius 5000
exposure_proportion        0.8
geomorphology_uri          F:/NIOT/DATA/India/Geomorph_Orissa_trail.shp
landmass_uri               C:\InVEST_3.3.1_x86\Base_Data\Marine\Land\global_polygon.shp
max_fetch                  12000
mean_sea_level_datum       0
population_radius          1000
population_uri             C:/InVEST_3.3.1_x86/Base_Data/Marine/Population/global_pop/hdr.adf
rays_per_sector            1
relief_uri                 C:/InVEST_3.3.1_x86/Base_Data/Marine/DEMs/global_dem/hdr.adf
spread_radius              250
urban_center_threshold     5000
workspace_dir              C:\Users\Mohammed/Documents/coastal_vulnerability_workspace


09/26/2016 06:12:11  root               INFO     Logging will be saved to natcap.invest.coastal_vulnerability.coastal_vulnerability-log-2016-09-26--06_12_11.txt
09/26/2016 06:12:11  root               DEBUG    Loaded the model from natcap.invest.coastal_vulnerability.coastal_vulnerability
09/26/2016 06:12:11  root               INFO     Executing the loaded model
09/26/2016 06:12:11  root               INFO     Running InVEST version "3.3.1"
09/26/2016 06:12:11  root               INFO     Python architecture: ('32bit', 'WindowsPE')
09/26/2016 06:12:11  root               INFO     Disk space remaining for workspace: 45.09 GB
09/26/2016 06:12:11  root               INFO     Pointing temporary directory at the workspace at C:\Users\Mohammed/Documents/coastal_vulnerability_workspace
09/26/2016 06:12:11  root               INFO     Updating os.environ["TMP"]=C:\Users\Mohammed\AppData\Local\Temp to C:\Users\Mohammed/Documents/coastal_vulnerability_workspace
09/26/2016 06:12:11  root               INFO     Updating os.environ["TEMP"]=C:\Users\Mohammed\AppData\Local\Temp to C:\Users\Mohammed/Documents/coastal_vulnerability_workspace
09/26/2016 06:12:11  root               INFO     Setting os.environ["TMPDIR"]=C:\Users\Mohammed/Documents/coastal_vulnerability_workspace
09/26/2016 06:12:11  root               INFO     Setting tempfile.tempdir to C:\Users\Mohammed/Documents/coastal_vulnerability_workspace\tmp
09/26/2016 06:12:11  root               INFO     Starting natcap.invest.coastal_vulnerability.coastal_vulnerability
preprocessing inputs...
Pre-processing landmass...
detecting shore...
Pre-processing bathymetry...
Pre-processing population...
computing fetch...
09/26/2016 06:13:39  natcap.invest.coastal_vulerability.core WARNING  10 points have positive depth, set to -1.
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:3115: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:3169: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
done.
Pre-processing geomorphology...
Pre-processing continental shelf...
generated_uris
passing arguments to execute_core
09/26/2016 06:13:48  natcap.invest.coastal_vulerability.core DEBUG    structures not loaded. Missing key:['structures_uri']
Skipping structures.
Processing segment exposure...
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1267: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1268: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1270: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1271: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1272: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1273: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1275: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1276: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1289: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1286: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1253: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1254: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1255: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1256: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1257: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1258: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1259: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
C:\INVEST~1.1_X\INVEST~1\natcap\invest\coastal_vulnerability\coastal_vulnerability_core.py:1260: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Processing geomorphology...
Processing relief...
09/26/2016 06:13:50  pygeoprocessing.geoprocessing WARNING  this call is vectorizing which is deprecated and slow
09/26/2016 06:13:51  pygeoprocessing.geoprocessing WARNING  this call is vectorizing which is deprecated and slow
09/26/2016 06:13:51  natcap.invest.coastal_vulerability.core DEBUG    natural habitats not loaded. Missing key:['habitats_csv_uri']
Skipping natural habitats.
09/26/2016 06:13:51  natcap.invest.coastal_vulerability.core DEBUG    wind exposure not loaded. Missing key:['climatic_forcing_uri']
Skipping wind exposure.
09/26/2016 06:13:51  natcap.invest.coastal_vulerability.core DEBUG    wave exposure not loaded. Missing key:['climatic_forcing_uri']
Skipping wave exposure.
Processing surge potential...
09/26/2016 06:13:52  natcap.invest.coastal_vulerability.core DEBUG    sea level rise not loaded. Missing key:['sea_level_rise_uri']
Skipping sea level rise.
Processing coastal exposure...
09/26/2016 06:13:52  natcap.invest.coastal_vulerability.core INFO     adding layer geomorphology
09/26/2016 06:13:52  natcap.invest.coastal_vulerability.core INFO     adding layer relief
09/26/2016 06:13:52  natcap.invest.coastal_vulerability.core INFO     adding layer surge_potential
09/26/2016 06:13:52  pygeoprocessing.geoprocessing WARNING  this call is vectorizing which is deprecated and slow
09/26/2016 06:13:53  natcap.invest.coastal_vulerability.core DEBUG    coastal exposure no habitats not loaded. Missing key:['natural_habitats']
Skipping coastal exposure no habitats.
09/26/2016 06:13:53  natcap.invest.coastal_vulerability.core DEBUG    habitat role not loaded. Missing key:['coastal_exposure_no_habitats']
Skipping habitat role.
09/26/2016 06:13:53  natcap.invest.coastal_vulerability.core DEBUG    erosion exposure not loaded. Missing key:['natural_habitats', 'wave_exposure', 'sea_level_rise']
Skipping erosion exposure.
Processing population map...
09/26/2016 06:13:54  pygeoprocessing.geoprocessing WARNING  this call is vectorizing which is deprecated and slow
09/26/2016 06:13:54  natcap.invest.coastal_vulerability.core DEBUG    additional layer not loaded. Missing key:['additional_layer_uri']
Skipping additional layer.
Processing fetch...
09/26/2016 06:13:54  natcap.invest.coastal_vulerability.core DEBUG    structure edges not loaded. Missing key:['structure_edges']
Skipping structure edges.
Processing erodible shoreline...
09/26/2016 06:13:54  pygeoprocessing.geoprocessing WARNING  this call is vectorizing which is deprecated and slow
Processing continental shelf distance...
09/26/2016 06:13:54  natcap.invest.coastal_vulerability.core DEBUG    wind generated waves not loaded. Missing key:['wave_heights', 'wave_periods']
Skipping wind generated waves.
09/26/2016 06:13:54  natcap.invest.coastal_vulerability.core DEBUG    oceanic wave exposure not loaded. Missing key:['E_o']
Skipping oceanic wave exposure.
09/26/2016 06:13:54  natcap.invest.coastal_vulerability.core DEBUG    local wave exposure not loaded. Missing key:['E_l']
Skipping local wave exposure.
creating groups...
group coastal_exposure size 6
group population size 4
09/26/2016 06:13:55  root               ERROR    ---------------------------------------------------
09/26/2016 06:13:55  root               ERROR    ---------------------- ERROR ----------------------
09/26/2016 06:13:55  root               ERROR    ---------------------------------------------------
09/26/2016 06:13:55  root               ERROR    Error: exception found while running natcap.invest.coastal_vulnerability.coastal_vulnerability
09/26/2016 06:13:55  root               DEBUG    
09/26/2016 06:13:55  root               DEBUG    Build details
09/26/2016 06:13:55  root               DEBUG    Interpreter
09/26/2016 06:13:55  root               DEBUG    Current temp dir: C:\Users\Mohammed/Documents/coastal_vulnerability_workspace\tmp
09/26/2016 06:13:55  root               DEBUG    tempfile.tempdir: C:\Users\Mohammed/Documents/coastal_vulnerability_workspace\tmp
09/26/2016 06:13:55  root               DEBUG    
09/26/2016 06:13:55  root               DEBUG    System
09/26/2016 06:13:55  root               DEBUG    OS              : Windows-8-6.2.9200
09/26/2016 06:13:55  root               DEBUG    Processor architecture: AMD64
09/26/2016 06:13:55  root               DEBUG    FS encoding     : mbcs
09/26/2016 06:13:55  root               DEBUG    Preferred encoding: cp1252
09/26/2016 06:13:55  root               DEBUG    
09/26/2016 06:13:55  root               DEBUG    Python
09/26/2016 06:13:55  root               DEBUG    Version         : 2.7.9
09/26/2016 06:13:55  root               DEBUG    Build           : ('default', 'Dec 10 2014 12:24:55')
09/26/2016 06:13:55  root               DEBUG    Compiler        : MSC v.1500 32 bit (Intel)
09/26/2016 06:13:55  root               DEBUG    Implementation  : CPython
09/26/2016 06:13:55  root               DEBUG    Architecture    : 32bit
09/26/2016 06:13:55  root               DEBUG    Linkage format  : WindowsPE
09/26/2016 06:13:55  root               DEBUG    
09/26/2016 06:13:55  root               DEBUG    Packages
09/26/2016 06:13:55  root               DEBUG    Cython          : ?
09/26/2016 06:13:55  root               DEBUG    Numpy           : 1.11.0
09/26/2016 06:13:55  root               DEBUG    Scipy           : 0.16.0b2
09/26/2016 06:13:55  root               DEBUG    OSGEO           : 1.11.3
09/26/2016 06:13:55  root               DEBUG    Shapely         : 1.5.5
09/26/2016 06:13:55  root               DEBUG    InVEST          : 3.3.1
09/26/2016 06:13:55  root               DEBUG    
09/26/2016 06:13:55  root               DEBUG    
09/26/2016 06:13:55  root               DEBUG    Exception not environment-related
09/26/2016 06:13:55  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.coastal_vulnerability.coastal_vulnerability", line 200, in execute
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.coastal_vulnerability.coastal_vulnerability_core", line 403, in execute
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.coastal_vulnerability.coastal_vulnerability_core", line 848, in aggregate_tifs_from_directory
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.coastal_vulnerability.coastal_vulnerability_core", line 704, in convert_tifs_to_csv
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\exe\build\invest\out00-PYZ.pyz\natcap.invest.coastal_vulnerability.coastal_vulnerability_core", line 691, in convert_tif_to_csv
IndexError: index 310 is out of bounds for axis 0 with size 183


09/26/2016 06:13:55  root               ERROR    Exiting due to failures
09/26/2016 06:13:55  root               INFO     Elapsed time: 1m 44.77s
Post edited by irondaffodill on

Comments

  • Hi,

    This sounds like maybe it's a projection issue... double check that the sample data are in the same projection as your AOI. 

    Also try running the model using your data (it looks like the only thing that isn't sample data is the geomorphology, and your AOI correct?) but excluding the pop'n layer, to make sure it runs.  It looks like it crashed at the end, when it was trying to write the outputs... if you remove population and you get the same type of error on the next run, but with a different layer, it's likely it's a projection issue.  

    Let me know what you find w/this troubleshooting.

    Thanks,
    Jess



Sign In or Register to comment.