# Values in the LULC\_c raster were found that are not represented under the 'lucode' column of the Sensitivity table

**URL:** <https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109>\
**Category:** Software Support\
**Tags:** habitat-quality\
**Created:** [September 24, 2023, 1:42pm UTC](https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109 "2023-09-24T13:42:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alyssa](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Alyssa](https://community.naturalcapitalalliance.org/u/Alyssa)\
**Post date:** [September 24, 2023, 1:42pm UTC](https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109/1 "2023-09-24T13:42:43Z")

</div>

Hello,  
I’m running the 3.13.0 model for Habitat Quality. I encountered the following error:

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: [-128].

I am using the Habitat quality module to study habitat quality changes in river basins from 1980 to 2020. From 1980 to 2015, the model worked fine, but in 2020, there were some problems, I looked at some posts similar to my problem, and made some changes based on their solutions, in the sensitivity table, I added a row of data for the null value, and also defined the nodata value of the raster data as 0. But it still failed.

Here are the error details.  
[InVEST-natcap.invest.habitat\_quality-log-2023-09-24–21\_13\_36.txt](https://community.naturalcapitalalliance.org/uploads/short-url/sxDRU8g5zZYTgBBNdfZdTCrpGdi.txt) (7.4 KB)

Here are my attached Sensitivity table being used:  
[sensitivity3.csv](https://community.naturalcapitalalliance.org/uploads/short-url/7PqBtxtDNPfK5NDwNHuh4uKDpXj.csv) (724 Bytes)

I am using the translation software to express my question, there may be some mistakes, please forgive me.  
Thank you very much in advance!  
Regards,  
Alyssa

Please see the attached logfile and csv file for more details.

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [September 25, 2023, 3:22pm UTC](https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109/2 "2023-09-25T15:22:41Z")

</div>

Hi Alyssa -

Thanks for posting your log file. Can you also provide the LULC raster so we can compare it with the sensitivity table?

~ Stacie

---

<div class="post-metadata">

**Author:** ![Alyssa](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Alyssa](https://community.naturalcapitalalliance.org/u/Alyssa)\
**Post date:** [September 26, 2023, 6:44am UTC](https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109/3 "2023-09-26T06:44:39Z")

</div>

Thank you for your reply. Here is the LULC raster.  
[2020landuse2.tif](https://community.naturalcapitalalliance.org/uploads/short-url/dRRdH6pWi89XBoQSNWXvp1kYtlr.tif) (1.1 MB)

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [September 26, 2023, 2:50pm UTC](https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109/4 "2023-09-26T14:50:15Z")

</div>

Thanks Alyssa -

I just looked at your LULC map, and it does have many pixels with a value of -128, surrounding what appears to be the watershed/area of interest. These look like background values that are probably not intended to be valid LULC pixels. So you will need to set NoData to -128, using something like a Reclassify tool in GIS.

~ Stacie

---

<div class="post-metadata">

**Author:** ![Alyssa](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Alyssa](https://community.naturalcapitalalliance.org/u/Alyssa)\
**Post date:** [October 8, 2023, 12:42pm UTC](https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109/5 "2023-10-08T12:42:46Z")

</div>

Thank you very much, Stacie. Sorry for not replying to your message for so long, because we are on holiday for National Day these days.  
As you suggested, I set NoData to -128, but a new problem arose.

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: [15].

Here are the error details.  
[InVEST-natcap.invest.habitat\_quality-log-2023-10-08–20\_37\_42.txt](https://community.naturalcapitalalliance.org/uploads/short-url/wyz6swc1TcrfSwZcGMkmvRDMuaa.txt) (7.2 KB)

Regards  
Alyssa

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [October 9, 2023, 3:27pm UTC](https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109/6 "2023-10-09T15:27:00Z")

</div>

Hi Alyssa -

If you’re using the same sensitivity table that you sent me, it does not have an entry for LULC value 15.

~ Stacie

---

<div class="post-metadata">

**Author:** ![Alyssa](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Alyssa](https://community.naturalcapitalalliance.org/u/Alyssa)\
**Post date:** [October 12, 2023, 1:53am UTC](https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109/7 "2023-10-12T01:53:25Z")

</div>

Yes,I get it! LULC in previous years did not have value 15, but this year value 15 was added, I added a line of 15 in the sensitivity table, and now the model is finally running successfully! Thank you very much for your patient guidance!

Best regards,

Alyssa

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/8/8d95591aa074da87ea0fdd61ca47c1c3c0588aa7.png) [@system](https://community.naturalcapitalalliance.org/u/system)\
**Post date:** [October 19, 2023, 1:54am UTC](https://community.naturalcapitalalliance.org/t/values-in-the-lulc-c-raster-were-found-that-are-not-represented-under-the-lucode-column-of-the-sensitivity-table/4109/8 "2023-10-19T01:54:08Z")

</div>

Closed on October 19, 2023, 1:54am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
