GA Layer to Grid (Geostatistical Analyst) |
|
|
Release 9.3
Last modified November 10, 2008 |
Print all topics in : "Tools" |
Exports a Geostatistical layer to an ArcInfo GRID
Usage tips
The output GRID will be created at the cell size specified by Output cell size.
Select the number of predictions for each cell in the horizontal and vertical directions for block interpolation.
For output data formats that support Null values, a Null value will be used to indicate that a prediction could not be made for that location. For output data formats that do not support Null values, a negative DBL_MAX = -1.7976931348623158e+308 value will be used to indicate that a prediction could not be made for that location.
The following environment settings affect this tool:
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 |
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 |
# 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()