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] _ )
[C#] public void BandCollectionStats ( IGeoDataset rasterBands, string dataFile, bool computeMatrices );
[C#]
Optional Values
computeMatrices Supply false as a default value.
[C++]
HRESULT BandCollectionStats(
IGeoDataset* rasterBands,
BSTR dataFile,
VARIANT_BOOL computeMatrices
);
[C++]Parameters
rasterBands [in]rasterBands is a parameter of type IGeoDataset
dataFile [in] dataFile is a parameter of type BSTR computeMatrices [in, optional, defaultvalue(VARIANT_FALSE)] computeMatrices is a parameter of type VARIANT_BOOL
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.
Remarks
rasterBands |
name(s) of the input rasterband to calculate statistics. The Rasterbands must have common intersecton. |
dataFile |
name of the output statistics file. An extension is required. Any extension can be used, but ".txt" is reccommended |
[computeMatrices] |
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. |
- Read the Working with ArcGIS Spatial Analyst objects technical document for general information on implementing Spatial Analyst operations