Some Questions about carbon storage model [0] no data

What is the issue or question you have?

What do you expect to happen?

What have you tried so far?

Upload the logfile using the :outbox_tray: button

Hello everybody. I need your help…
please answer about my error code… Thx

09/11/2024 19:30:42 natcap.invest.utils Level 100 Writing log messages to [C:\Users\COM\Desktop\InVEST-natcap.invest.carbon-log-2024-09-11–19_30_42.txt]
09/11/2024 19:30:42 main Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.carbon 3.14.2:
calc_sequestration False
carbon_pools_path C:\Users\COM\Desktop\�ż�ź��.csv
discount_rate
do_redd False
do_valuation False
lulc_cur_path G:\���п�\�Ѱ�����û\gis �ڷ�\�ż�1.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 0
workspace_dir C:\Users\COM\Desktop

09/11/2024 19:30:42 natcap.invest.carbon INFO Building file registry
09/11/2024 19:30:42 py.warnings WARNING osgeo\gdal.py:312: FutureWarning: Neither gdal.UseExceptions() nor gdal.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.

09/11/2024 19:30:42 natcap.invest.carbon INFO Map all carbon pools to carbon storage rasters.
09/11/2024 19:30:42 natcap.invest.carbon INFO Mapping carbon from ‘lulc_cur_path’ to ‘c_above_cur’ scenario.
09/11/2024 19:30:42 pygeoprocessing.geoprocessing INFO starting stats_worker
09/11/2024 19:30:42 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-1 (stats_worker), started daemon 19452)>
09/11/2024 19:30:42 pygeoprocessing.geoprocessing ERROR exception encountered in raster_calculator
Traceback (most recent call last):
File “pygeoprocessing\geoprocessing.py”, line 495, in raster_calculator
File “pygeoprocessing\geoprocessing.py”, line 2409, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from “G:\���п�\�Ѱ�����û\gis �ڷ�\�ż�1.tif” do not have corresponding entries in the value map: {111: 0.0, 112: 0.0, 121: 0.0, 131: 0.0, 141: 0.0, 152: 0.0, 153: 0.0, 154: 0.0, 155: 0.0, 161: 0.0, 162: 0.0, 163: 0.0, 211: 0.0, 212: 0.0, 221: 0.0, 222: 0.0, 231: 0.0, 241: 0.0, 251: 0.0, 252: 0.0, 311: 0.006431, 321: 0.004287, 331: 0.005359, 411: 0.000417, 421: 0.00011499999999999999, 422: 0.00011499999999999999, 423: 0.00011499999999999999, 511: 0.0035240000000000002, 612: 0.0, 613: 0.0, 622: 0.0, 623: 0.0, 711: 0.0, 712: 0.0}.
09/11/2024 19:30:43 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.
09/11/2024 19:30:43 pygeoprocessing.geoprocessing_core WARNING No valid pixels were received, sending None.
09/11/2024 19:30:43 taskgraph.Task 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 732, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 2416, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 495, in raster_calculator
File “pygeoprocessing\geoprocessing.py”, line 2409, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from “G:\���п�\�Ѱ�����û\gis �ڷ�\�ż�1.tif” do not have corresponding entries in the value map: {111: 0.0, 112: 0.0, 121: 0.0, 131: 0.0, 141: 0.0, 152: 0.0, 153: 0.0, 154: 0.0, 155: 0.0, 161: 0.0, 162: 0.0, 163: 0.0, 211: 0.0, 212: 0.0, 221: 0.0, 222: 0.0, 231: 0.0, 241: 0.0, 251: 0.0, 252: 0.0, 311: 0.006431, 321: 0.004287, 331: 0.005359, 411: 0.000417, 421: 0.00011499999999999999, 422: 0.00011499999999999999, 423: 0.00011499999999999999, 511: 0.0035240000000000002, 612: 0.0, 613: 0.0, 622: 0.0, 623: 0.0, 711: 0.0, 712: 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 560, in _generate_carbon_map
File “natcap\invest\utils.py”, line 742, in reclassify_raster
ValueError: Values in the LULC raster were found that are not represented under the ‘lucode’ column of the Carbon Pools table. The missing values found in the LULC raster but not the table are: [0].
09/11/2024 19:30:43 natcap.invest.utils ERROR Exception while executing natcap.invest.carbon
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 732, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 2416, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 495, in raster_calculator
File “pygeoprocessing\geoprocessing.py”, line 2409, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from “G:\���п�\�Ѱ�����û\gis �ڷ�\�ż�1.tif” do not have corresponding entries in the value map: {111: 0.0, 112: 0.0, 121: 0.0, 131: 0.0, 141: 0.0, 152: 0.0, 153: 0.0, 154: 0.0, 155: 0.0, 161: 0.0, 162: 0.0, 163: 0.0, 211: 0.0, 212: 0.0, 221: 0.0, 222: 0.0, 231: 0.0, 241: 0.0, 251: 0.0, 252: 0.0, 311: 0.006431, 321: 0.004287, 331: 0.005359, 411: 0.000417, 421: 0.00011499999999999999, 422: 0.00011499999999999999, 423: 0.00011499999999999999, 511: 0.0035240000000000002, 612: 0.0, 613: 0.0, 622: 0.0, 623: 0.0, 711: 0.0, 712: 0.0}.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “natcap\invest\utils.py”, line 165, in prepare_workspace
File “invest\cli.py”, line 470, in main
File “natcap\invest\carbon.py”, line 421, in execute
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task.py”, line 1093, in _call
File “natcap\invest\carbon.py”, line 560, in _generate_carbon_map
File “natcap\invest\utils.py”, line 742, in reclassify_raster
ValueError: Values in the LULC raster were found that are not represented under the ‘lucode’ column of the Carbon Pools table. The missing values found in the LULC raster but not the table are: [0].
09/11/2024 19:30:43 natcap.invest.utils INFO Elapsed time: 0.97s
09/11/2024 19:30:43 natcap.invest.utils INFO Execution finished; version: 3.14.2

Hello @mimi310604 -

This error has been asked about many times before on this forum. Please use the Search function and look for part of the error message, such as “do not have corresponding entries in the value map” or “ReclassificationMissingValuesError” and see if any of those posts help solve the problem.

~ Stacie