arcgis.geoanalytics.analyze_patterns module

These tools help you identify, quantify, and visualize spatial patterns in your data.

calculate_density takes known quantities of some phenomenon and spreads these quantities across the map. find_hot_spots identifies statistically significant clustering in the spatial pattern of your data.

calculate_density

analyze_patterns.calculate_density(input_layer, fields: str = None, weight: str = 'Uniform', bin_type: str = 'Square', bin_size: float = None, bin_size_unit: str = None, time_step_interval: int = None, time_step_interval_unit: str = None, time_step_repeat_interval: int = None, time_step_repeat_interval_unit: str = None, time_step_reference: datetime.datetime = None, radius: float = None, radius_unit: str = None, area_units: str = 'SquareKilometers', output_name: str = None, gis=None)

Parameters:

input_layer: Input Points (Feature layer). Required parameter.

fields: Population Field (str). Optional parameter.

weight: Weight (str). Required parameter.
Choice list:[‘Uniform’, ‘Kernel’]
bin_type: Output Bin Type (str). Required parameter.
Choice list:[‘Square’, ‘Hexagon’]

bin_size: Output Bin Size (float). Required parameter.

bin_size_unit: Output Bin Size Unit (str). Required parameter.
Choice list:[‘Feet’, ‘Yards’, ‘Miles’, ‘Meters’, ‘Kilometers’, ‘NauticalMiles’]

time_step_interval: Time Step Interval (int). Optional parameter.

time_step_interval_unit: Time Step Interval Unit (str). Optional parameter.
Choice list:[‘Years’, ‘Months’, ‘Weeks’, ‘Days’, ‘Hours’, ‘Minutes’, ‘Seconds’, ‘Milliseconds’]

time_step_repeat_interval: Time Step Repeat Interval (int). Optional parameter.

time_step_repeat_interval_unit: Time Step Repeat Interval Unit (str). Optional parameter.
Choice list:[‘Years’, ‘Months’, ‘Weeks’, ‘Days’, ‘Hours’, ‘Minutes’, ‘Seconds’, ‘Milliseconds’]

time_step_reference: Time Step Reference (_datetime). Optional parameter.

radius: Radius (float). Required parameter.

radius_unit: Radius Unit (str). Required parameter.
Choice list:[‘Feet’, ‘Yards’, ‘Miles’, ‘Meters’, ‘Kilometers’, ‘NauticalMiles’]
area_units: Area Unit Scale Factor (str). Optional parameter.
Choice list:[‘SquareMeters’, ‘SquareKilometers’, ‘Hectares’, ‘SquareFeet’, ‘SquareYards’, ‘SquareMiles’, ‘Acres’]

output_name: Output Features Name (str). Required parameter.

gis: Optional, the GIS on which this tool runs. If not specified, the active GIS is used.

Returns:
output - Output Features as a feature layer collection item

find_hot_spots

analyze_patterns.find_hot_spots(point_layer, bin_size: float = 5, bin_size_unit: str = 'Miles', neighborhood_distance: float = 5, neighborhood_distance_unit: str = 'Miles', time_step_interval: int = None, time_step_interval_unit: str = None, time_step_alignment: str = None, time_step_reference: datetime.datetime = None, output_name: str = None, gis=None)

Parameters:

point_layer: Input Points (_FeatureSet). Required parameter.

bin_size: Bin Size (float). Required parameter.

bin_size_unit: Bin Size Unit (str). Required parameter.
Choice list:[‘Feet’, ‘Yards’, ‘Miles’, ‘Meters’, ‘Kilometers’, ‘NauticalMiles’]

neighborhood_distance: Neighborhood Distance (float). Required parameter.

neighborhood_distance_unit: Neighborhood Distance Unit (str). Required parameter.
Choice list:[‘Feet’, ‘Yards’, ‘Miles’, ‘Meters’, ‘Kilometers’, ‘NauticalMiles’]

time_step_interval: Time Step Interval (int). Optional parameter.

time_step_interval_unit: Time Step Interval Unit (str). Optional parameter.
Choice list:[‘Years’, ‘Months’, ‘Weeks’, ‘Days’, ‘Hours’, ‘Minutes’, ‘Seconds’, ‘Milliseconds’]
time_step_alignment: Time Step Alignment (str). Optional parameter.
Choice list:[‘EndTime’, ‘StartTime’, ‘ReferenceTime’]

time_step_reference: Time Step Reference (_datetime). Optional parameter.

output_name: Output Features Name (str). Required parameter.

gis: Optional, the GIS on which this tool runs. If not specified, the active GIS is used.

Returns:
output - Output Features as a feature layer collection item