土地利用模拟是flus模型运行出来的,flus模型正常的,但是加入invest中就出现了这种异常
2024-01-24 09:18:54,210 (natcap.invest.utils) utils.prepare_workspace(161) Level 100 Writing log messages to [C:\Users\Ljz\Desktop\InVEST-natcap.invest.carbon-log-2024-01-24--09_18_54.txt]
2024-01-24 09:18:54,219 (main) cli.main(459) Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.carbon 3.14.0:
calc_sequestration False
carbon_pools_path C:\shuju\shuju2\tangchi\carbon1(未修正).csv
discount_rate
do_redd False
do_valuation False
lulc_cur_path C:\Flus\flus\finshnet1200\yuce2005_2019\lucc2005\daochu\lucc2005.tif
lulc_cur_year
lulc_fut_path
lulc_fut_year
lulc_redd_path
n_workers -1
price_per_metric_ton_of_c
rate_change
results_suffix
workspace_dir C:\Users\Ljz\Desktop
2024-01-24 09:18:54,224 (natcap.invest.carbon) carbon.execute(364) INFO Building file registry
2024-01-24 09:18:54,265 (natcap.invest.carbon) carbon.execute(409) INFO Map all carbon pools to carbon storage rasters.
2024-01-24 09:18:54,265 (natcap.invest.carbon) carbon.execute(420) INFO Mapping carbon from 'lulc_cur_path' to 'c_above_cur' scenario.
2024-01-24 09:18:54,289 (pygeoprocessing.geoprocessing) geoprocessing.raster_calculator(470) INFO starting stats_worker
2024-01-24 09:18:54,289 (pygeoprocessing.geoprocessing) geoprocessing.raster_calculator(476) INFO started stats_worker <Thread(Thread-1 (stats_worker), started daemon 12460)>
2024-01-24 09:18:54,297 (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 [-9999] from "C:\Flus\flus\finshnet1200\yuce2005_2019\lucc2005\daochu\lucc2005.tif" do not have corresponding entries in the value map: {1: 3257.28, 2: 518.4, 3: 578.8799999999999, 4: 228.96, 5: 0.0, 6: 0.0, 0: 0.0}.
2024-01-24 09:18:54,297 (pygeoprocessing.geoprocessing) geoprocessing.raster_calculator(586) INFO Waiting for raster stats worker result.
2024-01-24 09:18:54,297 (pygeoprocessing.geoprocessing_core) threading.run(953) WARNING No valid pixels were received, sending None.
2024-01-24 09:18:54,297 (taskgraph.Task) Task.add_task(706) ERROR Something went wrong when adding task carbon_map_c_above_cur (0), terminating taskgraph.
Traceback (most recent call last):
File "natcap\invest\utils.py", line 993, 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 [-9999] from "C:\Flus\flus\finshnet1200\yuce2005_2019\lucc2005\daochu\lucc2005.tif" do not have corresponding entries in the value map: {1: 3257.28, 2: 518.4, 3: 578.8799999999999, 4: 228.96, 5: 0.0, 6: 0.0, 0: 0.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\carbon.py", line 553, in _generate_carbon_map
File "natcap\