Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Unknown macro: {alias}

Name

igg — Interpolated grid to grid operation

Syntax

igg add | sub | mul | div | lt | gt | rep [und] workspacename

Description

General grid to grid operation that does not require that the grids involved has the same size and position.

Arguments

workspacename

Unknown macro: {indent}

Name in workspace where the second grid is present. Must always be present.

add

Unknown macro: {indent}

The grids are added.

sub

Unknown macro: {indent}

The grid in workspacename is subtracted from the active grid.

mul

Unknown macro: {indent}

The grids are multiplied.

div

Unknown macro: {indent}

The active grid is divided by the grid in workspacename.

lt

Unknown macro: {indent}

The result grid in active will be minimum of either of the two grids.

gt

Unknown macro: {indent}

The result grid in active will be maximum of either of the two grids.

rep

Unknown macro: {indent}

Replace all undefined areas with values from grid in workspacename.

und

Unknown macro: {indent}

Undefined values returned from the interpolation should be used in the new dataset.

Examples

Ex.1: Adding grids of unequal dimension

# Adding grids of unequal dimension
z                    ;# Erase screen
win demo             ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
spe bgc whi          ;# Specify background color to white
mak ran 12 z 100 700 ;# Make 12 random points between 100 and 700
grp 222 222          ;# Make grid of dimension 222 x 222
eli gt 500           ;# Eliminate greater than 500
mhi mygrid           ;# Save the grid
ewi 25               ;# Expand the grid 25% in xy direction
mak ran 11           ;# Make 11 random points
grp 300 300          ;# Make grid of dimension 300 x 300
bol 2                ;# Draw the border layout
igg sub mygrid       ;# Add the two grids of different dimension together
ssc                  ;# Scale new dataset
acm n 11 sma         ;# Map the result grid using color bands

The above example produces this image.


Border layout of adding grids and result grid

See also

add - Add to dataset , eli - Eliminate points , rep - Replace , und - Undefined change

Unknown macro: {pagebreak}
  • No labels