Versions Compared

Key

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

*gr3* — Grid data into 3D cube

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


\# Create a 3D grid (cube) using moving average as the default interpolator. 
*gr3* \[*inc*] | \[_nx ny nz_] \[*lat*] \[*fill*] \[*snap*] \[*sca*] \[*ref*] \[*smo*] 

\# Update cube towards wells in workspace 
*gr3 upd* _checkshot\_name_ \[*check*] \[*disk*] 
*gr3 upd* _checkshot\_name_ \[*tensor* \[*max* _radius_] | \[*fac* _factor_]] 
*gr3 upd* _checkshot\_name_ \[*conic* \[*rad* _radius_]] 

\# Smooth cube with gaussian filter. 
*gr3 smo* \[*gau* \[*dim* _2_]] \[*z*] \[*rad* _radius_] 

\# Write out inlines and crosslines in a cube to file filename. 
*gr3 write* \[*lim*] _inlinestart xlinestart inlinestop xlinestop filename_ 

\# Transform a cube or grid to a new cube. 
*gr3* \[*ins* _workspacename_] | \[*fgr*] | \[*vsum*] | \[*edi*] | \[*cdi*] | \[*int*] | \[*form*] 

{panel}

h2. Description

Create a 3D grid using moving average as the default interpolator. Will default use scalar values as input to gridding. 

h2. Arguments

{indent}No arguments, the grid will have the same number of rows and columns as the last grid that set the @nrow @ncol @nlay variables. Each node is evaluated using moving average in 3D.{indent} 
*inc* _xinc yinc zinc_ 
{indent}Create grid model grid with increments xinc, yinc and zinc . Each node is evaluated using moving average in 3D.{indent} 
_nx ny nz_ 
{indent}Create a grid with _nx_ times _ny_ times _nz_ grid cells. Each node is evaluated using moving average in 3D.{indent} 
*fill* 
{indent}Will try to fill the cube. Default is a snapping method for a large set of input points.{indent} 
*snap* 
{indent}Will snap the input points to the nearest node in the cube.{indent} 
*lat* 
{indent}Lateral 3d gridding. If input is f.inst. well data with stacking velocities and time values for each well. Then one can grid a 3d velocity/time depth cube.{indent} 
*sca* 
{indent}Will use scalar values as input to gridding.{indent} 
*poi* 
{indent}Will use z values as input to gridding.{indent} 
*ref* _reference\_grid_ 
{indent}Use a reference_grid in workspace to tell the layout of the result cube.{indent} 
*smo* _smoothstrength_ 
{indent}Will use smoothing of cube at end of gridding.{indent}
 
*Update cube towards wells in workspace.* 

*upd* _checkshot\_name_ \[*check*] \[*disk*] \[*tensor | conic*] 
{indent}Update cube towards wells in workspace checkshot_name. Moving average is the default interpolator. 
*check* _checkstart checkstop_. Remove cells that has an unacceptable range within _checkstart checkstop_ velocity. 
*disk* - Apply disk for temporary datasets. Used to save memory and recommended for large cube gridding. 
*tensor* - Update using b-spline tensor. \[*max* _radius_]. Optionally use a max radius. \[*fac* _factor_]. Optionally use a radius factor. 
*conic* -  Update using conic shape. \[*rad* _radius_]. Optionally use a radius value.{indent}
 
*Smooth cube with gaussian filter.* 

*smo* \[*gau dim 2*] \[*rad _radius_]
 
{indent}Smooth cube with gaussian filter. 
*gau dim 2* - Apply smmothing in only 2 dimensions 
*z* - Apply z-plane smoothing.Alternative to gaussian 
*rad* _radius_ - Apply a radius value in smoothing.{indent}

*Write out the z values of the cube as inlines and crosslines to an external file.* 

*write* \[*lim* _lim\_value*] _inlinestart xlinestart inlinestop xlinestop filename_. 
{indent}Write out cube to file _filename_. 
*lim* _limit\_value_ - Apply a limit and a _limit\_value_ for the number of nodes written out to test the procedure. 
_inlinestart xlinestart inlinestop xlinestop_ - Specify start and stop of inlines and crosslines to be written out. 
_filename_ - Specify file name of output. {indent}

*Transform a grid or cube to a new cube.* 

*gr3* \[*ins* _workspacename_] | \[*fgr*] | \[*vsum*] | \[*edi*] | \[*cdi*] | \[*int*] | \[*form*] 
{indent}A cube is in active data and is recalculated to a new cube. 
*ins* _limit\_value_ - Insert values from data in _workspacename_ (grid, cube or polydata) into a cube in active. 
*fgr* - Fill the cube in active with interpolated values for all undefined values. 
*vsum* - Sum the cube in active vertically. 
*edi* - Evaluate distance in 2d grid in active into a new 3d cube. 
*cdi* - Use computed distance in 3d grid for undefined. 
*int* - Interpolate between layers in the cube. See command object *Cube generation of all layers*. 
*form* \[_const a b c_] \[_min max_]. Using a formula for velocity cube gridding. Makes a time velocity cube based on a regression formula. Input is the seabed grid and the constant a, b and c that is present in the formula. The twt grid in the formula is the layers in the cube. _min max_ is the min and max values for the new cube. 
{indent} 

h2. Examples

h3. Ex.1: Cube gridding

{noformat:|borderWidth=1|bgColor=#eeeeee}
        mak ran 11      ;# Make 11 random points
        gr3 50 50 50    ;# Make a cube of 50 50 50 nodes
{noformat}

{noformat:|borderWidth=1|bgColor=#eeeeee}
        # Cube model gridding
        z                 ;# Erase screen
        win demo          ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
        spe bgc whi       ;# Specify background color to white
        vie 2 2 1         ;# Viewport 2 x 2 and select 1
        mak ran 11        ;# Make 11 random points
        mak ras           ;# Make random scalar
        mhi pp            ;# Move to pp
        gr3 77 77 77      ;# Grid scalars into cube of dimension 77 77 77
        dis               ;# Display the cube
        tx2 lle col bla txt "sca" ;# Text at lower left
        vie 2 con         ;# Select viewport 2 and connect to previous
        mlo pp            ;# Move lo pp
        gr3 poi 77 77 77  ;# Grid points into cube of dimension 77 77 77
        dis               ;# Display the cube
        tx2 lle col bla txt " poi" ;# Text at lower left
        vie 3 con         ;# Select viewport 3 and connect to previous
        mlo pp            ;# Move lo pp
        gr3 poi 77 77 77  ;# Grid single points into cube of dimension 77 77 77
        gr3 vsum          ;# Grid vertical sum into cube
        dis               ;# Display the cube
        tx2 lle col bla txt "vsum" ;# Text at lower left
        vie 4 con         ;# Select viewport 4 and connect to previous
        mlo pp            ;# Move lo pp
        mak ran 22        ;# Make random points
        grp 77 77         ;# Make a grid
        gr3 77 77 77 edi  ;# Grid distance of grid into cube of dimension 77 77 77
        dis               ;# Display the cube
        tx2 lle col bla txt "edi" ;# Text at lower left
{noformat}

The above example produces this image. 

!att:_img_ref^cmd_gr3.png!
_Examples of cube gridding_

h2. See also

[filt|filt - Filter algorithms] _impl_, [gen - Generate grid]
{pagebreak}