Richtungsverteilung (Standardabweichungsellipse) (Räumliche Statistiken)

Lizenzstufe:BasicStandardAdvanced

Zusammenfassung

Erstellt Standardabweichungsellipsen, um die räumlichen Eigenschaften geographischer Features zusammenzufassen: zentrale Tendenz, Streuung und Richtungstrends.

Informationen zur Funktionsweise der Richtungsverteilung (Standardabweichungsellipse)

Bild

Abbildung "Richtungsverteilung" (Standardabweichungsellipse)

Verwendung

Syntax

DirectionalDistribution_stats (Input_Feature_Class, Output_Ellipse_Feature_Class, Ellipse_Size, {Weight_Field}, {Case_Field})
ParameterErläuterungDatentyp
Input_Feature_Class

Eine Feature-Class, die eine Verteilung von Features enthält, für die die Standardabweichungsellipse berechnet wird.

Feature Layer
Output_Ellipse_Feature_Class

Eine Polygon-Feature-Class, die das Ausgabe-Ellipsen-Feature enthalten wird.

Feature Class
Ellipse_Size

Die Größe von Ausgabeellipsen in Standardabweichungen. Die Standardellipsengröße beträgt 1; gültige Optionen sind 1, 2 oder 3 Standardabweichungen.

  • 1_STANDARD_DEVIATION
  • 2_STANDARD_DEVIATIONS
  • 3_STANDARD_DEVIATIONS
String
Weight_Field
(optional)

Das Zahlenfeld, das verwendet wird, um Orte nach ihrer relativen Bedeutung zu gewichten.

Field
Case_Field
(optional)

Feld, das zur Gruppierung von Features für separate gerichtete Verteilungsberechnungen verwendet wird. Das Case-Feld kann eine Ganzzahl, ein Datum oder eine Zeichenfolge aufweisen.

Field

Codebeispiel

DirectionalDistribution – Beispiel (Python-Fenster)

Das folgende Skript im Python-Fenster veranschaulicht, wie Sie das Werkzeug "DirectionalDistribution" verwenden.

import arcpy
arcpy.env.workspace = r"C:\data"
arcpy.DirectionalDistribution_stats("AutoTheft.shp", "auto_theft_SE.shp", "1_STANDARD_DEVIATION", "#", "#")
Werkzeug "DirectionalDistribution" – Beispiel (eigenständiges Python-Skript)

Das folgende eigenständige Python-Skript veranschaulicht, wie Sie das Werkzeug "DirectionalDistribution" verwenden.

# Measure the geographic distribution of auto thefts
 
# Import system modules
import arcpy
 
# Local variables...
workspace = "C:/data"
locations = "AutoTheft.shp"
links = "AutoTheft_links.shp"
standardDistance = "auto_theft_SD.shp"
stardardEllipse = "auto_theft_SE.shp"
linearDirectMean = "auto_theft_LDM.shp"
 
try:
    # Set the workspace (to avoid having to type in the full path to the data every time)
    arcpy.env.workspace = workspace
 
    # Process: Standard Distance of auto theft locations...
    arcpy.StandardDistance_stats(locations, standardDistance, "1_STANDARD_DEVIATION", "#", "#")
 
    # Process: Directional Distribution (Standard Deviational Ellipse) of auto theft locations...
    arcpy.DirectionalDistribution_stats(locations, standardEllipse, "1_STANDARD_DEVIATION", "#", "#")
 
    # Process: Linear Directional Mean of auto thefts...
    arcpy.DirectionalMean_stats(links, linearDirectMean, "DIRECTION", "#")
 
except:
    # If an error occurred while running a tool, print the messages 
    print arcpy.GetMessages()

Umgebung

Ausgabe-Koordinatensystem

Die Feature-Geometrie wird vor der Analyse auf das Ausgabe-Koordinatensystem projiziert. Alle mathematischen Berechnungen basieren auf dem Raumbezug des Ausgabe-Koordinatensystems.

Verwandte Themen

Lizenzierungsinformationen

ArcGIS for Desktop Basic: Ja
ArcGIS for Desktop Standard: Ja
ArcGIS for Desktop Advanced: Ja
6/5/2014