AddVariogram

The AddVariogram method is superseded by AddVariogram2. Please consider using the more recent version. AddVariogram has been retained for backward compatibility.

AddVariogram adds a new variogram plot. Returns a Variogram object.

The AddVariogram2 command should specifically be used instead of AddVariogram, when the worksheet being loaded is an Excel file where the sheet name needs to be specified. It can also be used to specify any data import options when loading a data file.

Syntax

object.AddVariogram( DataFileName, xCol, yCol, zCol, ExclusionFilter, DupMethod, xDupTol, yDupTol, NumAngularDivisions, NumRadialDivisions, DetrendMethod, ShowReport, MaxLagDistance)

Parameter

Type

Required/

Optional

Default

Description

DataFileName

String

Required

 

This provides the path and file name of the data file.

xCol

Long

Optional

 

This provides the X data column

yCol

Long

Optional

 

This provides the Y data column

zCol

Long

Optional

 

This provides the, Z data column

ExclusionFilter

String

Optional

""

This provides the data exclusion filter. This is used to set up rules for excluding data when gridding.

DupMethod

SrfDupMethod

Optional

srfDupAll

This provides the method of eliminating duplicate data points. Duplicate data are two or more data points having nearly identical X, Y coordinates.

xDupTol

Double

Optional

0.0

This provides the X Tolerance , i.e., the X spacing of points in order to be considered a duplicate.

yDupTol

Double

Optional

0.0

This provides the Y Tolerance , i.e., the Y spacing of points in order to be considered a duplicate

NumAngularDivisions

Integer

Optional

180

This provides the number of angular divisions in the variogram grid.

NumRadialDivisions

Integer

Optional

100

This provides the number of radial divisions in the variogram grid.

DetrendMethod

SrfDetrendMethod

Optional

srfDetrendNone

This provides the method of detrending the data.

ShowReport

Boolean

Optional

False

This parameter sets whether the variogram report should be shown or not. You need to set it to True, to generate the report.

MaxLagDistance

Variant

Optional

 

This provides the maximum lag distance (separation) of variogram pairs.

Example 1

This example demonstrates how to create a variogram plot and display its associated report.

Dim Variogram As Object

Set Variogram = Shapes.

Example 2

This script displays all the methods and properties in the Shapes collection.

Used by: Shapes collection

See Also

Kriging and Variograms

Variogram Grid

Variogram Model

Creating a New Variogram

Variogram Properties