Google earth engine

why does 95 line show error?

Hi @rtipandit

Welcome to FCC. I assume it is because Water_1991 is not defined like the error message states.

1 Like

so how do you to define it

It’s really hard to say without seeing all of the code. Can you share it, via GitHub or PasteBin or something similar?

The image and code you posted do not match. You have Water_1990 in the code and Water_1991 in the image.

I also have no idea where that data is coming from. If commenting out that line of code simply makes the next one fail it would point to you not having access to whatever the Water_someYear is.

BTW, the * next to “New Script” likely means you have not saved the script, so that might be part of the issue as well (or maybe it just denotes an unnamed script, not sure).

1 Like

thanks, i have found the mistake, training samples were missing here, so won’t run the codes.

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