Skip to main content

SearchNeighborhoodStandardCircular

サマリー

The SearchNeighborhoodStandardCircular class can be used to define the search neighborhood for Empirical Bayesian Kriging, IDW, Local Polynomial Interpolation, and Radial Basis Functions.

Learn more about search neighborhoods

構文

SearchNeighborhoodStandardCircular({radius}, {angle}, {nbrMax}, {nbrMin}, {sectorType})

名前 説明 データ タイプ

radius

(オプション)

The distance, in map units, specifying the length of the radius of the searching circle.

Double

angle

(オプション)

The angle of the search circle. This parameter will only affect the angle of the sectors.

Double

nbrMax

(オプション)

Maximum number of neighbors, within the search ellipse, to use when making the prediction.

Long

nbrMin

(オプション)

Minimum number of neighbors, within the search ellipse, to use when making the prediction.

Long

sectorType

(オプション)

The searching ellipse can be divided into 1, 4, 4 with an offset of 45º, or 8 sectors.

String

プロパティ

名前 説明 データ タイプ

angle

(読み取り/書き込み)

The angle of the search ellipse.

Double

radius

(読み取り/書き込み)

The distance, in map units, specifying the length of the radius of the searching circle.

Double

nbrMax

(読み取り/書き込み)

Maximum number of neighbors, within the search ellipse, to use when making the prediction.

Long

nbrMin

(読み取り/書き込み)

Minimum number of neighbors, within the search ellipse, to use when making the prediction.

Long

nbrType

(読み取り専用)

The neighborhood type: Smooth or Standard.

String

sectorType

(読み取り/書き込み)

The searching ellipse can be divided into 1, 4, 4 with an offset of 45º, or 8 sectors.

String

コードのサンプル

SearchNeighborhoodSmoothCircular (Python window)

An example of SearchNeighborhoodStandardCircular with Empirical Bayesian Kriging to produce an output raster.

import arcpy
arcpy.ga.EmpiricalBayesianKriging("ca_ozone_pts", "OZONE", "outEBK", "C:/gapyexamples/output/ebkout",
                                  10000, "NONE", 50, 0.5, 100,
                                  arcpy.SearchNeighborhoodStandardCircular(300000, 0, 15, 10, "ONE_SECTOR"),
                                  "PREDICTION", "", "", "")
SearchNeighborhoodSmoothCircular (stand-alone script)

An example of SearchNeighborhoodStandardCircular with Empirical Bayesian Kriging to produce an output raster.

# Name: EmpiricalBayesianKriging_Example_02.py
# Description: Bayesian kriging approach whereby many models created around the
#   semivariogram model estimated by the restricted maximum likelihood algorithm is used.
# Requirements: Geostatistical Analyst extension

# Import system modules
import arcpy

# Set environment settings
arcpy.env.workspace = "C:/gapyexamples/data"

# Set local variables
inPointFeatures = "ca_ozone_pts.shp"
zField = "ozone"
outLayer = "outEBK"
outRaster = "C:/gapyexamples/output/ebkout"
cellSize = 10000.0
transformation = "NONE"
maxLocalPoints = 50
overlapFactor = 0.5
numberSemivariograms = 100
# Set variables for search neighborhood
radius = 300000
angle = 0
maxNeighbors = 15
minNeighbors = 10
sectorType = "ONE_SECTOR"
searchNeighbourhood = arcpy.SearchNeighborhoodStandardCircular(radius,
                                                       angle, maxNeighbors,
                                                       minNeighbors, sectorType)
outputType = "PREDICTION"
quantileValue = ""
thresholdType = ""
probabilityThreshold = ""

# Run EmpiricalBayesianKriging
arcpy.ga.EmpiricalBayesianKriging(inPointFeatures, zField, outLayer, outRaster,
                                  cellSize, transformation, maxLocalPoints, overlapFactor, numberSemivariograms,
                                  searchNeighbourhood, outputType, quantileValue, thresholdType, probabilityThreshold)