Get Model Parameter (Geostatisical Analyst)

ライセンス レベル:BasicStandardAdvanced

サマリ

Gets model parameter value from an existing geostatistical model source.

使用法

構文

GAGetModelParameter_ga (in_ga_model_source, model_param_xpath, out_string)
パラメータ説明データ タイプ
in_ga_model_source

The geostatistical model source to be analyzed.

File; Geostatistical Layer
model_param_xpath

XML path to the required model parameter.

String
out_string

Requested model parameter.

String

コードのサンプル

GetModelParameter example 1 (Python window)

Extract parameter values from a geostatistical model source.

import arcpy
arcpy.env.workspace = "C:/gapyexamples/data"
outParam = arcpy.GAGetModelParameter_ga(
    "C:/gapyexamples/data/kriging.lyr",
    "/model[@name = 'Kriging']/model[@name = 'Variogram']/value[@name = 'Nugget']")
print outParam
GetMdelParameter example 2 (stand-alone script)

Extract parameter values from a geostatistical model source.

# Name: GAGetModelParameter_Example_02.py
# Description: Gets model parameter value from an existing geostatistical
#              model source.
# Requirements: Geostatistical Analyst Extension

# Import system modules
import arcpy

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

# Set local variables
modelSource = "C:/gapyexamples/data/kriging.lyr"
xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/value[@name = 'Nugget']"

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

# Execute GAGetModelParameter
outParam = arcpy.GAGetModelParameter_ga(modelSource, xmlPath)

# Show results
print outParam

環境

このツールはジオプロセシング環境を使用していません

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: 次のものが必要 Geostatistical Analyst
ArcGIS for Desktop Standard: 次のものが必要 Geostatistical Analyst
ArcGIS for Desktop Advanced: 次のものが必要 Geostatistical Analyst
9/14/2013