ArcGIS for Desktop

  • 文档
  • 合约
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS for Desktop

全面的专业性 GIS

ArcGIS for Server

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 合约
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

帮助

  • 主页
  • 入门
  • 制图
  • 分析
  • 管理数据
  • 工具
  • 更多...

RadiusFixed

需要 Spatial Analyst 许可。

  • 摘要
  • 讨论
  • 语法
  • 属性
  • 代码实例

摘要

通过指定分析所需的距离和最少点数定义固定搜索半径。如果在指定距离内没有找到所需数量的点,则增加搜索半径,直至找到指定最少数量的点。

讨论

使用半径对象的工具包括:克里金法和反距离权重法。

语法

 RadiusFixed ({distance}, {minNumberOfPoints})
参数说明数据类型
distance

The distance specifies the distance as a radius within which input sample points will be used to perform the interpolation. The value of the radius is expressed in map units. The default radius is five times the cell size of the output raster.

Double
minNumberOfPoints

The minNumberOfPoints is an integer defining the minimum number of points to be used to perform the interpolation.

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 minNumberOfPoints fall within that radius, or the extent of the radius crosses the lower (southern) and/or upper (northern) extent of the output raster. NoData is assigned to all locations that do not satisfy the above condition.

(默认值为 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
(读写)

{minNumberofPoints}是定义用于插值的最小点数的整数。如果在指定距离内没有找到所需点数,则将增加搜索距离,直至找到指定的最小点数。

Long

代码实例

RadiusFixed 示例 1(Python 窗口)

演示如何创建 RadiusFixed 类以及如何在 Python 窗口的 Kriging 工具中使用该类。

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")
RadiusFixed 示例 2(独立脚本)

通过反距离权重法插值工具使用 RadiusFixed 类计算表面。

# Name: RadiusFixed_Ex_02.py
# Description: Uses the RadiusFixed object to execute 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)

# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("Spatial")

# Execute IDW
outRadFix = Idw(inFeature, "elevation", 2000, 2, searchRadius)

# Save the output 
outRadFix.save("C:/sapyexamples/output/idwradfix")

相关主题

  • Spatial Analyst 类概述
  • 半径类概述
  • 反距离权重法的工作原理
  • 克里金法的工作原理
有关此主题的反馈?

ArcGIS for Desktop

  • 主页
  • 文档
  • 合约
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | 隐私政策 | 法律声明