# Seasonal Water Yield problems happened when creating the CN value

**URL:** <https://community.naturalcapitalalliance.org/t/seasonal-water-yield-problems-happened-when-creating-the-cn-value/548>\
**Category:** Software Support\
**Tags:** seasonal-water-yield\
**Created:** [October 14, 2019, 3:03pm UTC](https://community.naturalcapitalalliance.org/t/seasonal-water-yield-problems-happened-when-creating-the-cn-value/548 "2019-10-14T15:03:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![judyzuo](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@judyzuo](https://community.naturalcapitalalliance.org/u/judyzuo)\
**Post date:** [October 14, 2019, 3:03pm UTC](https://community.naturalcapitalalliance.org/t/seasonal-water-yield-problems-happened-when-creating-the-cn-value/548/1 "2019-10-14T15:03:49Z")

</div>

Hello, I had a problem with running SWY. I attached the log file. While browsing the net, I checked my soil group raster, land use raster and biophysical table and made sure that there weren’t the nodata pixel, the soil group only with 1-4, the biophysical table with all the landuse code. However, there was still the error…I think there must be something wrong with the biophysical table. Because when I delete one range, the indexerror number changed, like: index 20 is out of bounds for axis 1 with size 20. index 19 is out of bounds for axis 1 with size 19  
Also, I checked that the biophysical table doesn’t have a blank line at the end…☹  
I can’t figure out what’s wrong…[natcap.invest.seasonal\_water\_yield.seasonal\_water\_yield-log-2019-10-14–22\_58\_01.txt](https://community.naturalcapitalalliance.org/uploads/short-url/4ezUHQrCaPeMOVo7pGG8FmV9UoL.txt) (8.1 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:** [October 14, 2019, 4:01pm UTC](https://community.naturalcapitalalliance.org/t/seasonal-water-yield-problems-happened-when-creating-the-cn-value/548/2 "2019-10-14T16:01:47Z")

</div>

Hi @judyzuo -

You really did your homework to try and fix the problem - that’s great!

The one thing I see in the log file is that you’re using a really old version of InVEST (3.3.3). Is it possible for you to [try the latest version (3.7)](https://naturalcapitalproject.stanford.edu/invest/) and see if the error still occurs? If it does, then we might need to look at your data.

~ Stacie

---

<div class="post-metadata">

**Author:** ![judyzuo](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@judyzuo](https://community.naturalcapitalalliance.org/u/judyzuo)\
**Post date:** [October 14, 2019, 4:31pm UTC](https://community.naturalcapitalalliance.org/t/seasonal-water-yield-problems-happened-when-creating-the-cn-value/548/3 "2019-10-14T16:31:34Z")

</div>

oh, yes. I have also tried the new different versions and computers. The problem is the same…[for download the data](https://share.weiyun.com/5oB9T8p), if it’s slow…please give me the email~~:sweat\_smile:@swolny

---

<div class="post-metadata">

**Author:** ![judyzuo](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@judyzuo](https://community.naturalcapitalalliance.org/u/judyzuo)\
**Post date:** [October 15, 2019, 3:36am UTC](https://community.naturalcapitalalliance.org/t/seasonal-water-yield-problems-happened-when-creating-the-cn-value/548/4 "2019-10-15T03:36:39Z")

</div>

Ohlala~I solved the problem. That’s the lulc raster loss a few pixels at the edge of the study area!!  
Thank you for your patient answers for all the problems in this community. I saw another guy talked about this problem and checked my data. And the problem solved. 😄  
@swolny

---

<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 15, 2019, 4:31am UTC](https://community.naturalcapitalalliance.org/t/seasonal-water-yield-problems-happened-when-creating-the-cn-value/548/5 "2019-10-15T04:31:15Z")

</div>

I’m glad that the other forum posts helped, and you solved it! It sounds like something that our software team is looking into, so hopefully it won’t cause an error like that in the future.

So the lesson for Seasonal Water Yield is to make sure that you don’t have any NoData pixels in your input rasters that lie within the extent of the DEM. We do recommend clipping all of the inputs to our hydrology models not to the watershed polygon, but the watershed polygon buffered by a small amount, to make sure that all of the edge pixels are covered.

Thanks for letting us know @judyzuo!

~ Stacie
