ArcGIS Pro provides many raster functions to process and analyze imagery and raster data. You can find the raster functions in the Raster Functions pane. The Raster Functions pane also allows users to view and change parameters that control how the functions processes data. You can also chain functions together to perform more complex analysis. These function chains can then be saved in a raster function template as an item to be reused later, just like any other function.
Every item in the functions pane is either a raster function or a raster function template. Applying either of these items is the same regardless of what they are. The main difference is that a raster function template can represent one or more functions that are chained together to perform more complex processing.
Find raster functions
The easiest way to find raster functions in the Raster Functions pane is to use the search capability. Search allows you to enter keywords based on what you are trying to accomplish and returns the functions that enable you to process your data accordingly. You can also browse the functions in the functions pane manually. The items in the Raster Functions pane are categorized into three categories: System, Project, and Custom. The items are divided into subcategories to make browsing easier. The search is specific to the category you are currently viewing, so a search in the System category will only show you results from subcategories within it. You can hover over the name of a subcategory to view the options associated with it.
The System category contains all the raster functions provided by ArcGIS Pro. The subcategories and items in this category are read-only; you can copy subcategories or items to another category, but you cannot change the items or subcategories.
The Project category is used for items that you want to save with your project. Any items in the Project category are saved with your project and are packaged and shared with it. A good example of this is functions that contain parameters specific to the data associated with the project. You can edit the parameters and save the edited version as a new item in the Project category. You can create new subcategories in the Project category by using the menu button and clicking Add New Sub-Category. These subcategories can be fully edited, renamed, duplicated. and deleted. You can also copy or move items to and from these subcategories.
The Project category always contains a subcategory. This subcategory is empty until you save, copy, or move an item to it.
The Custom category is for items that you want to access to for all your projects. For example, if you make a function chain that extracts a range of values from a raster, the chain can be saved as an item in the Custom category. This allows the item to be used across all your projects. You can create new subcategories in the Custom category by using the menu button and clicking Add New Sub-Category. These subcategories can be fully edited, renamed, duplicated, and deleted. You can also copy or move items to and from these subcategories.
The Custom category always contains a subcategory. This subcategory is empty until you save, copy, or move an item to it.
Use raster functions
To apply a raster function, click it in the Raster Functionspane. This opens the function so that you can edit the parameters and then apply it. Right-clicking a function and choosing Open does the same thing. Once the function is opened, the Raster Functions pane changes to show you the opened function. You can use the back button to go back to the Raster Functions pane.
Once a function is opened, you see two tabs: General and Parameters. The General tab is used to change the name, description, or output pixel type of the function. The Parameters tab is used to specify the input to the function, as well as set the parameters to control how the function processes data.
You can change the name or description of the function on the General tab. This is most useful when creating function chains with multiple functions. The name and description of the function can be used to describe what the function does, so it is easier to understand the function chain. The default for the Output Pixel Type is Unknown, which means the function determines the output pixel type. In most cases, this does not need to be changed.
A notable example of when the Output Pixel Type needs to be changed is when you use the Remap function. The default output pixel type of the remap function is the same as the input. This may not be the correct output pixel type, depending on the type of remapping values that are specified.
The Parameters tab can be used to specify the input to the function as well as set the parameters to control how the function processes data. Inputs can be specified using the drop-down arrow that displays a list of applicable layers in the current map that can be specified as inputs. You can also use the browse button to browse to an input.
An example of a parameter is the Z Factor parameter of the Hillshade function. The Z Factor allows you to define a factor applied to every pixel value that the function processes.
Once the inputs and parameters have been set, you can apply the function by clicking the Create new layer button at the bottom of the pane. This creates a new layer in the current map that represents the processed image. You can also use the drop-down arrow next to the Create new layer button to use either Apply on Selected Layer(s) or Save As. Apply on Selected Layer(s) applies the function to the first layer that was selected in the Contents pane. Save As saves the function as a new item. You can access these options by right-clicking an item in the functions pane.
If you use the Save As option, you save the function with all the inputs you specified and the parameter values you have set. This is useful when using functions with multiple inputs so you don't have to continue entering parameter values. This is also useful if you want to adjust the value of one parameter while keeping the other values as they are.
Specifying the output of one function as the input to another allows you to chain multiple functions together to perform more complex analysis. The resulting layer contains all the functions applied and can be saved as a raster function template.
Items in the Raster Functions pane
The Raster Functions pane allows you to not only apply functions to perform processes, it also allows you to manage your pane . Right-clicking an item in the System category allows you to open the function, copy the function to another category, and export your function.
If your function is in the Custom or Project category, you can perform even more management tasks such as editing the function, moving the function to another category, renaming the function, or deleting the function. If you are signed in as a member with publishing privileges, right-clicking an item provides an option to Share to Portal. This allows you to share the item with members of your organization or everyone. If you edit the function, you can edit the raster function template using the Raster Function editor.
The menu button in the Raster Functions pane contains the following list of options:
The Gallery changes the way the items are displayed in the pane. This mode shows the functions as large icons. This is the default view for the pane.
The Outline changes the way the items are displayed in the pane. This mode allows you to see more items on the screen, since it displays smaller icons.
Add New Sub-Category
Create a new subcategory in either the Project or System category.
Open Python Raster Function
Access any of the custom Python raster functions you have created.
Create New Template
Create a new template in the Function Editor. Here you can drag functions and create connections in a similar experience to ModelBuilder.
Show Function Parameters
This option, which is the default, opens the function properties when you click it so you can set parameters.
For instance, if you are working with the Slope function, you can change Scaling from Degree to Percent Rise.
If you uncheck Show Function Parameters , when you click a function, the function is applied immediately. Any parameters that need to be set will either use the default or whatever was last set. This is designed for some of the functions that do not require any parameterization, such as Aspect.