Calculate Z-value (Geostatisical Analyst)
Zusammenfassung
Uses the interpolation model in a geostatistical layer to predict a value at a single location.
Verwendung
-
This tool is generally used in a model or in scripting.
Syntax
GACalculateZValue_ga (in_geostat_layer, point_coord)
Parameter | Erläuterung | Datentyp |
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 |
Codebeispiel
GACalculateZValue (Python window)
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
GACalculateZValue (stand-alone script)
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"
# Check out the ArcGIS Geostatistical Analyst extension license
arcpy.CheckOutExtension("GeoStats")
# Execute CalculateZValue
outCZV = arcpy.GACalculateZValue_ga(inGALayer, pointCoord)
# Print results
print outCZV
Umgebung
Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.
Verwandte Themen
Lizenzierungsinformationen
ArcGIS for Desktop Basic: Erfordert Geostatistical Analyst
ArcGIS for Desktop Standard: Erfordert Geostatistical Analyst
ArcGIS for Desktop Advanced: Erfordert Geostatistical Analyst
9/22/2013