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

IMultivariateOp.BandCollectionStats Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IM > IMultivariateOp Interface > IMultivariateOp.BandCollectionStats Method
ArcGIS Developer Help

IMultivariateOp.BandCollectionStats Method

Calculates the statistics for a raster band collection.

[Visual Basic .NET]
Public Sub BandCollectionStats ( _
    ByVal rasterBands As IGeoDataset, _
    ByVal dataFile As String, _
    [ByVal computeMatrices As Boolean] _
public void BandCollectionStats (
    IGeoDataset rasterBands,
    string dataFile,
    bool computeMatrices
HRESULT BandCollectionStats(
  IGeoDataset* rasterBands,
  BSTR dataFile,
  VARIANT_BOOL computeMatrices
rasterBands [in]

rasterBands is a parameter of type IGeoDataset* dataFile [in]
dataFile is a parameter of type BSTR computeMatrices [in, optional, defaultvalue()]
computeMatrices is a parameter of type bool

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.



name(s) of the input rasterband to calculate statistics. The Rasterbands must have common intersecton.


name of the output statistics file. An extension is required. Any extension can be used, but ".txt" is reccommended


a Boolean specifying whether covariance and correlation matices are calculated.

If TRUE, In addition to the standard statistics calculated, the covariance and correlation matieces will also be determined

If FALSE, Only the basic statistical measures (minimum, maximum, mean, and standard deviation) will be calculated for every layer.


See Also

IMultivariateOp Interface