Grid Calc Commands

You can run Grid Calc by selecting menu items and completing panels or by typing commands into the command line. This section describes the latter method.

The commands are entered into the Command section of the Report Window (Grid Calc tab).

Note:   The Grid Calc tab is only included in the Report Window when Grid Calc is running. To start Grid Calc, use the Grid Calc > Start Console option.

Figure 1: Grid Calc Report Window

Alternatively you can use a shell window to enter the commands (hence Vulcan doesn't even need to be running). Launch a shell window and type gdcalc.isis.exe <project> <horizon> (replace <project> with your project code and <horizon> with the name of the horizon). Grid Calc is then started and you can enter the commands.

The general structure of a command is:

command /qualifier=value

or

command /qualifier etc.

The majority of the commands have qualifiers some of which are mandatory and some optional. Also each qualifier, whether mandatory or optional, may have several alternatives. Each row of the table represents the alternatives for one qualifier. For example, the contour command has the following qualifier table:

Qualifiers

Description

Mandatory/Optional

/level=level

/interval=interval

/mask</interval=mask -distance(0-1)>

Contour a single level.

Contour intervals.

Contour the grid mask.

Mandatory

/less

/greater

Close the contour to enclose the region less than the contour.

Close the contour to enclose the region greater than the contour.

Optional

/polygon

</save=(layer, object)>

Convert the contours to polygons.

Place the polygon in the specified layer and give it the object name.

Optional

/level, /interval and /mask are alternatives of one mandatory qualifier.

Within a qualifier alternative there might be more optional information. For example, when specifying to save a contour as a polygon, you can specify the layer for the object and the object name. These optional pieces of information are contained in angle brackets (<>).

Note:   If you only enter the command, then Grid Calc will prompt you for the qualifiers.

The commands are listed in alphabetical order.

Clear Data

This command removes grids and design data from the screen. There are no qualifiers for this command.

Syntax

clear data

Contour

This command to create and display contours.

Qualifiers Description Mandatory/Optional

/level=level

/interval=interval

/mask</interval=mask -distance(0-1)>

Contour a single level.

Contour intervals.

Contour the grid mask.

Mandatory

/less

/greater

Close the contour to enclose the region less than the contour.


Close the contour to enclose the region greater than the contour.

Optional

/polygon

</save=(layer, object)>

Convert the contours to polygons.

Place the polygon in the specified layer and give it the object name.

Optional

Example

contour/interval=1

Will generate contours for the interval 1.000000.

contour/level=2/less/polygon/save=(contours,"2")

Will generate a closed contour for level 2.000000, convert the contour to a polygon, name the polygon "2" and place it in the "Contours" layer.

Refer to the Contour documentation for more information on how to create contours.