# Habitat Quality 3.7.0 ValueError: locating a threat raster in the input folder

**URL:** <https://community.naturalcapitalalliance.org/t/habitat-quality-3-7-0-valueerror-locating-a-threat-raster-in-the-input-folder/941>\
**Category:** Software Support\
**Tags:** habitat-quality\
**Created:** [April 17, 2020, 2:04am UTC](https://community.naturalcapitalalliance.org/t/habitat-quality-3-7-0-valueerror-locating-a-threat-raster-in-the-input-folder/941 "2020-04-17T02:04:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhyuan](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mhyuan](https://community.naturalcapitalalliance.org/u/mhyuan)\
**Post date:** [April 17, 2020, 2:04am UTC](https://community.naturalcapitalalliance.org/t/habitat-quality-3-7-0-valueerror-locating-a-threat-raster-in-the-input-folder/941/1 "2020-04-17T02:04:14Z")

</div>

I am working on another one - Habitat Quality. It shows error: “ValueError: There was an Error locating a threat raster in the input folder. One of the threat names in the CSV table does not match to a threat raster in the input folder. Please check that the names correspond. The threat raster that could not be found is…”. I have upload messages here. Can you kindly check it up for me?  
Regards,  
[https://drive.google.com/open?id=1zTDfFwF5B62TdXe3G5aPx97kNiaxlqnu](https://drive.google.com/open?id=1zTDfFwF5B62TdXe3G5aPx97kNiaxlqnu)

---

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [April 17, 2020, 11:58am UTC](https://community.naturalcapitalalliance.org/t/habitat-quality-3-7-0-valueerror-locating-a-threat-raster-in-the-input-folder/941/2 "2020-04-17T11:58:50Z")

</div>

Hi @mhyuan,

The issue I think, is related to how the threat names are specified. You will want to remove the **\_c** from the Threat names in the Threat CSV and the Threat column names in the Sensitivity CSV. If you have threats _agriculture_ and _urban_ for _current_ and _future_ scenarios, you will want to adhere to the following:

**Threat Raster Folder** :  
Contains files with the names:

- agriculture\_c.tif
- agriculture\_f.tif
- urban\_c.tif
- urban\_f.tif

**Threats1.csv**  
MAX\_DIST, WEIGHT, THREAT, DECAY, DESCRIP  
4, 0.68, **agriculture** , linear, Agricultural lands  
7.1, 1, **urban** , exponential, Urban/developed

**Sensitivity Table**  
The threat headers would be: **L\_agriculture** and **L\_urban**

Best,

Doug

---

<div class="post-metadata">

**Author:** ![mhyuan](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mhyuan](https://community.naturalcapitalalliance.org/u/mhyuan)\
**Post date:** [April 21, 2020, 2:46am UTC](https://community.naturalcapitalalliance.org/t/habitat-quality-3-7-0-valueerror-locating-a-threat-raster-in-the-input-folder/941/3 "2020-04-21T02:46:42Z")

</div>

Hi,  
Thanks for your suggestion. There is not any future scenario for threats. I modified both Threat CSV, Sensitivity CSV, and Threat Raster Folder accordingly. Although it doesn’t show error information, it takes more than 16 hours and shows “Memory Error”. I was wondering what will be the problem of it? Can you kindly check it for me?

[https://drive.google.com/drive/folders/1eZpVj0evNZNos93eZe5auF8z0ffr8yL-?usp=sharing](https://drive.google.com/drive/folders/1eZpVj0evNZNos93eZe5auF8z0ffr8yL-?usp=sharing)

---

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [April 21, 2020, 12:33pm UTC](https://community.naturalcapitalalliance.org/t/habitat-quality-3-7-0-valueerror-locating-a-threat-raster-in-the-input-folder/941/4 "2020-04-21T12:33:00Z")

</div>

Hi @mhyuan,

I’m happy to take a look. I did notice that you were running InVEST 3.7, could you try downloading [InVEST-3.8.0](http://releases.naturalcapitalproject.org/invest/3.8.0/InVEST_3.8.0_x86_Setup.exe) and seeing if you have the same issues.

Best,

Doug
