Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:rep}
h2. Name

*rep* — Replace

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}

*rep lo | hi* _workspacename_

{panel}

h2. Description

Replace undefined parts of a structured point grid in active by defined gridcells from a maching grid in a workspace. 

h2. Arguments

*lo* _workspacename_ 
{indent}Replace undefined parts of the grid in active by defined nodes from the grid in workspace _workspacename_.{indent} 
*hi* _workspacename_ 
{indent}Replace undefined parts of the grid in workspace _workspacename_ by defined nodes from the grid in active.{indent} 

h2. Examples

h3. Ex.1: Title-of-example

{noformat:|borderWidth=1|bgColor=#eeeeee}
        z                            ;# Erase screen
        win demo                     ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
        spe bgc whi                  ;# Specify background color to white
        mak ran 11                   ;# Make 11 random points
        grp inc 100 100              ;# Make first grid with increment 100 x 100
        eli gt 3000                  ;# Eliminate greater that 3000
        mhi fgrid                    ;# Move to fgrid
        mak ran 11                   ;# Make 11 random points
        grp inc 100 100              ;# Make second grid with increment 100 x 100
        eli gt 2000                  ;# Eliminate greater that 1500
        rep lo fgrid                 ;# Replace undefined parts with defined in fgrid
        map                          ;# Map using range from 2222 to 3333
{noformat}

The above example produces this image. 

!att:_img_ref^cmd_rep.png!
_Replace undefined in a grid with defined in another grid_

h2. See also

[bmo] , [eli] , [igg] , [lgo] , [und]