I’ve been having trouble running the seasonal water yield. I get this error code:
ValueError: The soil group raster must only have groups 1, 2, 3 or 4. Invalid group(s) 0 were found in soil group raster
This is the soil raster I made using the reclassify tool on ArcGIS: soil_reclass.tif (578.6 KB)
Using reclassify, I modified the class 0 (wich was mostly water bodies) to become NODATA but the same error code popped up when I tried to run it again.
When I open the raster on ArcGIS, there is no class 0.
The raster you uploaded (‘soil_reclass.tif’) still has 0s.
Here is a version you can try in InVEST that I reclassified in ArcGIS Pro: soil_reclass_0s.tif (30.0 KB)
, with the Reclassify tool, like so:
But this creates holes in the input data.
Which will lead to holes in the model results. Ideally, the soil group raster would have valid values across the entire AOI so that the flow routing algorithm can determine a connected stream network.
Further, be sure your AOI is hydrologically complete, as in you want to be sure to capture the headwaters of the watershed.
Thanks for your input! I’m actually working on this with OP. I have another question though. We assumed it was normal to have areas with no data because, well, it’s water, not soil. So, are we supposed to have data in those spots? Did I get that right?
I would interpolate values where they are missing and then allow InVEST to determine where there are sinks, like lakes or ponds. Once the model runs, compare the ‘stream_[SUFFIX].tif’ result to a real stream map or with satellite imagery. That raster will be in the ‘intermediate_outputs’ folder. You may need to adjust the TFA value or the DEM layer to get it close to reality.
But the model should not have an issue with the reclassified soil group raster I shared, and should otherwise run, so feel free to try it out.