2024-01-23 19:47:34,764 (natcap.invest.utils) utils.prepare_workspace(161) Level 100 Writing log messages to [C:\Users\GT25\Desktop\Proyectos\Salar Qachuari\Modelo_calidadhabitat\InVEST-natcap.invest.habitat_quality-log-2024-01-23--19_47_34.txt] 2024-01-23 19:47:34,764 (__main__) cli.main(458) Level 100 Starting model with parameters: Arguments for InVEST natcap.invest.habitat_quality 3.13.0: access_vector_path half_saturation_constant 0.5 lulc_bas_path lulc_cur_path C:\Users\GT25\Desktop\Proyectos\Salar Qachuari\Modelo_calidadhabitat\lulc_sin_anp.tif lulc_fut_path n_workers -1 results_suffix 1 sensitivity_table_path C:\Users\GT25\Desktop\Proyectos\Salar Qachuari\Modelo_calidadhabitat\sensitivity.csv threats_table_path C:\Users\GT25\Desktop\Proyectos\Salar Qachuari\Modelo_calidadhabitat\threats.csv workspace_dir C:\Users\GT25\Desktop\Proyectos\Salar Qachuari\Modelo_calidadhabitat 2024-01-23 19:47:34,764 (natcap.invest.habitat_quality) habitat_quality.execute(362) INFO Starting execute of Habitat Quality model. 2024-01-23 19:47:34,764 (natcap.invest.habitat_quality) habitat_quality.execute(368) INFO Creating workspace 2024-01-23 19:47:34,773 (natcap.invest.habitat_quality) habitat_quality.execute(380) INFO Checking Threat and Sensitivity tables for compliance 2024-01-23 19:47:34,797 (natcap.invest.habitat_quality) habitat_quality.execute(404) INFO Validate threat rasters and collect unique LULC codes 2024-01-23 19:47:34,839 (natcap.invest.habitat_quality) habitat_quality.execute(459) INFO Checking threat raster values are valid ( 0 <= x <= 1 ). 2024-01-23 19:47:34,839 (natcap.invest.habitat_quality) habitat_quality.execute(470) INFO Aligning, resizing, and reprojecting raster inputs to that of the current land cover. 2024-01-23 19:47:34,942 (taskgraph.Task) Task.is_precalculated(1252) INFO not precalculated (align_input_rasters (11)), Task hash exists, but there are these mismatches: Modified times don't match cached: (1706047144897915648.000000) actual: (1706048300559297024.000000) Modified times don't match cached: (1706047143742806272.000000) actual: (1706048299493091840.000000) Modified times don't match cached: (1706047144316708096.000000) actual: (1706048300051847680.000000) Modified times don't match cached: (1706047145470391552.000000) actual: (1706048301109627136.000000) Modified times don't match cached: (1706047143303631616.000000) actual: (1706048299096286720.000000) Modified times don't match cached: (1706047146074894336.000000) actual: (1706048301692621824.000000) Modified times don't match cached: (1706047146692775424.000000) actual: (1706048302209595904.000000) Modified times don't match cached: (1706047147259010816.000000) actual: (1706048302759557888.000000) Modified times don't match cached: (1706047149026059008.000000) actual: (1706048304413397504.000000) Modified times don't match cached: (1706047149567463168.000000) actual: (1706048304977860352.000000) Modified times don't match cached: (1706047148396490240.000000) actual: (1706048303832997888.000000) Modified times don't match cached: (1706047147808874496.000000) actual: (1706048303281806336.000000) 2024-01-23 19:47:36,169 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 1 of 12 aligned: lulc_sin_anp_aligned_1.tif 2024-01-23 19:47:36,633 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 2 of 12 aligned: caminos_internos_aligned_1.tif 2024-01-23 19:47:37,152 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 3 of 12 aligned: ferrocarril_aligned_1.tif 2024-01-23 19:47:37,653 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 4 of 12 aligned: acueducto_aligned_1.tif 2024-01-23 19:47:38,124 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 5 of 12 aligned: gasoducto_aligned_1.tif 2024-01-23 19:47:38,659 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 6 of 12 aligned: parque_solar_aligned_1.tif 2024-01-23 19:47:39,213 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 7 of 12 aligned: piletas_aligned_1.tif 2024-01-23 19:47:39,864 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 8 of 12 aligned: planta_compresora_aligned_1.tif 2024-01-23 19:47:40,382 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 9 of 12 aligned: red_vial_provincial_aligned_1.tif 2024-01-23 19:47:40,907 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 10 of 12 aligned: red_vial_nacional_aligned_1.tif 2024-01-23 19:47:41,439 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 11 of 12 aligned: pueblos_aligned_1.tif 2024-01-23 19:47:42,060 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(996) INFO 12 of 12 aligned: puestos_aligned_1.tif 2024-01-23 19:47:42,060 (pygeoprocessing.geoprocessing) geoprocessing.align_and_resize_raster_stack(1000) INFO aligned all 12 rasters. 2024-01-23 19:47:42,069 (natcap.invest.habitat_quality) habitat_quality.execute(529) INFO Starting habitat_quality biophysical calculations 2024-01-23 19:47:42,369 (natcap.invest.habitat_quality) habitat_quality.execute(587) INFO Calculating habitat quality for landuse: C:\Users\GT25\Desktop\Proyectos\Salar Qachuari\Modelo_calidadhabitat\intermediate\lulc_sin_anp_aligned_1.tif 2024-01-23 19:47:42,393 (pygeoprocessing.geoprocessing) geoprocessing.raster_calculator(470) INFO starting stats_worker 2024-01-23 19:47:42,393 (pygeoprocessing.geoprocessing) geoprocessing.raster_calculator(476) INFO started stats_worker 2024-01-23 19:47:42,400 (pygeoprocessing.geoprocessing) geoprocessing.raster_calculator(571) ERROR exception encountered in raster_calculator Traceback (most recent call last): File "pygeoprocessing\geoprocessing.py", line 517, in raster_calculator File "pygeoprocessing\geoprocessing.py", line 2179, in _map_dataset_to_value_op pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from "C:\Users\GT25\Desktop\Proyectos\Salar Qachuari\Modelo_calidadhabitat\intermediate\lulc_sin_anp_aligned_1.tif" do not have corresponding entries in the value map: {1: 1.0, 2: 1.0, 3: 0.0, 4: 0.0, 6: 0.0, 7: 0.0, 8: 0.0, 9: 1.0, 10: 1.0, 11: 1.0, 12: 1.0, 13: 1.0}. 2024-01-23 19:47:42,409 (pygeoprocessing.geoprocessing) geoprocessing.raster_calculator(586) INFO Waiting for raster stats worker result. 2024-01-23 19:47:42,409 (pygeoprocessing.geoprocessing_core) threading.run(953) WARNING No valid pixels were received, sending None. 2024-01-23 19:47:42,409 (taskgraph.Task) Task.add_task(706) ERROR Something went wrong when adding task habitat_raster_c (13), terminating taskgraph. Traceback (most recent call last): File "natcap\invest\utils.py", line 1047, in reclassify_raster File "pygeoprocessing\geoprocessing.py", line 2186, in reclassify_raster File "pygeoprocessing\geoprocessing.py", line 517, in raster_calculator File "pygeoprocessing\geoprocessing.py", line 2179, in _map_dataset_to_value_op pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from "C:\Users\GT25\Desktop\Proyectos\Salar Qachuari\Modelo_calidadhabitat\intermediate\lulc_sin_anp_aligned_1.tif" do not have corresponding entries in the value map: {1: 1.0, 2: 1.0, 3: 0.0, 4: 0.0, 6: 0.0, 7: 0.0, 8: 0.0, 9: 1.0, 10: 1.0, 11: 1.0, 12: 1.0, 13: 1.0}. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "taskgraph\Task.py", line 674, in add_task File "taskgraph\Task.py", line 1093, in _call File "natcap\invest\utils.py", line 1057, in reclassify_raster ValueError: Values in the LULC_c raster were found that are not represented under the 'lucode' column of the Sensitivity table. The missing values found in the LULC_c raster but not the table are: [0]. 2024-01-23 19:47:42,409 (natcap.invest.utils) utils.prepare_workspace(166) ERROR Exception while executing natcap.invest.habitat_quality Traceback (most recent call last): File "natcap\invest\utils.py", line 1047, in reclassify_raster File "pygeoprocessing\geoprocessing.py", line 2186, in reclassify_raster File "pygeoprocessing\geoprocessing.py", line 517, in raster_calculator File "pygeoprocessing\geoprocessing.py", line 2179, in _map_dataset_to_value_op pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from "C:\Users\GT25\Desktop\Proyectos\Salar Qachuari\Modelo_calidadhabitat\intermediate\lulc_sin_anp_aligned_1.tif" do not have corresponding entries in the value map: {1: 1.0, 2: 1.0, 3: 0.0, 4: 0.0, 6: 0.0, 7: 0.0, 8: 0.0, 9: 1.0, 10: 1.0, 11: 1.0, 12: 1.0, 13: 1.0}. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "natcap\invest\utils.py", line 164, in prepare_workspace File "invest\cli.py", line 469, in main File "natcap\invest\habitat_quality.py", line 600, in execute File "taskgraph\Task.py", line 674, in add_task File "taskgraph\Task.py", line 1093, in _call File "natcap\invest\utils.py", line 1057, in reclassify_raster ValueError: Values in the LULC_c raster were found that are not represented under the 'lucode' column of the Sensitivity table. The missing values found in the LULC_c raster but not the table are: [0]. 2024-01-23 19:47:42,409 (natcap.invest.utils) utils.prepare_workspace(169) INFO Elapsed time: 7.65s 2024-01-23 19:47:42,409 (natcap.invest.utils) utils.prepare_workspace(172) INFO Execution finished