ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

GA Layer To Grid

Available with Geostatistical Analyst license.

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Exports a Geostatistical layer to a raster.

Usage

  • The output raster will be created at the cell size specified in the Output cell size parameter.

  • Select the number of predictions to make for each cell in the horizontal and vertical directions. The value assigned to each output raster cell will be the average of all predictions within that cell.

  • The name you give to the output raster determines the format in which it is created. When not saving to a geodatabase, specify an extension of .tif for a TIFF raster format, .img for ERDAS IMAGINE format, or no extension for an Esri Grid raster format.

Syntax

GALayerToGrid_ga (in_geostat_layer, out_surface_grid, {cell_size}, {points_per_block_horz}, {points_per_block_vert})
ParameterExplanationData Type
in_geostat_layer

The geostatistical layer to be analyzed.

Geostatistical Layer
out_surface_grid

The raster to be created.

Raster Dataset
cell_size
(Optional)

The cell size at which the output raster will be created.

This value can be explicitly set under Raster Analysis from the Environment Settings.

If not set, it is the shorter of the width or the height of the extent of the input point features, in the input spatial reference, divided by 250.

Analysis Cell Size
points_per_block_horz
(Optional)

The number of predictions for each cell in the horizontal direction for block interpolation.

Long
points_per_block_vert
(Optional)

The number of predictions for each cell in the vertical direction for block interpolation.

Long

Code Sample

GALayerToGrid example 1 (Python window)

Convert a geostatistical layer into a raster.

import arcpy
from arcpy import env
arcpy.GALayerToGrid_ga("C:/gapyexamples/data/kriging.lyr", 
                       "C:/gapyexamples/output/krig_grid", "2000", "1", "1")
GALayerToGrid example 2 (stand-alone script)

Convert a geostatistical layer into a raster.

# Name: GALayerToGrid_Example_02.py
# Description: Exports a geostatistical layer to grid.
# Requirements: Geostatistical Analyst Extension

# Import system modules
import arcpy

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

# Set local variables
inLayer = "C:/gapyexamples/data/kriging.lyr"
outGrid = "C:/gapyexamples/output/krig_grid"
cellSize = 2000
cellptsHor = 1
cellptsVer = 1

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

# Execute GALayerToGrid
arcpy.GALayerToGrid_ga(inLayer, outGrid, cellSize, cellptsHor, cellptsVer)

Environments

  • Cell Size
  • Current Workspace
  • Extent
  • Geographic Transformations
  • Mask
  • Output Coordinate System
  • Scratch Workspace
  • Snap Raster

Licensing Information

  • ArcGIS for Desktop Basic: Requires Geostatistical Analyst
  • ArcGIS for Desktop Standard: Requires Geostatistical Analyst
  • ArcGIS for Desktop Advanced: Requires Geostatistical Analyst

Related Topics

  • An overview of the Working With Geostatistical Layers toolset
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal