# Habitat Quality model results nan

**URL:** <https://community.naturalcapitalalliance.org/t/habitat-quality-model-results-nan/3618>\
**Category:** Software Support\
**Tags:** habitat-quality\
**Created:** [April 12, 2023, 10:18am UTC](https://community.naturalcapitalalliance.org/t/habitat-quality-model-results-nan/3618 "2023-04-12T10:18:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gperilla](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@Gperilla](https://community.naturalcapitalalliance.org/u/Gperilla)\
**Post date:** [April 12, 2023, 10:18am UTC](https://community.naturalcapitalalliance.org/t/habitat-quality-model-results-nan/3618/1 "2023-04-12T10:18:39Z")

</div>

hello everyone,  
I’ve been running the HAbitat Quality model and It runs without errors, however the results only have data for a section of the area of interest, I’ve checked and all threads and landcover maps have the same area, so I dont know why it only have results for a portion of the area. It should have results for the whole area.

I’ve verified the threads and sensitivity tables, the coordinate system, the half saturation value, the extent of all layers (i’m using invest 3.12.1)  
cheking the intermediate folder, It appears that the issue has someting to do with the filtered rasters of amenazadeslizamiento and amenazacambioclimatico, since both of the filtered rasters are clipped

[habitat.zip](https://community.naturalcapitalalliance.org/uploads/short-url/nSV8yIs80T8XCQTu87YcgeI2fxe.zip) (336.9 KB)  
[deg\_sum\_c\_buc.tif](https://community.naturalcapitalalliance.org/uploads/short-url/bsR0k7BpjP6nczwltQuq9sl3N0c.tif) (815.2 KB)  
[InVEST-Habitat-Quality-log-2023-04-12–04\_59\_41.txt](https://community.naturalcapitalalliance.org/uploads/short-url/7hYOLaKsXsIFyusG41qflmzXlgy.txt) (53.6 KB)  
[quality\_c\_buc.tif](https://community.naturalcapitalalliance.org/uploads/short-url/5VZC3501LtydnxkbLMhl6xmbyFP.tif) (752.8 KB)

---

<div class="post-metadata">

**Author:** ![dave](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dave/32/70_2.png) [@dave](https://community.naturalcapitalalliance.org/u/dave)\
**Post date:** [April 12, 2023, 1:12pm UTC](https://community.naturalcapitalalliance.org/t/habitat-quality-model-results-nan/3618/2 "2023-04-12T13:12:49Z")

</div>

Hi @Gperilla , thanks for sharing your data. I cannot explain the incomplete results. But I do not see this problem with the latest version of InVEST (3.13.0), so please try it out. It includes this change:

> The model now uses an euclidean distance implementation for decaying  
> threat rasters both linearly and exponentially. Since InVEST 3.3.0 a  
> convolution implementation has been used, which reflected how  
> the density of a threat or surrounding threat pixels could have an  
> even greater, cumulative impact and degradation over space. However, this  
> was never properly documented in the User’s Guide and is not the approach  
> taken in the publication. The convolution implementation also produced  
> degradation and quality outputs that were difficult to interpret.  
> There should be a noticeable runtime improvement from calculating  
> euclidean distances vs convolutions.

[https://naturalcapitalproject.stanford.edu/software/invest](https://naturalcapitalproject.stanford.edu/software/invest)

---

<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:** [July 11, 2023, 1:13pm UTC](https://community.naturalcapitalalliance.org/t/habitat-quality-model-results-nan/3618/3 "2023-07-11T13:13:32Z")

</div>

Closed on July 11, 2023, 1:13pm UTC

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