# Error Monthly alpha Table

**URL:** <https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212>\
**Category:** Software Support\
**Tags:** seasonal-water-yield\
**Created:** [October 9, 2021, 9:38am UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212 "2021-10-09T09:38:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fconitz](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fconitz](https://community.naturalcapitalalliance.org/u/fconitz)\
**Post date:** [October 9, 2021, 9:38am UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212/1 "2021-10-09T09:38:24Z")

</div>

I wanted to run the Seasonal Water Yield module (inVEST v3.9.1) with a monthly alpha table. I added a column (named alpha) to the rain events table with values like 0.049154654… for every month (csv-file), and activated and linked the file in the directory. Yet, as soon as I do though, DEM, LULC, Soil Group and AOI turn to “invalid” (red cross). While with the simple Rain events table and a single alpha = 1/12 everything was validated correct. What can cause that? Work-around? Solution?  
Thanks for the help 🙂  
Felix

---

<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 11, 2021, 3:24pm UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212/2 "2021-10-11T15:24:32Z")

</div>

Hi @fconitz -

It’s strange that the rain events table would cause the spatial data to give an error. When you click on the red X, what is the error message?

~ Stacie

---

<div class="post-metadata">

**Author:** ![fconitz](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fconitz](https://community.naturalcapitalalliance.org/u/fconitz)\
**Post date:** [October 12, 2021, 7:19am UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212/3 "2021-10-12T07:19:55Z")

</div>

Hi Stacie,

for some reason when I started the SWY module today, every other input parameter was fine, but the monthly alpha table stating "Key is required but has no value ![monthlyalphatable](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/b/bd43e41d1bcf89b59603468ac58b65d8eca7c633.jpeg)  
this is how my table looks like (without the alpha-column in the Rainevents parameter input field).

Felix

---

<div class="post-metadata">

**Author:** ![fconitz](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fconitz](https://community.naturalcapitalalliance.org/u/fconitz)\
**Post date:** [October 12, 2021, 7:37am UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212/4 "2021-10-12T07:37:02Z")

</div>

After restarting the software, I tried again by remowing the events-column (in the manuel it reads like there must be only month and alpha-column!), but now it’s saying “Spatial file [directory]/MonthlyAlphaTable.csv has no projection” for all red crosses, namely DEM, LULC, Soil Group and AOI as well as Monthly Alpha Table .

---

<div class="post-metadata">

**Author:** ![fconitz](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fconitz](https://community.naturalcapitalalliance.org/u/fconitz)\
**Post date:** [October 12, 2021, 9:52am UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212/5 "2021-10-12T09:52:03Z")

</div>

I ran the old version 9.3.0 (2021-01-29T22:19:12.412Z - 140.0 MB) without problems. Though may be there happened a mistake in the code when updating to 3.9.1, recently?

---

<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 12, 2021, 3:36pm UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212/6 "2021-10-12T15:36:03Z")

</div>

Hey @fconitz, it looks like you found a bug with the latest version. I just replicated the issue by adding an alpha column to the rain events table (which you should definitely be able to do), giving it floating point values, entering it into the 3.9.1 UI, and I got the same errors as you, about the CSV having no projection (which is just wrong, it’s not a spatial layer), and “Key is required but has no value” (I have no idea what it’s looking for and can’t find). I’ll ping the software team to look into this. Meanwhile, I’m glad that 3.9.0 works for you.

~ Stacie

---

<div class="post-metadata">

**Author:** ![esoth](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@esoth](https://community.naturalcapitalalliance.org/u/esoth)\
**Post date:** [October 13, 2021, 5:07pm UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212/7 "2021-10-13T17:07:00Z")

</div>

Hi @fconitz,  
Thanks for reporting this! We have identified and fixed the issue, and the fix will be released in InVEST 3.9.2 in the last week of this month (we are now trying out monthly scheduled releases).  
In the meantime, you can get around this issue by using the command line interface:

1. Save your inputs to a datastack JSON file (in the top menu, File \> Save as… \> Parameter set).
2. Open the command line and install the natcap.invest python package:

```auto
conda create -y -c conda-forge -n invest391 python=3.9.7 gdal=3.3.1 && conda activate invest391 && pip install natcap.invest==3.9.1

```

3. Run the model in headless mode (without the UI) using the `invest` command line interface:

```auto
invest -vvv run seasonal_water_yield --headless -d <path to your datastack JSON file> -w <path to workspace directory>

```

---

<div class="post-metadata">

**Author:** ![fconitz](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fconitz](https://community.naturalcapitalalliance.org/u/fconitz)\
**Post date:** [October 17, 2021, 8:10am UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212/8 "2021-10-17T08:10:56Z")

</div>

@swolny @esoth Thank you very much for the support and guidance!

Version 3.9.1 post464 doesn’t report any issue with the monthly alpha table anymore - Wonderful :)!

---

<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 24, 2021, 8:20am UTC](https://community.naturalcapitalalliance.org/t/error-monthly-alpha-table/2212/10 "2021-10-24T08:20:56Z")

</div>

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