Wiki Markup |
---|
{alias:igg}
h2. Name
*igg* — Interpolated grid to grid operation
h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}
*igg add | sub | mul | div | lt | gt | rep* \[*und*] _workspacename_
{panel}
h2. Description
General grid to grid operation that does not require that the grids involved has the same size and position.
h2. Arguments
_workspacename_
{indent}Name in workspace where the second grid is present. Must always be present.{indent}
*add*
{indent}The grids are added.{indent}
*sub*
{indent}The grid in _workspacename_ is subtracted from the active grid.{indent}
*mul*
{indent}The grids are multiplied.{indent}
*div*
{indent}The active grid is divided by the grid in _workspacename_.{indent}
*lt*
{indent}The result grid in active will be minimum of either of the two grids.{indent}
*gt*
{indent}The result grid in active will be maximum of either of the two grids.{indent}
*rep*
{indent}Replace all undefined areas with values from grid in workspacename.{indent}
*und*
{indent}Undefined values returned from the interpolation should be used in the new dataset.{indent}
h2. Examples
h3. Ex.1: Adding grids of unequal dimension
{noformat:|borderWidth=1|bgColor=#eeeeee}
# 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
{noformat}
The above example produces this image.
!att:_img_ref^cmd_igg.png!
_Border layout of adding grids and result grid_
h2. See also
[add] , [eli] , [rep] , [und] |
Page Comparison
General
Content
Integrations