Geostatistical Analyst のライセンスで利用可能。
概要
Uses the interpolation model in a geostatistical layer to predict a value at a single location.
使用法
This tool is generally used only in a model or in scripting.
構文
GACalculateZValue(in_geostat_layer, point_coord)
パラメーター | 説明 | データ タイプ |
in_geostat_layer | The geostatistical layer to be analyzed. | Geostatistical Layer |
point_coord | The x,y coordinate of the point for which the Z-value will be calculated. | Point |
派生した出力
名前 | 説明 | データ タイプ |
out_z_value | The predicted Z-value at the specified x,y coordinate. | Double |
コードのサンプル
Predict a value at a location using a kriging geostatistical layer.
import arcpy
arcpy.env.workspace = "C:/gapyexamples/data"
outCZV = arcpy.GACalculateZValue_ga("C:/gapyexamples/data/Kriging.lyr",
"-2000000 -50000")
print(outCZV)
Predict a value at a location using a kriging geostatistical layer.
# Name: CalculateZValue_Example_02.py
# Description: Uses the interpolation model in a geostatistical
# layer to predict a value at a single location.
# Requirements: Geostatistical Analyst Extension
# Import system modules
import arcpy
# Set environment settings
arcpy.env.workspace = "C:/gapyexamples/data"
# Set local variables
inGALayer = "C:/gapyexamples/data/Kriging.lyr"
pointCoord = "-2000000 -50000"
# Execute CalculateZValue
outCZV = arcpy.GACalculateZValue_ga(inGALayer, pointCoord)
# Print results
print(outCZV)
ライセンス情報
- Basic: 次のものが必要 Geostatistical Analyst
- Standard: 次のものが必要 Geostatistical Analyst
- Advanced: 次のものが必要 Geostatistical Analyst