RadiusFixed
サマリー
Defines a fixed search radius by specifying a distance and a minimum number of points required for analysis. If the required number of points is not found within the specified distance, the search radius will be increased until the specified minimum number of points is found.
ディスカッション
Tools that use radius objects: Kriging and IDW.
構文
RadiusFixed({distance}, {minNumberOfPoints})
| 名前 | 説明 | データ タイプ |
|---|---|---|
|
distance (オプション) |
The |
Double |
|
minNumberOfPoints (オプション) |
The If the required number of points is not found within the specified distance, the search distance will be increased until the specified minimum number of points is found. When the search radius needs to be increased, it is done so until the The default value is 0. |
Long |
プロパティ
| 名前 | 説明 | データ タイプ |
|---|---|---|
|
distance (読み取り/書き込み) |
The distance, in map units, specifying that all input sample points within the specified radius will be used to perform interpolation. |
Double |
|
minNumberOfPoints (読み取り/書き込み) |
The |
Long |
コードのサンプル
Demonstrates how to create a RadiusFixed class and use it in the Kriging tool within the Python window.
import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "C:/sapyexamples/data"
myRadius = RadiusFixed(80000)
outKriging = Kriging("ca_ozone_pts.shp", "ELEVATION", "SPHERICAL", "", myRadius)
outKriging.save("C:/sapyexamples/output/krigradfix")
Calculates a surface with the IDW interpolation tool using the RadiusFixed class.
# Name: RadiusFixed_Ex_02.py
# Description: Uses the RadiusFixed object to run IDW tool
# Requirements: Spatial Analyst extension
# Import system modules
import arcpy
from arcpy import env
from arcpy.sa import *
# Set environment settings
env.workspace = "C:/sapyexamples/data"
# Set local variables
inFeature = "ca_ozone_pts.shp"
# Create the Radius Object
distance = 15000
minNumPoints = 3
searchRadius = RadiusFixed(distance, minNumPoints)
# Run IDW
outRadFix = Idw(inFeature, "elevation", 2000, 2, searchRadius)
# Save the output
outRadFix.save("C:/sapyexamples/output/idwradfix")