Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Geostatistical Analyst toolbox > Tools

GA Layer to Grid (Geostatistical Analyst)

Release 9.3
Last modified November 10, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Exports a Geostatistical layer to an ArcInfo GRID


Usage tips

Command line syntax
An overview of the Command Line window
GALayerToGrid_ga <in_geostat_layer> <out_surface_grid> {cell_size} {points_per_block_horz} {points_per_block_vert}

Parameter Explanation Data Type
<in_geostat_layer>

Input geostatistical layer

Geostatistical Layer
<out_surface_grid>

The ArcInfo GRID to be created

Raster Dataset
{cell_size}

The cell size at which the output GRID will be created

Analysis cell size
{points_per_block_horz}

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

Long
{points_per_block_vert}

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

Long
Data types for geoprocessing tool parameters


Command line example

GALayerToGrid c:/data/idw.lyr c:/data/out_grid 2 1 1

Scripting syntax
About getting started with writing geoprocessing scripts
GALayerToGrid_ga (in_geostat_layer, out_surface_grid, cell_size, points_per_block_horz, points_per_block_vert)

Parameter Explanation Data Type
in_geostat_layer (Required)

Input geostatistical layer

Geostatistical Layer
out_surface_grid (Required)

The ArcInfo GRID to be created

Raster Dataset
cell_size (Optional)

The cell size at which the output GRID will be created

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

Data types for geoprocessing tool parameters


Script example

# Purpose: Export a Geostatistical layer to a GRID.

# Create the Geoprocessor object.
import arcgisscripting
gp = arcgisscripting.create()

try:
    # Set the input GA layer.
    inputGALayer = "c:/data/Input/idw.lyr"

    # Set the output grid name.
    outputGrid = "out_grid" 

    # Set some of the parameters.
    cell_size = 2
    points_horiz = 1
    points_vert = 1

    # Check out GeoStatistical Analyst extension license.
    gp.CheckOutExtension("GeoStats")	

    # Process: GA Layer To Grid...
    gp.GALayerToGrid_ga (inputGALayer, outputGrid, cell_size, points_horiz, points_vert)

except:
    # If an error occurred while running a tool, then print the messages.
    print gp.GetMessages()	

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.