# InVEST Carbon model

**URL:** <https://community.naturalcapitalalliance.org/t/invest-carbon-model/210>\
**Category:** Software Support\
**Tags:** carbon\
**Created:** [June 10, 2019, 10:01am UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210 "2019-06-10T10:01:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nayanathara](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@Nayanathara](https://community.naturalcapitalalliance.org/u/Nayanathara)\
**Post date:** [June 10, 2019, 10:01am UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/1 "2019-06-10T10:01:15Z")

</div>

Dear sir, madam  
I’m running InVEST Carbon model version 3.5.0 and getting this error: ValueError encountered: bins must be monotonically increasing or decreasing. What should i do for correct this error.  
This is my carbon pools data.

| C\_above | C\_below | C\_soil | C\_dead | lucode | LULC\_Name |
| --- | --- | --- | --- | --- | --- |
| 0 | 0 | 0 | 0 | 0 | Built Up area |
| 0 | 0 | 0 | 0 | 1 | Canal- Wide |
| 3 | 2 | 8 | 1 | 2 | Chena |
| 0 | 0 | 0 | 0 | 3 | Ela |
| 140 | 70 | 35 | 12 | 4 | Forest |
| 5 | 5 | 15 | 2 | 5 | Garden |
| 15 | 35 | 30 | 4 | 6 | Grassland |
| 3 | 2 | 10 | 0 | 7 | Other plantation |
| 10 | 5 | 20 | 0 | 8 | Paddy |
| 0 | 0 | 0 | 0 | 9 | River |
| 80 | 50 | 100 | 25 | 10 | Rubber |
| 30 | 30 | 30 | 13 | 11 | Scrub |
| 0 | 0 | 0 | 0 | 12 | Tank with Bund |
| 0 | 0 | 0 | 0 | 13 | Tea |
| 0 | 0 | 0 | 0 | 14 | Water Hole |

---

<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:** [June 10, 2019, 4:53pm UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/2 "2019-06-10T16:53:09Z")

</div>

Hi @Nayanathara -

First, can you try using the [latest InVEST, version 3.7](https://naturalcapitalproject.stanford.edu/invest/)? That has a lot of bug fixes since 3.5, and this problem might go away. If you still get the error, let us know - thanks!

~ Stacie

---

<div class="post-metadata">

**Author:** ![Nayanathara](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@Nayanathara](https://community.naturalcapitalalliance.org/u/Nayanathara)\
**Post date:** [June 11, 2019, 1:41pm UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/3 "2019-06-11T13:41:42Z")

</div>

I;m running InVEST Carbon model 3.7 version, but output map didn’t display and carbon storage value was missing in the output report. I obtained results was given below.  
This document summarizes the results fromrunning the InVEST carbon model with the following data.

Report generated at 2019-06-11 18:59

| arg id | arg value |
| --- | --- |
| calc\_sequestration | False |
| n\_workers | -1 |
| results\_suffix | |
| do\_redd | False |
| workspace\_dir | C:\Users\user\Documents\carbon\_workspace |
| lulc\_cur\_path | C:/Users/user/Desktop/Sanuka/this.tif |
| carbon\_pools\_path | C:/Users/user/Desktop/LULC.csv |
| do\_valuation | False |

### Aggregate Results

| Description | Value | Units | Raw File |
| --- | --- | --- | --- |
| Total cur | 0.00 | Mg of C | C:\Users\user\Documents\carbon\_workspace\tot\_c\_cur.tif |

---

<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:** [June 11, 2019, 2:28pm UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/4 "2019-06-11T14:28:48Z")

</div>

Hi @Nayanathara -

Would you please post the logfile (.txt) that the model produces? It might give us an idea if something is going wrong. Thanks!

~ Stacie

---

<div class="post-metadata">

**Author:** ![Nayanathara](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@Nayanathara](https://community.naturalcapitalalliance.org/u/Nayanathara)\
**Post date:** [June 12, 2019, 6:16am UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/5 "2019-06-12T06:16:44Z")

</div>

Hi  
when i running InVEST carbon model version 3.7, model completed successfully. But my output tif file (c\_above\_cur, c\_below\_cur, c\_dead\_cur and c\_soil cur tif files) didn’t open. can you give me the reason behind from this.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/1X/17419a568562f17ee444af2a9ab62cb60760ae36.png)  
Thank you

---

<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:** [June 19, 2019, 3:03am UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/6 "2019-06-19T03:03:06Z")

</div>

Hi @Nayanathara -

When you say that the output files didn’t open, do you mean that you tried to view them in a GIS but couldn’t? Or something different? Please give us more information about what you were trying to do that didn’t work. Thanks.

~ Stacie

---

<div class="post-metadata">

**Author:** ![Nayanathara](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@Nayanathara](https://community.naturalcapitalalliance.org/u/Nayanathara)\
**Post date:** [June 20, 2019, 6:55am UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/7 "2019-06-20T06:55:02Z")

</div>

Hi .  
it didn’t open from GIS so i tried again InVEST Carbon model version 3.7 and getting this error.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/1X/d0d8a456327b04520d867b33af68f21b5c98c709.png)  
[InVEST-InVEST-Carbon-Model-log-2019-06-20–12\_19\_53.txt](https://community.naturalcapitalalliance.org/uploads/short-url/by6NW6XHDVnmpza79ey05RJMuou.txt) (4.2 KB)

---

<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:** [June 20, 2019, 2:32pm UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/8 "2019-06-20T14:32:03Z")

</div>

Hi @Nayanathara -

That error is saying that there are Values in your land use/land cover raster (85, 89, 189, 227 and 255) that do not have rows in the carbon pool table. So first, check to make sure that those values have corresponding **lucode** s in the carbon pool table.

If those values are already in the carbon pool table, check the table itself. The values in it must be separated by commas, not semicolons or any other character. You can’t see this in Excel, so open the file in a text editor.

Also, it is very helpful if you post the entire log file (.txt) that the model produces, not just the final error. Sometimes there is additional information in the log file that can help troubleshoot.

~ Stacie

---

<div class="post-metadata">

**Author:** ![Nayanathara](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@Nayanathara](https://community.naturalcapitalalliance.org/u/Nayanathara)\
**Post date:** [June 21, 2019, 2:52am UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/9 "2019-06-21T02:52:06Z")

</div>

Hi  
This is my entire log file  
[InVEST-InVEST-Carbon-Model-log-2019-06-21–08\_16\_59.txt](https://community.naturalcapitalalliance.org/uploads/short-url/wLmYAs5o22AZWqcxrHOdC5pnlGW.txt) (4.2 KB)

---

<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:** [June 21, 2019, 2:41pm UTC](https://community.naturalcapitalalliance.org/t/invest-carbon-model/210/10 "2019-06-21T14:41:50Z")

</div>

Thanks for posting the log file. Did you also verify that those land use raster values are also in the carbon pool table, and that the format of the table is correct?

~ Stacie
