Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Spatial Statistics toolbox > Utilities toolset > Tools

Z Score Rendering (Spatial Statistics)

Release 9.2
Last modified January 9, 2009
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Applies a cold-to-hot graduated color rendering to a field of z scores.


Illustration

Z Score Rendering illustration

Usage tips

Command line syntax
An overview of the Command Line window
ZRenderer_stats <Input_Feature_Class> <Field_to_Render> <Output_Layer_File>

Parameter Explanation Data Type
<Input_Feature_Class>

The feature class containing a file with standardized Z scores.

Feature Layer
<Field_to_Render>

The name of the field containing the z scores.

Field
<Output_Layer_File>

The output layer file to store rendering information. You must include the .lyr extension as part of the file name.

Layer File
Data types for geoprocessing tool parameters


Command line example

workspace e:\project93\data
HotSpot tracts.shp AGE_65_UP tract65.shp 'Inverse Distance' 'Euclidean Distance' 0 None ZRenderer tract65.shp GiInvDst tracthot

Scripting syntax
About getting started with writing geoprocessing scripts
ZRenderer_stats (Input_Feature_Class, Field_to_Render, Output_Layer_File)

Parameter Explanation Data Type
Input_Feature_Class (Required)

The feature class containing a file with standardized Z scores.

Feature Layer
Field_to_Render (Required)

The name of the field containing the z scores.

Field
Output_Layer_File (Required)

The output layer file to store rendering information. You must include the .lyr extension as part of the file name.

Layer File

Data types for geoprocessing tool parameters


Script example

# Perform Hot Spot Analysis for assault incidents
# Import system modules
import arcgisscripting

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

# Local variables...
workspace = "C:/project93/data"
input = "assaults.shp"
collect_output = "collect_output.shp"
collect_count_field = "Count"
hotspot_output = "hotspot_output.shp"
hotspot_output_rendered = "hotspot_output_rendered.lyr"
z_score_field_name = "GiInvDst"

try:
    # Set the current workspace (to avoid having to specify the full path to the feature classes each time)
    gp.workspace = workspace

    # Convert assault incidents into weighted point data
    # Process: Collect Events...
    gp.CollectEvents_stats(input, collect_output)

    # Calculate Getis-Ord Gi* statistic
    # Process: Hot Spot Analysis (Getis-Ord Gi*)...
    gp.HotSpots_stats(collect_output, collect_count_field, hotspot_output, "Inverse Distance", "Euclidean Distance", "None", "#", "#", "#")

    # Render hot spot analysis
    # Process: Z Score Rendering...
    gp.ZRenderer_stats(hotspot_output, z_score_field_name, hotspot_output_rendered)

except:
    # If an error occurred when running the tool, print out the error message.
    print gp.GetMessages(2)

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