For instance limit the prediction to within -4 to 1, rather than allowing the calculator to predict values of up to -16, etc.
I'm still having some trouble getting this to work for me. I'm getting a couple of error messages when I try to run the raster calculator with SetNull. When I use both limiting values (-4 and 1), with this calculation SetNull("results" <-4 >1, "results"), I get this error message:ERROR 000539: Error running expression: rcexec() <type 'exceptions.ValueError'>: The truth value of a raster is ambiguous.
SetNull("results" < -4 or "results" > 1, "results") SetNull("results", "results", "VALUE < -4 OR VALUE > 1")
I limited the calculation to only limit to < -4 with this calculation SetNull("results" <-4, "results") and got this error message: 000539: Error running expression: rcexec() <type 'exceptions.RuntimeError'>: ERROR 010240: Could not save raster dataset to <Save Location> with output format IMAGINE Image
I'm using the expression: ((Con("Results" < -4, -4, "Results")) (Con("Results" > 1, 1, "Results")))
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.