2020-06-24 13:35:42,730 utils.prepare_workspace(111) INFO Writing log messages to C:\Users\GIS\Documents\urban_flood_risk_mitigation_workspace\InVEST-UrbanFloodRiskMitigation-log-2020-06-24--13_35_42.txt 2020-06-24 13:35:42,730 model._logged_target(1629) Level 100 Starting model with parameters: Arguments for InVEST natcap.invest.urban_flood_risk_mitigation 3.8.2: aoi_watersheds_path C:/Users/GIS/Documents/CHEW/WP1.2 REMSENS/KENYA DATA/HYDROSHEDS-AFRICA/Nakuru-Watersheds2-proj.shp built_infrastructure_vector_path curve_number_table_path C:/Users/GIS/Documents/CHEW/WP1.2 REMSENS/INVEST/FLOOD/Biophysical_Table.csv infrastructure_damage_loss_table_path lulc_path C:/Users/GIS/Documents/CHEW/WP1.2 REMSENS/KENYA DATA/SDAT Data Description/sdat_1566_1_20200615_090645355-NAKURU-reproj.tif n_workers -1 rainfall_depth 10 results_suffix FLD soils_hydrological_group_raster_path C:/Users/GIS/Documents/CHEW/WP1.2 REMSENS/KENYA DATA/SDAT Data Description/sdat_1566_1_20200615_090645355-NAKURU-reproj3.tif workspace_dir C:\Users\GIS\Documents\urban_flood_risk_mitigation_workspace 2020-06-24 13:35:42,769 Task.__init__(137) DEBUG C:\Users\GIS\Documents\urban_flood_risk_mitigation_workspace\temp_working_dir_not_for_humans already exists, no need to make it 2020-06-24 13:35:42,772 Task._call(1002) DEBUG _call check if precalculated align raster stack (0) 2020-06-24 13:35:42,775 Task.is_precalculated(1139) DEBUG file_stat_list: [('c:\\users\\GIS\\documents\\chew\\wp1.2 remsens\\kenya data\\sdat data description\\sdat_1566_1_20200615_090645355-nakuru-reproj.tif', 'sizetimestamp', '29099::1592987544.979749::c:\\users\\GIS\\documents\\chew\\wp1.2 remsens\\kenya data\\sdat data description\\sdat_1566_1_20200615_090645355-nakuru-reproj.tif'), ('c:\\users\\GIS\\documents\\chew\\wp1.2 remsens\\kenya data\\sdat data description\\sdat_1566_1_20200615_090645355-nakuru-reproj3.tif', 'sizetimestamp', '57699::1592994933.908096::c:\\users\\GIS\\documents\\chew\\wp1.2 remsens\\kenya data\\sdat data description\\sdat_1566_1_20200615_090645355-nakuru-reproj3.tif'), ('c:\\users\\GIS\\documents\\chew\\wp1.2 remsens\\kenya data\\hydrosheds-africa\\nakuru-watersheds2-proj.shp', 'sizetimestamp', '44808::1592989992.259614::c:\\users\\GIS\\documents\\chew\\wp1.2 remsens\\kenya data\\hydrosheds-africa\\nakuru-watersheds2-proj.shp')] 2020-06-24 13:35:42,775 Task.is_precalculated(1140) DEBUG other_arguments: ['c:\\invest_3.8.2_x86\\in_target_path_list', 'c:\\invest_3.8.2_x86\\in_target_path_list', 'c:\\invest_3.8.2_x86\\mode', 'c:\\invest_3.8.2_x86\\mode', 240.24923022460024, -240.24923022460024, 'c:\\invest_3.8.2_x86\\intersection', (0, 0), ('c:\\invest_3.8.2_x86\\projcs["unknown",geogcs["wgs 84",datum["wgs_1984",spheroid["wgs 84",6378137,298.257223563,authority["epsg","7030"]],authority["epsg","6326"]],primem["greenwich",0],unit["degree",0.0174532925199433],authority["epsg","4326"]],projection["albers_conic_equal_area"],parameter["standard_parallel_1",20],parameter["standard_parallel_2",-23],parameter["latitude_of_center",0],parameter["longitude_of_center",25],parameter["false_easting",0],parameter["false_northing",0],unit["metre",1,authority["epsg","9001"]]]', 'c:\\invest_3.8.2_x86\\projcs["unknown",geogcs["wgs 84",datum["wgs_1984",spheroid["wgs 84",6378137,298.257223563,authority["epsg","7030"]],authority["epsg","6326"]],primem["greenwich",0],unit["degree",0.0174532925199433],authority["epsg","4326"]],projection["albers_conic_equal_area"],parameter["standard_parallel_1",20],parameter["standard_parallel_2",-23],parameter["latitude_of_center",0],parameter["longitude_of_center",25],parameter["false_easting",0],parameter["false_northing",0],unit["metre",1,authority["epsg","9001"]]]')] 2020-06-24 13:35:42,775 Task._execute_sqlite(1510) DEBUG file:///C:/Users/GIS/Documents/urban_flood_risk_mitigation_workspace/temp_working_dir_not_for_humans/taskgraph_data.db?mode=ro exists: True 2020-06-24 13:35:42,777 Task.is_precalculated(1217) DEBUG precalculated (Task object 375567792: {'exception_object': None, 'ignore_directories': True, 'ignore_path_list': [], 'priority': 0, 'self._reexecution_info': {'args_clean': [['c:\\users\\GIS\\documents\\chew\\wp1.2 ' 'remsens\\kenya data\\sdat data ' 'description\\sdat_1566_1_20200615_090645355-nakuru-reproj.tif', 'c:\\users\\GIS\\documents\\chew\\wp1.2 ' 'remsens\\kenya data\\sdat data ' 'description\\sdat_1566_1_20200615_090645355-nakuru-reproj3.tif'], ['in_target_path_list', 'in_target_path_list'], ['c:\\invest_3.8.2_x86\\mode', 'c:\\invest_3.8.2_x86\\mode'], (240.24923022460024, -240.24923022460024), 'c:\\invest_3.8.2_x86\\intersection'], 'file_stat_list': [('c:\\users\\GIS\\documents\\chew\\wp1.2 ' 'remsens\\kenya data\\sdat ' 'data ' 'description\\sdat_1566_1_20200615_090645355-nakuru-reproj.tif', 'sizetimestamp', '29099::1592987544.979749::c:\\users\\GIS\\documents\\chew\\wp1.2 ' 'remsens\\kenya data\\sdat ' 'data ' 'description\\sdat_1566_1_20200615_090645355-nakuru-reproj.tif'), ('c:\\users\\GIS\\documents\\chew\\wp1.2 ' 'remsens\\kenya data\\sdat ' 'data ' 'description\\sdat_1566_1_20200615_090645355-nakuru-reproj3.tif', 'sizetimestamp', '57699::1592994933.908096::c:\\users\\GIS\\documents\\chew\\wp1.2 ' 'remsens\\kenya data\\sdat ' 'data ' 'description\\sdat_1566_1_20200615_090645355-nakuru-reproj3.tif'), ('c:\\users\\GIS\\documents\\chew\\wp1.2 ' 'remsens\\kenya ' 'data\\hydrosheds-africa\\nakuru-watersheds2-proj.shp', 'sizetimestamp', '44808::1592989992.259614::c:\\users\\GIS\\documents\\chew\\wp1.2 ' 'remsens\\kenya ' 'data\\hydrosheds-africa\\nakuru-watersheds2-proj.shp')], 'func_name': 'align_and_resize_raster_stack', 'kwargs_clean': {'base_vector_path_list': ['c:\\users\\GIS\\documents\\chew\\wp1.2 ' 'remsens\\kenya ' 'data\\hydrosheds-africa\\nakuru-watersheds2-proj.shp'], 'raster_align_index': 0, 'target_sr_wkt': 'c:\\invest_3.8.2_x86\\projcs["unknown",geogcs["wgs ' '84",datum["wgs_1984",spheroid["wgs ' '84",6378137,298.257223563,authority["epsg","7030"]],authority["epsg","6326"]],primem["greenwich",0],unit["degree",0.0174532925199433],authority["epsg","4326"]],projection["albers_conic_equal_area"],parameter["standard_parallel_1",20],parameter["standard_parallel_2",-23],parameter["latitude_of_center",0],parameter["longitude_of_center",25],parameter["false_easting",0],parameter["false_northing",0],unit["metre",1,authority["epsg","9001"]]]'}, 'other_arguments': ['c:\\invest_3.8.2_x86\\in_target_path_list', 'c:\\invest_3.8.2_x86\\in_target_path_list', 'c:\\invest_3.8.2_x86\\mode', 'c:\\invest_3.8.2_x86\\mode', 240.24923022460024, -240.24923022460024, 'c:\\invest_3.8.2_x86\\intersection', (0, 0), ('c:\\invest_3.8.2_x86\\projcs["unknown",geogcs["wgs ' '84",datum["wgs_1984",spheroid["wgs ' '84",6378137,298.257223563,authority["epsg","7030"]],authority["epsg","6326"]],primem["greenwich",0],unit["degree",0.0174532925199433],authority["epsg","4326"]],projection["albers_conic_equal_area"],parameter["standard_parallel_1",20],parameter["standard_parallel_2",-23],parameter["latitude_of_center",0],parameter["longitude_of_center",25],parameter["false_easting",0],parameter["false_northing",0],unit["metre",1,authority["epsg","9001"]]]', 'c:\\invest_3.8.2_x86\\projcs["unknown",geogcs["wgs ' '84",datum["wgs_1984",spheroid["wgs ' '84",6378137,298.257223563,authority["epsg","7030"]],authority["epsg","6326"]],primem["greenwich",0],unit["degree",0.0174532925199433],authority["epsg","4326"]],projection["albers_conic_equal_area"],parameter["standard_parallel_1",20],parameter["standard_parallel_2",-23],parameter["latitude_of_center",0],parameter["longitude_of_center",25],parameter["false_easting",0],parameter["false_northing",0],unit["metre",1,authority["epsg","9001"]]]')], 'source_code_hash': 'da39a3ee5e6b4b0d3255bfef95601890afd80709'}, 'self._result': None, 'target_path_list': ['c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_lulc_fld.tif', 'c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_soils_hydrological_group_fld.tif'], 'task_id_hash': '5388f8e94aaf4a5f031bb4241a434d789669a6c1', 'task_name': 'align raster stack (0)', 'task_reexecution_hash': '503edea00f52e880e84f503f5d769862c6674060'}) 2020-06-24 13:35:42,785 Task.join(1227) DEBUG started taskgraph True 2020-06-24 13:35:42,785 Task.join(1230) DEBUG joining align raster stack (0) done executing: 2020-06-24 13:35:42,786 Task._call(1002) DEBUG _call check if precalculated create cn raster (1) 2020-06-24 13:35:42,788 Task.is_precalculated(1139) DEBUG file_stat_list: [('c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_lulc_fld.tif', 'sizetimestamp', '3129::1592995325.655281::c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_lulc_fld.tif'), ('c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_soils_hydrological_group_fld.tif', 'sizetimestamp', '4313::1592995325.833791::c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_soils_hydrological_group_fld.tif')] 2020-06-24 13:35:42,788 Task.is_precalculated(1140) DEBUG other_arguments: [1, 1, None, 'c:\\invest_3.8.2_x86\\raw', 0.0, 'c:\\invest_3.8.2_x86\\raw', -1, 'c:\\invest_3.8.2_x86\\raw', <12x4 sparse matrix of type '' with 44 stored elements in Compressed Sparse Row format>, 'c:\\invest_3.8.2_x86\\raw', 'c:\\invest_3.8.2_x86\\_lu_to_cn_op:', 'c:\\invest_3.8.2_x86\\in_target_path_list', 6, -1] 2020-06-24 13:35:42,788 Task._execute_sqlite(1510) DEBUG file:///C:/Users/GIS/Documents/urban_flood_risk_mitigation_workspace/temp_working_dir_not_for_humans/taskgraph_data.db?mode=ro exists: True 2020-06-24 13:35:42,789 Task.is_precalculated(1166) DEBUG not precalculated, Task hash does not exist (create cn raster (1)) 2020-06-24 13:35:42,789 Task.is_precalculated(1167) DEBUG is_precalculated full task info: Task object 389511024: {'exception_object': None, 'ignore_directories': True, 'ignore_path_list': [], 'priority': 0, 'self._reexecution_info': {'args_clean': [[('c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_lulc_fld.tif', 1), ('c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_soils_hydrological_group_fld.tif', 1), (None, 'c:\\invest_3.8.2_x86\\raw'), (0.0, 'c:\\invest_3.8.2_x86\\raw'), (-1, 'c:\\invest_3.8.2_x86\\raw'), (<12x4 sparse matrix of type '' with 44 stored elements in Compressed Sparse Row format>, 'c:\\invest_3.8.2_x86\\raw')], '_lu_to_cn_op:', 'in_target_path_list', 6, -1], 'file_stat_list': [('c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_lulc_fld.tif', 'sizetimestamp', '3129::1592995325.655281::c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_lulc_fld.tif'), ('c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_soils_hydrological_group_fld.tif', 'sizetimestamp', '4313::1592995325.833791::c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\aligned_soils_hydrological_group_fld.tif')], 'func_name': 'raster_calculator', 'kwargs_clean': {}, 'other_arguments': [1, 1, None, 'c:\\invest_3.8.2_x86\\raw', 0.0, 'c:\\invest_3.8.2_x86\\raw', -1, 'c:\\invest_3.8.2_x86\\raw', <12x4 sparse matrix of type '' with 44 stored elements in Compressed Sparse Row format>, 'c:\\invest_3.8.2_x86\\raw', 'c:\\invest_3.8.2_x86\\_lu_to_cn_op:', 'c:\\invest_3.8.2_x86\\in_target_path_list', 6, -1], 'source_code_hash': 'da39a3ee5e6b4b0d3255bfef95601890afd80709'}, 'self._result': None, 'target_path_list': ['c:\\users\\GIS\\documents\\urban_flood_risk_mitigation_workspace\\temp_working_dir_not_for_humans\\cn_raster_fld.tif'], 'task_id_hash': 'cd96a120b22cf545f8b01a69a3fa8f39b944b74c', 'task_name': 'create cn raster (1)', 'task_reexecution_hash': '54e200e41e94d0b2e50a8d970b57e5d28e22ee38'} 2020-06-24 13:35:42,790 Task._call(1006) DEBUG not precalculated create cn raster (1) 2020-06-24 13:35:42,791 Task._call(1068) DEBUG direct _func for task create cn raster (1) 2020-06-24 13:35:42,796 geoprocessing.raster_calculator(375) INFO starting stats_worker 2020-06-24 13:35:42,798 geoprocessing.raster_calculator(381) INFO started stats_worker 2020-06-24 13:35:42,807 geoprocessing.raster_calculator(486) INFO Waiting for raster stats worker result. 2020-06-24 13:35:42,807 threading.run(870) DEBUG payload is None, terminating 2020-06-24 13:35:42,807 threading.run(870) WARNING No valid pixels were received, sending None. 2020-06-24 13:35:42,808 Task.add_task(626) ERROR Something went wrong when adding task create cn raster (1), terminating taskgraph. Traceback (most recent call last): File "site-packages\natcap\invest\urban_flood_risk_mitigation.py", line 828, in _lu_to_cn_op File "<__array_function__ internals>", line 6, in choose File "site-packages\numpy\core\fromnumeric.py", line 433, in choose File "site-packages\numpy\core\fromnumeric.py", line 61, in _wrapfunc ValueError: invalid entry in choice array During handling of the above exception, another exception occurred: Traceback (most recent call last): File "site-packages\taskgraph\Task.py", line 592, in add_task File "site-packages\taskgraph\Task.py", line 1069, in _call File "site-packages\pygeoprocessing\geoprocessing.py", line 424, in raster_calculator File "site-packages\natcap\invest\urban_flood_risk_mitigation.py", line 832, in _lu_to_cn_op ValueError: invalid entry in choice array Check that the Soil Group raster does not contain values other than (1, 2, 3, 4) 2020-06-24 13:35:42,808 Task._terminate(756) DEBUG Invoking terminate. already terminated? False 2020-06-24 13:35:42,808 Task._terminate(762) DEBUG setting task done for align raster stack (0) 2020-06-24 13:35:42,809 Task._terminate(762) DEBUG setting task done for create cn raster (1) 2020-06-24 13:35:42,809 model._logged_target(1635) ERROR Exception while executing Traceback (most recent call last): File "site-packages\natcap\invest\urban_flood_risk_mitigation.py", line 828, in _lu_to_cn_op File "<__array_function__ internals>", line 6, in choose File "site-packages\numpy\core\fromnumeric.py", line 433, in choose File "site-packages\numpy\core\fromnumeric.py", line 61, in _wrapfunc ValueError: invalid entry in choice array During handling of the above exception, another exception occurred: Traceback (most recent call last): File "site-packages\natcap\invest\ui\model.py", line 1632, in _logged_target File "site-packages\natcap\invest\urban_flood_risk_mitigation.py", line 248, in execute File "site-packages\taskgraph\Task.py", line 592, in add_task File "site-packages\taskgraph\Task.py", line 1069, in _call File "site-packages\pygeoprocessing\geoprocessing.py", line 424, in raster_calculator File "site-packages\natcap\invest\urban_flood_risk_mitigation.py", line 832, in _lu_to_cn_op ValueError: invalid entry in choice array Check that the Soil Group raster does not contain values other than (1, 2, 3, 4) 2020-06-24 13:35:42,809 model._logged_target(1638) INFO Execution finished 2020-06-24 13:35:42,810 utils.prepare_workspace(117) INFO Elapsed time: 0.08s