IndexError: list of index out of range_Habitat Risk Assessment tool

Hello All, 
When I tried to run the Habitat Risk Assessment Tool, there is an error occurred called "IndexError: list of index out of range". Below you can see the log details. 

Thanks for your help.


Initializing...

Showing messages with level INFO and higher

11/29/2018 08:53:13 natcap.invest.utils INFO Writing log messages to C:\Users\ecohyd\Desktop\CEGIS\LGED-Sunamgang project\HabitatRiskAssess\InVEST-Habitat-Risk-Assessment-log-2018-11-29--08_53_13.txt

11/29/2018 08:53:13 natcap.invest.ui.model Level 100 Starting model with parameters:

Arguments for InVEST natcap.invest.habitat_risk_assessment.hra 3.5.0:

aoi_tables C:/Users/ecohyd/Desktop/CEGIS/LGED-Sunamgang project/HabitatRiskAssess/Input/subregion.shp

csv_uri C:\Users\ecohyd\Desktop\CEGIS\LGED-Sunamgang project\habitat_stressor_ratings

decay_eq None

grid_size 200

max_rating 3

max_stress 2

results_suffix

risk_eq Euclidean

workspace_dir C:\Users\ecohyd\Desktop\CEGIS\LGED-Sunamgang project\HabitatRiskAssess


11/29/2018 08:53:14 natcap.invest.habitat_risk_assessment.hra INFO Rasterizing shapefile layers.

11/29/2018 08:53:15 natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO Distance Transform Phase 1

11/29/2018 08:53:15 natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO Distance Transform Phase 2

11/29/2018 08:53:16 natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO Distance Transform Phase 1

11/29/2018 08:53:16 natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO Distance Transform Phase 2

11/29/2018 08:53:18 natcap.invest.habitat_risk_assessment.hra_core INFO Applying CSV criteria to rasters.

11/29/2018 08:53:22 natcap.invest.habitat_risk_assessment.hra_core INFO Calculating risk rasters for individual overlaps.

11/29/2018 08:53:27 natcap.invest.habitat_risk_assessment.hra_core INFO Calculating habitat risk rasters.

11/29/2018 08:53:28 natcap.invest.habitat_risk_assessment.hra_core INFO Making risk shapefiles.

11/29/2018 08:53:29 osgeo ERROR [errno 1] C:\Users\ecohyd\Desktop\CEGIS\LGED-Sunamgang project\HabitatRiskAssess\output\Maps\[khals]_HIGH_RISK.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:30 osgeo ERROR [errno 1] c:\swat\temp\tmp_ie119.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:30 osgeo ERROR [errno 1] C:\Users\ecohyd\Desktop\CEGIS\LGED-Sunamgang project\HabitatRiskAssess\output\Maps\[multiplecrop]_HIGH_RISK.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:30 osgeo ERROR [errno 1] C:\Users\ecohyd\Desktop\CEGIS\LGED-Sunamgang project\HabitatRiskAssess\output\Maps\[multiplecrop]_MED_RISK.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:31 osgeo ERROR [errno 1] c:\swat\temp\tmpffly3e.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:31 osgeo ERROR [errno 1] c:\swat\temp\tmpvxuzlt.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:33 osgeo ERROR [errno 1] C:\Users\ecohyd\Desktop\CEGIS\LGED-Sunamgang project\HabitatRiskAssess\output\Maps\[settlement]_HIGH_RISK.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:33 osgeo ERROR [errno 1] C:\Users\ecohyd\Desktop\CEGIS\LGED-Sunamgang project\HabitatRiskAssess\output\Maps\[settlement]_MED_RISK.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:33 osgeo ERROR [errno 1] c:\swat\temp\tmp4kzxki.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:33 osgeo ERROR [errno 1] c:\swat\temp\tmpvpjmhl.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:33 osgeo ERROR [errno 1] C:\Users\ecohyd\Desktop\CEGIS\LGED-Sunamgang project\HabitatRiskAssess\output\Maps\[singlecrop]_HIGH_RISK.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:34 osgeo ERROR [errno 1] c:\swat\temp\tmpykw0er.tif, band 1: Failed to compute statistics, no valid pixels found in sampling.

11/29/2018 08:53:34 natcap.invest.habitat_risk_assessment.hra_core INFO Calculating ecosystem risk rasters.

11/29/2018 08:53:36 natcap.invest.habitat_risk_assessment.hra_core INFO Creating subregion maps and risk plots.

11/29/2018 08:53:36 osgeo WARNING [errno 1] Value 47737033.810099997 of field Shape_Area of feature 232 not successfully written. Possibly due to too larger number with respect to field width

11/29/2018 08:53:36 osgeo WARNING [errno 1] Value 14290563.8354 of field Shape_Area of feature 234 not successfully written. Possibly due to too larger number with respect to field width

11/29/2018 08:53:36 osgeo WARNING [errno 1] Value 47737033.810099997 of field Shape_Area of feature 232 not successfully written. Possibly due to too larger number with respect to field width

11/29/2018 08:53:36 osgeo WARNING [errno 1] Value 14290563.8354 of field Shape_Area of feature 234 not successfully written. Possibly due to too larger number with respect to field width

11/29/2018 08:53:40 natcap.invest.ui.model ERROR Exception while executing <function execute at 0x13B903F0>

Traceback (most recent call last):

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\habitat_risk_assessment\hra.py", line 435, in execute

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\habitat_risk_assessment\hra_core.py", line 194, in execute

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\habitat_risk_assessment\hra_core.py", line 315, in make_risk_plots

IndexError: list index out of range

11/29/2018 08:53:40 natcap.invest.ui.model INFO Execution finished

11/29/2018 08:53:40 natcap.invest.utils INFO Elapsed time: 27.37s

11/29/2018 08:53:40 natcap.invest.ui.execution ERROR Target <function _logged_target at 0x13B90C30> failed with exception

Traceback (most recent call last):

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\execution.py", line 68, in run

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\habitat_risk_assessment\hra.py", line 435, in execute

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\habitat_risk_assessment\hra_core.py", line 194, in execute

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\habitat_risk_assessment\hra_core.py", line 315, in make_risk_plots

IndexError: list index out of range

11/29/2018 08:53:40 natcap.invest.ui.execution INFO Execution finished


Thanks and sorry for any inconvenience.


Kind regards

Sohel

Sign In or Register to comment.