I want to reclassify a raster (variable) in model builder in two classes. First class ist 0-treshold = NoData and second is treshold-max value = 1. It works fine if i use an existing raster file as input (where i can state and know the max value) but not for variables in ModelBuilder.
Any ideas how to do it in ModelBuilder, or with ArcPy?
EDIT:
Here is my edited model, but it's not running yet.
Best Answer
Try this:
Replace your reclassify step with the following steps:
Define the following function in the code block
The function defined above accepts a flow accummulation raster, max flow value, a threshold and an output path. Values 0 - threshold are reclassed to NODATA and values from threshold to max value are reclassed to 1.
See sample model below.![enter image description here](https://i.stack.imgur.com/LXFUU.png)