Model running problem

I got a problem when I was running the model, which is shown as the picture.

Hi @frank -

Please post the entire log file (.txt) that the model produces in your Workspace, that may have additional information (like the listing of your data inputs) that can help us troubleshoot.

In general, that error indicates that one of your inputs may have been entered incorrectly, since the model is looking for a raster, but the format of the file is not recognized as a raster.

~ Stacie

Stacie’s absolutely right that the error is coming from something not being able to be opened as a raster, but I’d just like to add that the specific error here is coming from a part of the UI and shouldn’t have anything to do with how the model itself is running … this specific WARNING message can be ignored.

But as @swolny mentioned, it would be really helpful if you could attach your logfile from this run of the model so we can see if there was anything else going on here.


Appreciate your reply!

I ran the model for several times with the same data, what confused me is that the model doesn’t run successfully everytime, the picture I posted is the situation when I fail to run the model. I upload my successful running file, hope it would help us to figure out the problem.

InVEST-Sediment-Delivery-Ratio-Model-(SDR)-log-2021-07-18–12_44_05.txt (95.5 KB)

Thanks for your reply.

I have uploaded my logfile in the reply to @swolny .

Dear @swolny

I also have question about the theory of the model. How the model compute if the slope radian is a nagetive value and the sediment doescn’t reach the stream? Please see the attached picture.

Hi @frank -

Has anything changed with your inputs between the model runs that work and the runs that don’t? It would be useful to see a log file from one run that works and one run that doesn’t.

I’ll defer model theory to @jdouglass or someone else who knows the code well. It would be interesting to know what happens in those cases where a flow path does not reach the stream, or hit a NoData pixel, but gets stuck in a pit (if I’m interpreting your question correctly). I know that the model does a very simple fill of major pits, but there are surely many cases where there is a natural divot in the landscape, or other reason that sediment would reach a non-stream point and not get any further.

~ Stacie

It seems that I have deleted the failed file, but I’ll keep it when I run into the same problem. Would the sediment be an output if it reaches a non-stream point?

Actually, could you provide the logfile from when the model didn’t run? That will be very helpful in trying to see if there was an issue.

The model will fill all hydrological sinks (including very large sinks and 1-pixel ‘divots’), so that’s everything where water would not flow out. So then @frank if pixel c in your chart is a hydrological sink (all surrounding pixels are higher than c), the model will raise the pixel value of c so that it drains into the nearest downward pixel. In this case it might be d, but it also depends on the other surrounding pixels. The end result will be that the flow path from a would reach the stream.

Nodata holes are not filled, though … those are left alone as nodata, but be forewarned that the flow path may flow in to the nodata hole.

Thank you, It’s very helpful.

I’m sorry I have deleted the file when the model fail to run, but I’ll keep it next time.

Hi @swolny

I get the model results with usle, export and deposition, but they are all .tif format with no attribute tables. I tyied to extract the raster to point to get the value of each pixel (I’m doing this process), maybe I’ll change the type of the value field to get the arttribute table. I just would like to know how you guys process the model results.


Hi @frank -

I’m glad that you got the model to run. The raster results are floating point values, and I’ve never seen raster attribute tables supported for floating point types. ArcGIS supports raster attribute tables for data types that are integer, string, etc, but not floating point. QGIS doesn’t support raster attribute tables at all, for any type.

What do you want to do with the results? Most often we make simple maps of sediment export, to see where erosion is being generated in the watershed that’s likely to impact water quality. We may also aggregate sediment export within a watershed, to quantify how much is being delivered to a point of interest at the watershed outlet, like a reservoir or drinking water supply. If we have scenarios, we’ll create change maps to see which areas increase or decrease in erosion due to some future change in management, climate, etc. It really depends on what are the questions or decisions you’re trying to inform.

~ Stacie

1 Like

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