This document is archived and information here might be outdated.  Recommended version.


IInterpolationOp.Variogram Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoAnalyst)  

IInterpolationOp.Variogram Method

Interpolates using Variogram.

[Visual Basic .NET]
Public Function Variogram ( _
    ByVal geoData As IGeoDataset, _
    ByVal semiVariogram As IGeoAnalysisSemiVariogram, _
    ByVal radius As IRasterRadius, _
    ByVal outSemiVariance As Boolean, _
    [ByRef barrier As Object] _
) As IGeoDataset
[C#]
public IGeoDataset Variogram (
    IGeoDataset geoData,
    IGeoAnalysisSemiVariogram semiVariogram,
    IRasterRadius radius,
    bool outSemiVariance,
    ref object barrier
);
[C#]

Optional Values

barrier   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT Variogram(
  IGeoDataset* geoData,
  IGeoAnalysisSemiVariogram* semiVariogram,
  IRasterRadius* radius,
  VARIANT_BOOL outSemiVariance,
  VARIANT* barrier,
  IGeoDataset** interpolatedRaster
);
[C++]

Parameters geoData [in]
geoData is a parameter of type IGeoDataset semiVariogram [in]
semiVariogram is a parameter of type IGeoAnalysisSemiVariogram radius [in]
radius is a parameter of type IRasterRadius outSemiVariance [in] outSemiVariance is a parameter of type VARIANT_BOOL barrier [optional] barrier is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. interpolatedRaster [out, retval]
interpolatedRaster is a parameter of type IGeoDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

geoData

an input FeatureClass or FeatureClassDescriptor containing the points with z values to be interpolated onto a surface Raster

semiVariogram

A semivariogram model defined by a GeoAnalystSemiVariogram object using the IGeoAnalysisSemiVariogram::DefineVarigoram method. The semivariogram is described by nugget, sill and range parameters.

radius

an IRasterRadius indicating the search radius for the input points

The radius distance is specified in map units within which all input sample points will be used to perform interpolation. A commonly used radius is five times the cell size of the output Raster.

The object will set and use whatever you set last in your VB script. For example,

set pRad.SetFixed 207.1
set pRad.SetVariable 12 

will use the args ... ,SAMPLE,12, ....

set pRad.SetVariable 12
set pRad.SetFixed 207.1 

will use the args ... ,RADIUS,207.1, ....

outSemiVariance

if True an optional output Raster will be created containing predicted semivariance values for each mesh point in output interpolation surface

If the GRAPH option is specified, an {output_variance} grid will not be created.

[barrier]

a coverage or shapefile containing the arcs for the barrier information used for limiting the line search for input sample points

See Also

IInterpolationOp Interface