2021-09-21 09:37:41,950 utils.prepare_workspace(123) INFO Writing log messages to C:\Users\benga\Documents\hra_workspace\InVEST-Habitat-Risk-Assessment-log-2021-09-21--09_37_41.txt 2021-09-21 09:37:41,954 model._logged_target(1646) Level 100 Starting model with parameters: Arguments for InVEST natcap.invest.hra 3.9.0: aoi_vector_path C:/Users/benga/OneDrive/Desktop/PhD/Phase 1/Geospatial data/Area of interest/Malaysia.shp criteria_table_path C:/Users/benga/OneDrive/Desktop/PhD/Phase 1/Geospatial data/CSV files/Criteria scores.csv decay_eq None info_table_path C:/Users/benga/OneDrive/Desktop/PhD/Phase 1/Geospatial data/CSV files/Habitat and stressor information .csv max_rating 3 n_workers -1 resolution 1000 results_suffix risk_eq Multiplicative visualize_outputs False workspace_dir C:\Users\benga\Documents\hra_workspace 2021-09-21 09:37:41,956 hra.execute(224) INFO Validating arguments 2021-09-21 09:37:41,957 validation._wrapped_validate_func(911) DEBUG Using ARG_SPEC for validation 2021-09-21 09:37:41,957 validation._wrapped_validate_func(915) INFO Starting whole-model validation with ARGS_SPEC 2021-09-21 09:37:41,958 validation.timeout(625) DEBUG Starting file checking thread with timeout=5 2021-09-21 09:37:46,968 warnings._showwarnmsg(110) WARNING C:\InVEST_3.9.0_x64\invest-3-x64\natcap\invest\validation.py:631: UserWarning: Validation of file C:/Users/benga/OneDrive/Desktop/PhD/Phase 1/Geospatial data/CSV files/Habitat and stressor information .csv timed out. If this file is stored in a file streaming service, it may be taking a long time to download. Try storing it locally instead. 2021-09-21 09:37:46,968 validation.timeout(625) DEBUG Starting file checking thread with timeout=5 2021-09-21 09:37:46,970 validation.timeout(637) DEBUG File checking thread completed. 2021-09-21 09:37:46,970 validation.timeout(625) DEBUG Starting file checking thread with timeout=5 2021-09-21 09:37:46,978 validation.timeout(637) DEBUG File checking thread completed. 2021-09-21 09:37:46,978 validation.timeout(625) DEBUG Starting file checking thread with timeout=5 2021-09-21 09:37:47,008 validation.timeout(637) DEBUG File checking thread completed. 2021-09-21 09:37:47,008 validation._wrapped_validate_func(962) DEBUG Validation warnings: [] 2021-09-21 09:37:47,008 hra.execute(230) INFO Validating criteria table file and return cleaned dataframe. 2021-09-21 09:37:47,019 hra._get_criteria_dataframe(2624) INFO Criteria dataframe was created successfully. 2021-09-21 09:37:47,240 hra._get_attributes_from_df(2694) DEBUG resilience_attributes: ['recruitment rate', 'natural mortality rate', 'connectivity rate', 'recovery time'] 2021-09-21 09:37:47,240 hra._get_attributes_from_df(2720) DEBUG stressor_attributes: {'Roads': ['frequency of disturbance', 'change in area rating', 'change in structure rating', 'temporal overlap rating', 'management effectiveness ', 'intensity rating '], 'MIN': ['frequency of disturbance', 'change in area rating', 'change in structure rating', 'temporal overlap rating', 'management effectiveness ', 'intensity rating '], 'OPL': ['frequency of disturbance', 'change in area rating', 'change in structure rating', 'temporal overlap rating', 'management effectiveness ', 'intensity rating '], 'SET': ['frequency of disturbance', 'change in area rating', 'change in structure rating', 'temporal overlap rating', 'management effectiveness ', 'intensity rating '], 'DCL': ['frequency of disturbance', 'change in area rating', 'change in structure rating', 'temporal overlap rating', 'management effectiveness ', 'intensity rating '], 'BRL': ['frequency of disturbance', 'change in area rating', 'change in structure rating', 'temporal overlap rating', 'management effectiveness ', 'intensity rating ']} 2021-09-21 09:37:47,310 hra._get_recovery_dataframe(3082) INFO Recovery dataframe was created successfully. 2021-09-21 09:37:47,316 hra._get_overlap_dataframe(2864) DEBUG multi_index: MultiIndex([('UDF', 'Roads'), ('UDF', 'MIN'), ('UDF', 'OPL'), ('UDF', 'SET'), ('UDF', 'DCL'), ('UDF', 'BRL'), ('DIF', 'Roads'), ('DIF', 'MIN'), ('DIF', 'OPL'), ('DIF', 'SET'), ('DIF', 'DCL'), ('DIF', 'BRL'), ('SCH', 'Roads'), ('SCH', 'MIN'), ('SCH', 'OPL'), ('SCH', 'SET'), ('SCH', 'DCL'), ('SCH', 'BRL'), ('GRS', 'Roads'), ('GRS', 'MIN'), ('GRS', 'OPL'), ('GRS', 'SET'), ('GRS', 'DCL'), ('GRS', 'BRL'), ('USF', 'Roads'), ('USF', 'MIN'), ('USF', 'OPL'), ('USF', 'SET'), ('USF', 'DCL'), ('USF', 'BRL'), ('DSF', 'Roads'), ('DSF', 'MIN'), ('DSF', 'OPL'), ('DSF', 'SET'), ('DSF', 'DCL'), ('DSF', 'BRL'), ('SSH', 'Roads'), ('SSH', 'MIN'), ('SSH', 'OPL'), ('SSH', 'SET'), ('SSH', 'DCL'), ('SSH', 'BRL'), ('SGR', 'Roads'), ('SGR', 'MIN'), ('SGR', 'OPL'), ('SGR', 'SET'), ('SGR', 'DCL'), ('SGR', 'BRL'), ('TPL', 'Roads'), ('TPL', 'MIN'), ('TPL', 'OPL'), ('TPL', 'SET'), ('TPL', 'DCL'), ('TPL', 'BRL'), ('MTC', 'Roads'), ('MTC', 'MIN'), ('MTC', 'OPL'), ('MTC', 'SET'), ('MTC', 'DCL'), ('MTC', 'BRL'), ('RCF', 'Roads'), ('RCF', 'MIN'), ('RCF', 'OPL'), ('RCF', 'SET'), ('RCF', 'DCL'), ('RCF', 'BRL'), ('UDM', 'Roads'), ('UDM', 'MIN'), ('UDM', 'OPL'), ('UDM', 'SET'), ('UDM', 'DCL'), ('UDM', 'BRL'), ('DIM', 'Roads'), ('DIM', 'MIN'), ('DIM', 'OPL'), ('DIM', 'SET'), ('DIM', 'DCL'), ('DIM', 'BRL'), ('WAB', 'Roads'), ('WAB', 'MIN'), ('WAB', 'OPL'), ('WAB', 'SET'), ('WAB', 'DCL'), ('WAB', 'BRL')], names=['HABITAT', 'STRESSOR']) 2021-09-21 09:37:48,956 hra._get_overlap_dataframe(2986) INFO Overlap dataframe was created successfully. 2021-09-21 09:37:48,963 hra.execute(299) INFO Target projection from AOI: Mercator_1SP. EPSG: 3857. Linear unit: 1.0. 2021-09-21 09:37:48,964 hra._has_field_name(1404) INFO The name field is not provided in the vector. 2021-09-21 09:37:48,964 hra.execute(324) INFO Simplifying AOI vector without subregion field. 2021-09-21 09:37:48,967 hra.execute(338) INFO Rasterizing AOI vector. 2021-09-21 09:37:55,796 geoprocessing.logger_callback(3402) INFO RasterizeLayer 52.4% complete 2021-09-21 09:38:00,972 geoprocessing.logger_callback(3402) INFO RasterizeLayer 87.3% complete 2021-09-21 09:38:02,803 geoprocessing.logger_callback(3402) INFO RasterizeLayer 100.0% complete 2021-09-21 09:38:04,296 hra.execute(409) INFO Rasterizing UDF vector. 2021-09-21 09:38:04,306 hra.execute(409) INFO Rasterizing DIF vector. 2021-09-21 09:38:04,312 hra.execute(409) INFO Rasterizing SCH vector. 2021-09-21 09:38:04,318 hra.execute(409) INFO Rasterizing GRS vector. 2021-09-21 09:38:04,324 hra.execute(409) INFO Rasterizing USF vector. 2021-09-21 09:38:04,330 hra.execute(409) INFO Rasterizing DSF vector. 2021-09-21 09:38:04,336 hra.execute(409) INFO Rasterizing SSH vector. 2021-09-21 09:38:04,342 hra.execute(409) INFO Rasterizing SGR vector. 2021-09-21 09:38:04,348 hra.execute(409) INFO Rasterizing TPL vector. 2021-09-21 09:38:04,354 hra.execute(409) INFO Rasterizing MTC vector. 2021-09-21 09:38:04,360 hra.execute(409) INFO Rasterizing RCF vector. 2021-09-21 09:38:04,366 hra.execute(409) INFO Rasterizing UDM vector. 2021-09-21 09:38:04,372 hra.execute(409) INFO Rasterizing DIM vector. 2021-09-21 09:38:04,378 hra.execute(409) INFO Rasterizing WAB vector. 2021-09-21 09:38:04,384 hra.execute(409) INFO Rasterizing Roads vector. 2021-09-21 09:38:04,424 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:04,425 utils._log_gdal_errors(80) WARNING [errno 1] A geometry of type MULTILINESTRING is inserted into layer simplified_Roads of geometry type LINESTRING, which is not normally allowed by the GeoPackage specification, but the driver will however do it. To create a conformant GeoPackage, if using ogr2ogr, the -nlt option can be used to override the layer geometry type. This warning will no longer be emitted for this combination of layer and feature geometry type. 2021-09-21 09:38:04,433 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:04,453 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:04,463 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:04,568 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:04,592 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:04,679 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:05,146 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:07,799 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:15,050 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:16,325 utils._log_gdal_errors(80) WARNING [errno 1] OGR_G_Area() called against non-surface geometry type. 2021-09-21 09:38:19,661 Task.add_task(781) ERROR Something went wrong when adding task simplify_Roads_vector (31), terminating taskgraph. Traceback (most recent call last): File "site-packages\taskgraph\Task.py", line 747, in add_task File "site-packages\taskgraph\Task.py", line 1234, in _call File "site-packages\natcap\invest\hra.py", line 3148, in _simplify_geometry AttributeError: 'NoneType' object has no attribute 'SimplifyPreserveTopology' 2021-09-21 09:38:19,662 model._logged_target(1652) ERROR Exception while executing Traceback (most recent call last): File "site-packages\natcap\invest\ui\model.py", line 1649, in _logged_target File "site-packages\natcap\invest\hra.py", line 418, in execute File "site-packages\taskgraph\Task.py", line 747, in add_task File "site-packages\taskgraph\Task.py", line 1234, in _call File "site-packages\natcap\invest\hra.py", line 3148, in _simplify_geometry AttributeError: 'NoneType' object has no attribute 'SimplifyPreserveTopology' 2021-09-21 09:38:19,663 model._logged_target(1655) INFO Execution finished 2021-09-21 09:38:19,665 utils.prepare_workspace(129) INFO Elapsed time: 37.71s