What is the issue or question you have?
Error Shows that a raster value [0] from my tif file have no corresponding entries in the value map
What do you expect to happen?
i don’t have any 0 in my “Values” column of the Raster but “OID” column starts with 0, I can’t find the 0 mentioned in the error message.
What have you tried so far?
reclassified and added 0 but when i export to tif, the background of the map gets filled values i.e. colours
Upload the logfile using the
button
02/06/2025 02:28:45 natcap.invest.utils Level 100 Writing log messages to [F:\CWRDM NTA\KSC\InVest Output\Chung_Gemini\InVEST-natcap.invest.carbon-log-2025-02-06--02_28_45.txt]
02/06/2025 02:28:45 __main__ Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.carbon 3.14.3:
calc_sequestration False
carbon_pools_path C:\Users\THIS PC\Documents\Invest operations\Tables c pool\csv c pool\Chung_C_pool_03.csv
discount_rate
do_redd False
do_valuation False
lulc_cur_path C:\Users\THIS PC\Documents\ArcGIS\Projects\Chungathara for InVest 2\Feature_Chun2.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 ChungCStockGemini
workspace_dir F:\CWRDM NTA\KSC\InVest Output\Chung_Gemini
02/06/2025 02:28:45 natcap.invest.carbon INFO Building file registry
02/06/2025 02:28:45 natcap.invest.carbon INFO Map all carbon pools to carbon storage rasters.
02/06/2025 02:28:45 natcap.invest.carbon INFO Mapping carbon from 'lulc_cur_path' to 'c_above_cur' scenario.
02/06/2025 02:28:45 pygeoprocessing.geoprocessing INFO starting stats_worker
02/06/2025 02:28:45 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-1 (stats_worker), started daemon 16732)>
02/06/2025 02:28:45 pygeoprocessing.geoprocessing ERROR exception encountered in raster_calculator
Traceback (most recent call last):
File "pygeoprocessing\geoprocessing.py", line 475, in raster_calculator
File "pygeoprocessing\geoprocessing.py", line 2392, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from "C:\Users\THIS PC\Documents\ArcGIS\Projects\Chungathara for InVest 2\Feature_Chun2.tif" do not have corresponding entries in the value map: {np.int64(1): np.float64(0.0), np.int64(2): np.float64(0.0), np.int64(3): np.float64(0.0), np.int64(4): np.float64(0.0), np.int64(5): np.float64(0.0), np.int64(6): np.float64(0.0), np.int64(7): np.float64(0.0), np.int64(8): np.float64(0.0), np.int64(9): np.float64(0.0), np.int64(10): np.float64(0.0), np.int64(11): np.float64(0.0), np.int64(12): np.float64(0.0), np.int64(13): np.float64(0.0), np.int64(14): np.float64(0.0), np.int64(15): np.float64(0.0), np.int64(16): np.float64(0.0), np.int64(17): np.float64(0.0), np.int64(18): np.float64(0.0), np.int64(19): np.float64(0.0), np.int64(20): np.float64(0.0), np.int64(21): np.float64(0.0), np.int64(22): np.float64(0.0), np.int64(23): np.float64(0.0), np.int64(24): np.float64(0.0), np.int64(25): np.float64(0.0), np.int64(26): np.float64(0.0), np.int64(27): np.float64(0.0)}.
02/06/2025 02:28:45 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.
02/06/2025 02:28:45 pygeoprocessing.geoprocessing_core WARNING No valid pixels were received, sending None.
02/06/2025 02:28:45 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 763, in reclassify_raster
File "src\\pygeoprocessing\\geoprocessing_core.pyx", line 77, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File "src\\pygeoprocessing\\geoprocessing_core.pyx", line 78, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File "pygeoprocessing\geoprocessing.py", line 2399, in reclassify_raster
File "src\\pygeoprocessing\\geoprocessing_core.pyx", line 77, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File "src\\pygeoprocessing\\geoprocessing_core.pyx", line 78, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File "pygeoprocessing\geoprocessing.py", line 475, in raster_calculator
File "pygeoprocessing\geoprocessing.py", line 2392, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from "C:\Users\THIS PC\Documents\ArcGIS\Projects\Chungathara for InVest 2\Feature_Chun2.tif" do not have corresponding entries in the value map: {np.int64(1): np.float64(0.0), np.int64(2): np.float64(0.0), np.int64(3): np.float64(0.0), np.int64(4): np.float64(0.0), np.int64(5): np.float64(0.0), np.int64(6): np.float64(0.0), np.int64(7): np.float64(0.0), np.int64(8): np.float64(0.0), np.int64(9): np.float64(0.0), np.int64(10): np.float64(0.0), np.int64(11): np.float64(0.0), np.int64(12): np.float64(0.0), np.int64(13): np.float64(0.0), np.int64(14): np.float64(0.0), np.int64(15): np.float64(0.0), np.int64(16): np.float64(0.0), np.int64(17): np.float64(0.0), np.int64(18): np.float64(0.0), np.int64(19): np.float64(0.0), np.int64(20): np.float64(0.0), np.int64(21): np.float64(0.0), np.int64(22): np.float64(0.0), np.int64(23): np.float64(0.0), np.int64(24): np.float64(0.0), np.int64(25): np.float64(0.0), np.int64(26): np.float64(0.0), np.int64(27): np.float64(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 773, 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].
02/06/2025 02:28:45 natcap.invest.utils ERROR Exception while executing natcap.invest.carbon
Traceback (most recent call last):
File "natcap\invest\utils.py", line 763, in reclassify_raster
File "src\\pygeoprocessing\\geoprocessing_core.pyx", line 77, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File "src\\pygeoprocessing\\geoprocessing_core.pyx", line 78, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File "pygeoprocessing\geoprocessing.py", line 2399, in reclassify_raster
File "src\\pygeoprocessing\\geoprocessing_core.pyx", line 77, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File "src\\pygeoprocessing\\geoprocessing_core.pyx", line 78, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File "pygeoprocessing\geoprocessing.py", line 475, in raster_calculator
File "pygeoprocessing\geoprocessing.py", line 2392, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from "C:\Users\THIS PC\Documents\ArcGIS\Projects\Chungathara for InVest 2\Feature_Chun2.tif" do not have corresponding entries in the value map: {np.int64(1): np.float64(0.0), np.int64(2): np.float64(0.0), np.int64(3): np.float64(0.0), np.int64(4): np.float64(0.0), np.int64(5): np.float64(0.0), np.int64(6): np.float64(0.0), np.int64(7): np.float64(0.0), np.int64(8): np.float64(0.0), np.int64(9): np.float64(0.0), np.int64(10): np.float64(0.0), np.int64(11): np.float64(0.0), np.int64(12): np.float64(0.0), np.int64(13): np.float64(0.0), np.int64(14): np.float64(0.0), np.int64(15): np.float64(0.0), np.int64(16): np.float64(0.0), np.int64(17): np.float64(0.0), np.int64(18): np.float64(0.0), np.int64(19): np.float64(0.0), np.int64(20): np.float64(0.0), np.int64(21): np.float64(0.0), np.int64(22): np.float64(0.0), np.int64(23): np.float64(0.0), np.int64(24): np.float64(0.0), np.int64(25): np.float64(0.0), np.int64(26): np.float64(0.0), np.int64(27): np.float64(0.0)}.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "natcap\invest\utils.py", line 186, in prepare_workspace
File "invest\cli.py", line 472, 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 773, 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].
02/06/2025 02:28:45 natcap.invest.utils INFO Elapsed time: 0.25s
02/06/2025 02:28:45 natcap.invest.utils INFO Execution finished; version: 3.14.3