Geostatistical Layer properties
Summary
The Describe function returns the following properties for geostatistical layers. The Layer property group is also supported.
For a geostatistical layer, the Describe dataType property returns a value of "GALayer".
Properties
| Property | Explanation | Data Type |
|---|---|---|
|
areaOfInterest (Read only) |
The extent of the geostatistical layer. |
Extent |
|
dataCollection (Read only) |
A value table of the datasets used to create the geostatistical layer. It is recommended that you instead use the |
ValueTable |
Code sample
Geostatistical layer properties example
The following stand-alone script displays some layer properties from a geostatistical layer:
# Name: Describe_GA_Layer_Example_01.py
# Description: Print the Describe properties of a geostatistical layer.
# Requirements: Geostatistical Analyst extension
# Import system modules
import arcpy
# Set environment settings
arcpy.env.workspace = "C:/gapyexamples/data"
# Set local variables
inPointFeatures = "ca_ozone_pts.shp"
zField = "OZONE"
GALayer = "IDW_galayer"
# Run IDW
arcpy.ga.IDW(inPointFeatures, zField, GALayer)
# Describe the geostatistical layer
desc = arcpy.Describe(GALayer)
# Save extent of geostatistical layer
aoi = desc.areaOfInterest
# Save name of geostatistical layer
name = desc.nameString
# Save data type of geostatistical layer
dt = desc.dataType
# Save data sources and primary input dataset
dc = desc.dataCollection
ds = dc.getValue(0,0)
# Print describe properties
print("Layer name: " + name)
print("Data type: " + dt)
print("Input data: " + ds)
print("Minimum X Extent: " + str(aoi.XMin))
print("Maximum X Extent: " + str(aoi.XMax))
print("Minimum Y Extent: " + str(aoi.YMin))
print("Maximum Y Extent: " + str(aoi.YMax))