I am currently trying to create a landslide susceptibility map of an area using TRIGRS (a Fortran program for slope stability analysis), and running the elevation grid file along with a flow direction grid in TopoIndex (a sister program) is the first step to it. However, when TopoIndex starts to read the flow direction grid file that I provided, it shows an error message before exiting the program without producing any result. The error message goes like this:

? FORTRAN Runtime Error:

? Subscript is out of range for dimension 1 for array

? adr with bounds 1:255

File ./mpfldr.f; Line 20

This error does not show in the log file either, and I was only able to see this error message by trying to catch a screenshot of the window right before it closes. Attached is the image of the window showing the error message.

Is there anything wrong with the flow direction grid that I made, and if so, what corrections can I do to solve the error?

More Jhedy Amores's questions See All
Similar questions and discussions