erdas imagine graphical modeler - montclair state...

3
ERDAS Imagine Graphical Modeler The Graphical Modeler in ERDAS Imagine allows you to graphically create a workflow (called a “model”) and execute it. A graphical model is a document that produces some kind of output (usually but not necessarily a raster image) from one or more inputs (usually but not necessarily raster images). You can also ask the Graphical Modeler to write a Spatial Modeler script (an English-like code) that will perform the same instructions (and moreover can be edited). In Imagine 9.x you begin by opening the Spatial Modeler menu by selecting the Modeler icon in the Imagine icon panel and selecting the Model Maker: In Imagine 2011 you select Model Maker from the Model Maker icon in the Toolbox tab on the Ribbon:

Upload: vuongdien

Post on 28-Jul-2018

246 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: ERDAS Imagine Graphical Modeler - Montclair State …pages.csam.montclair.edu/~chopping/rs/AV/GRAPHICAL_MODELER_IN… · ERDAS Imagine Graphical Modeler The Graphical Modeler in ERDAS

ERDAS Imagine Graphical Modeler

The Graphical Modeler in ERDAS Imagine allows you to graphically create a workflow

(called a “model”) and execute it. A graphical model is a document that produces some

kind of output (usually but not necessarily a raster image) from one or more inputs

(usually but not necessarily raster images). You can also ask the Graphical Modeler to

write a Spatial Modeler script (an English-like code) that will perform the same

instructions (and moreover can be edited). In Imagine 9.x you begin by opening the

Spatial Modeler menu by selecting the Modeler icon in the Imagine icon panel and

selecting the Model Maker:

In Imagine 2011 you select Model Maker from the Model Maker icon in the Toolbox tab

on the Ribbon:

Page 2: ERDAS Imagine Graphical Modeler - Montclair State …pages.csam.montclair.edu/~chopping/rs/AV/GRAPHICAL_MODELER_IN… · ERDAS Imagine Graphical Modeler The Graphical Modeler in ERDAS

Description of the Model Maker Tools

Use this tool to select items on the Model Maker page. Once selected, these

graphics (or text) can be moved or deleted. Click and drag a selection box to

select multiple elements. Multiple selected elements can be dragged to a new

location as a unit. You can also use the arrow to double click on any of the

graphics below to further define their contents.

Creates a raster object , which is a single or layer-set of raster data typically

used to contain or manipulate data from image files.

Places a vector object , which is usually an Arc/Info coverage or an

Annotation layer.

Creates a matrix object , which is a set of numbers arranged in a fixed number

of rows and columns in a two-dimensional array. Matrices may be used to store

numbers such as convolution kernels or neighborhood definitions.

Creates a table object , which is a series of numeric values or character strings.

A table has one column and a fixed number of rows. Tables are typically used

to store columns from an attribute table, or a list of values which pertain to

individual layers of a raster layer-set.

Creates a scalar object, which is simply a single numeric value.

Creates a function definition, which are written and used in the Model Maker

to operate on the objects. The function definition is an expression (like "a + b +

c") that defines your input. You can use a variety of mathematical, statistical,

Boolean, neighborhood, and other functions, plus the input objects that you set

up, to write function definitions.

Use this tool to connect objects and functions together. Click and drag from

one graphic to another to connect them in the order they are to be processed in

the model. To delete a connection, simply click and drag in the opposite

direction (from the output to the input).

Creates descriptive text to make your models readable. The Text String dialog

is opened when you click on this tool.

Select the tool you want to place a raster object, function object, etc. in the model

window. You will usually place input and output raster objects and then function objects.

Then use the connect tool to connect the raster and function objects you placed. You do

this by selecting a point inside the top left of the raster icon and dragging a line to the

center of the function symbol. Release the mouse and a connection arrow should appear.

Repeat as desired. If you make a mistake, use the Edit menu to cut the selected mistake

out of the model. Example overleaf….

Page 3: ERDAS Imagine Graphical Modeler - Montclair State …pages.csam.montclair.edu/~chopping/rs/AV/GRAPHICAL_MODELER_IN… · ERDAS Imagine Graphical Modeler The Graphical Modeler in ERDAS

Double click on the raster objects to enter filenames. For output raster objects, you must

also specify the data type (8-bit sign integer, floating point, etc.) – you must also say

whether you want the file to overwrite existing files by checking the Delete If Existing

checkbox.

Double click on function symbol to define functions. In the Function Definition

window that appears, you will enter the expression, using items in the list showing the

available inputs (the number in parentheses corresponds to the individual raster layer).

When all objects are labeled and the function definition complete, look at the top of the

model window and find the Process option. Run the model by selecting Run. When the

model is done processing select OK and examine the output Raster image in a Viewer.

Note: the first time you try to run the model you may get an error message. This is

normal – check everything very carefully and try again! When you have a working

model, it does not mean that the output is what you expected: you must check it carefully.

When you are sure that the model is doing what you think it is doing, save it as a

Graphical model (.gmd).