Carbon model ValueError in 'value_map'

Dear all,
I ran Carbon model with REDD scenario_ InVEST_3.7, I got the error below. Could someone kindly help point out what am doing wrong & how I can fix it. Thanks for your help.

#error
The following 15 raster values [-3.4000000e+38 0.0000000e+00 2.6245880e-14 2.6245883e-14
1.5274328e-07 1.5274331e-07 1.7182995e-07 1.7182998e-07
1.7183001e-07 2.4820164e-07 3.2457325e-07 3.2457328e-07
9.9999970e-01 9.9999976e-01 9.9999982e-01] from “C:/Investdata/Carbon/Carbon_classproject/UTM/reddf.tif” do not have corresponding entries in the value_map: {1L: 592.29, 2L: 30.87, 3L: 27.0, 5L: 0.0}InVEST-InVEST-Carbon-Model-log-2019-06-14–23_14_42.txt (8.2 KB)

Hi there, the error is saying that any pixel value found in the raster must have an entry in the CSV carbon pools table, and redd.tiff has 15 unique pixel values that do not appear in that CSV table.

To resolve this you may want to reclassify your raster so that it only contains pixels with integer values that match those in the carbon pools table. And/or you may wish to add entries to the table. Many of those 15 raster values appear very large or very small, and may be meant to represent nodata. In that case you should also make sure there is a defined nodata value in your raster.

I have the same problem but I do not know how to define nodata in my raster, can someone help with this?

Hi @leonale -

Which GIS are you using? One easy way to do it with ArcGIS is to use CopyRaster and define the NoData value there. I’m not sure how to do it in QGIS, but a web search should provide pointers.

~ Stacie