Arrange Items

ERDAS IMAGINE Help

HGD_Variant
16.6
HGD_Product
ERDAS IMAGINE
HGD_Portfolio_Suite
Producer

Category: List, Table

Default

  • Description

Selects, arranges, and duplicates values from a list or table given the order specified on the RangeList port, to create an output list or table.

Example:

Given DataIn [ -2 , 0 , 2 , 3 , 7 , 8 ] and RangeList [ 0 , 1 , 3 , 0 , 3 , 5 ], DataOut results in [ -2 , 0 , 3 , -2 , 3 , 8 ]

Given DataIn [ -2 , 0 , 2 , 3 , 7 , 8 ] and RangeList [ 0:2 , 1:4 ], DataOut results in [ -2 , 0 , 2 , 0 , 2 , 3 , 7 ]

This operator is often used in conjunction with the output created by the Sort Items operator so that a set of values can be ordered in the same manner as another set of values. For example, consider two Tables, one consisting of Class Names and another consisting of the Histogram values associated with those Class Names. If the Class Names Table is sorted alphanumerically, the Table of Histogram values could be re-organized so that the Histogram values are still ordered correctly against their corresponding Class Names by using the Indices output by Sort Items as the RangeList input to this operator.

  • Connections

Name

Objects Supported

Description

Shown by Default

Required

Default Behavior or Behavior if not Required

DataIn

List (of Data)

Table

List of values referenced by RangeList.

RangeList

RangeList

A 0-based range of indices that specify values to be included in DataOut.

DataOut

List (of Data)

Table

List of selected and arranged values.

  • Related Operators

Sort Items

  • Syntax

ArrangeItems ( <DataIn>, <RangeList> )

  • Example Model

Below is an example of using the Sort Items operator to sort the Class Names of an Raster in ascending alphanumeric order and then using the Arrange Items operator to arrange the Histogram values for that Raster in the same order.