Is there any way I could use the 'rasterread' function used in geomorphic flood index

I would really appreciate any help you can provide regarding the use of the 'rasterread' function. I get this 'Undefined function 'rasterread' for input arguments of type 'char'' error every time I tried to run the geomorphic flood index script. The function is there, but its on a folder named 'private'. Please help.

7 Kommentare

Where is the function from? Is it yours? 3rd party? Matlab toolbox? You seem to assume everyone knows what you are talking about when you say 'the geomorphic flood index script'! I have no clue what this is.
Adam, my question is pointed to anyone who has knowledge about rasterread. I may have overlooked to explain some important details, but I did not assumed everyone knows. If you do not know about it just say so and end of the story.
To state the obvious, you are passing the function a string and it is not what it expected.
In the code that I tracked down, that is not the reason for the error. However, since I might be looking at different software, my solution would only be an educated guess, so Wendell will need to ask the author of the software and ask them to be certain of getting the correct answer.
Then I misunderstood the error message. Baffles me how.
Jose-Luis... semantics of Matlab error messages. If the function exists but doesn't like the input type, the user would have gotten an error along the lines of "Invalid argument..." The above message translates as "Matlab couldn't find a function (or a character array object method) named rasterread."
Thanks for the clarification.
Today must be mental fart day. I must admit I am still confused by the phrasing.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

The author's name is given on that File Exchange contribution, along with a link to the author's profile. The author of the code is the only person who happens to know that code well enough already to be able to answer your question from their personal knowledge, so click the "Contact" information link on the author's profile and ask them.
The rest of the volunteers merely know MATLAB fairly well and would have a decent chance of answering the question if we knew the source location to read the code. But we do not know about it immediately, so we'll just say so, and that's the end of story from us.

Kategorien

Tags

Gefragt:

am 25 Aug. 2017

Kommentiert:

am 1 Sep. 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by