
The Raster Calculator tool allows you to create and execute a Map Algebra expression that will output a raster.

It is not intended for use in scripting and is not available in the ArcPy Spatial Analyst module. This is the beauty of a model.The Raster Calculator tool is intended for use in the application only as a GP tool dialog box or in ModelBuilder. Because you’re not altering preceding processes, you don’t need to rerun the entire model. To find out, you would simply open the Buffer tool, enter the new distance value, and run the model again starting at the buffer process (right-click the Buffer tool and choose Run). After examining the model output layer on the map, you wonder what the impact would be if you used a 100-meter buffer instead. For example, suppose a model process created a 50-meter buffer around a map feature. Running a model as a tool or service has advantages for collaboration and sharing.Ī model’s final output may raise a question. You can also run outside of ModelBuilder by running the model as a tool or service. If you’ve validated, this shouldn’t happen. If a process turns gray, that means something needs to be fixed and the model stops running. The drop shadow indicates the process has completed correctly. As the model progresses, each process turns red and then gets a drop shadow. Run a model inside ModelBuilder by clicking the Run button. You have two options for running a model: inside or outside ModelBuilder. When you add a tool to a model by dragging it from the Catalog or Geoprocessing pane, its output element is also added and both elements are displayed in light gray.
#Model builder spatial analyst fails on python export pro#
During validation, if there’s an error, processing will cease at the process with the problem.įigure out what’s wrong, make the fix, then validate again. One the model is validated, save it and the ArcGIS Pro project. Validation is easy-just click the Validate button with the green check mark on the ModelBuilder tab. Otherwise, you’ll have to manually add the output as a layer to the map.Īfter you’ve added all the tools and set their parameters, it’s time to ensure the model will run properly by validating it. If you want to visualize the model’s final output on a map, right-click its model element and choose Add To Display. Use the Auto Layout and Fit to Window buttons to see the big-picture view and zoom in and out as needed.īe sure to save periodically as you build the model by clicking Save on the ModelBuilder tab. Once you click OK to set the tool parameters, the input element displays and the process colorizes.Īs you add processes, the model window may fill up.

Tip:If your input data has selected features or records, models like individual ArcGIS geoprocessing tools will process only the selection. Set tool parameters and pay attention to red asterisks. A red asterisk next to an item in a tool dialog box means the parameter is required. In model parlance, gray means not ready to run.ĭouble-click each tool and set its parameters. When you add a tool to a model by dragging it from the Catalog or Geoprocessing pane, its output element is also added, and both elements are light gray. Each output can become input for the next process. A process consists of three elements: input data, a tool, and the tool’s output. A model consists of one or more processes. But first, you will need to understand some ModelBuilder vocabulary.

You can’t beat ModelBuilder for easy drag-and-drop building and tinkering. With the basic setup done, now comes the fun part. If you’re not sure which tool to use or what a tool’s required inputs are, check the online ArcGIS Pro tool reference.Ī blank canvas for building your model opens. For more complicated workflows, you may want to sketch everything on paper or a whiteboard. If the workflow is simple, just think it through in your head. List the data input, identify the required geoprocessing tools, and describe the desired output. If you’ve never worked with ModelBuilder, here is a simple five- (or six-) step approach to get you started.īefore creating a model, know what you want it to do. Models are workhorses: If built with reuse in mind, they can be your go-to shortcuts for getting lots of geoprocessing tasks done with less work. Models are invaluable for conducting sophisticated spatial analyses and can reveal data relationships that spark ideas and collaboration. Shape, color, text, and symbols are used in models to communicate information about processes and status. Like maps, models you create in ModelBuiler can be navigated because they have built-in directionality. You can think of ModelBuilder as a tool to map a geoprocessing workflow.Ī model is a workflow map. Included with ArcGIS Pro, ModelBuilder has been called a visual programming language.

ModelBuilder provides a visual canvas to create geoprocessing models that automate GIS workflows.
