threshold=arcpy.GetParameterAsText(2)
stream=GreaterThanEqual(facc_clip,threshold)
Error: Input Raster: Dataset 570416 does not exist or is not supported
Here 570416 is the value I input in the script tool, why is this error happening, I can replace threshold with 570416 and it works, but I want each time this to be an user input
PLEASE HELP
Solved! Go to Solution.
getparameterastext returns text.... you want a number, hence you have to convert it to a number
threshold = int(threshold)
getparameterastext returns text.... you want a number, hence you have to convert it to a number
threshold = int(threshold)
yes, now from a code snippet i used
threshold = float(threshold)
and it worked, Thanks I am new to this arcpy and python, thanks for your help DanPatterson 😞