Show Navigation | Hide Navigation

Linear Directional Mean (Spatial Statistics)

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


Related Topics

Identifies the general (mean) direction for a set of lines.

Learn about how Linear Directional Mean works


Illustration

Linear Directional Mean illustration

Usage tips

Command line syntax
An overview of the Command Line window
DirectionalMean_stats <Input_Feature_Class> <Output_Feature_Class> <Orientation_Only> {Case_Field}

Parameter Explanation Data Type
<Input_Feature_Class>

The feature class containing vectors for which the mean direction will be calculated.

Feature Layer
<Output_Feature_Class>

A line feature class that will contain the features representing the mean directions of the input feature class.

Feature Class
<Orientation_Only>

Specifies whether to include direction (From and To nodes) information in the analysis.

  • True — The From and To node information is ignored.
  • False — The From and To nodes are utilized in calculating the mean.

Boolean
{Case_Field}

Field used to group features for separate directional mean calculations. The case field can be of numeric, date, or string type.

Field
Data types for geoprocessing tool parameters


Command line example

workspace c:\data\yosemite.mdbDirectionalMean water\streams c:\temp\streams_dm.shp false NAME

Scripting syntax
About getting started with writing geoprocessing scripts
DirectionalMean_stats (Input_Feature_Class, Output_Feature_Class, Orientation_Only, Case_Field)

Parameter Explanation Data Type
Input_Feature_Class (Required)

The feature class containing vectors for which the mean direction will be calculated.

Feature Layer
Output_Feature_Class (Required)

A line feature class that will contain the features representing the mean directions of the input feature class.

Feature Class
Orientation_Only (Required)

Specifies whether to include direction (From and To nodes) information in the analysis.

  • True — The From and To node information is ignored.
  • False — The From and To nodes are utilized in calculating the mean.

Boolean
Case_Field (Optional)

Field used to group features for separate directional mean calculations. The case field can be of numeric, date, or string type.

Field

Data types for geoprocessing tool parameters


Script example

# Measure the geographic distribution of auto thefts
# Import system modules
import arcgisscripting

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

# Local variables...
workspace = "c:/data"
auto_theft_locations = "AutoTheft.shp"
auto_theft_links = "AutoTheft_links.shp"
auto_theft_sd = "auto_theft_SD.shp"
auto_theft_se = "auto_theft_SE.shp"
auto_theft_ldm = "auto_theft_LDM.shp"

try:
    # Set the workspace (to avoid having to type in the full path to the data every time)
    gp.Workspace = workspace

    # Process: Standard Distance of auto theft locations...
    gp.StandardDistance_stats(auto_theft_locations, auto_theft_sd, "1 Standard Deviation", "#", "#")

    # Process: Directional Distribution (Standard Deviational Ellipse) of auto theft locations...
    gp.DirectionalDistribution_stats(auto_theft_locations, auto_theft_se, "1 Standard Deviation", "#", "#")

    # Process: Linear Directional Mean of auto thefts...
    gp.DirectionalMean_stats(auto_theft_links, auto_theft_ldm, "false", "#")

except:
    # If an error occurred while running a tool, 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.