Analyzing patterns in feature data

Your web GIS packs a set of tools that help you identify, quantify, and visualize spatial patterns in your data by identifying areas of statistically significant clusters.

This section demonstrates how interpolate_points() can be used to convert point feature data representing measurements in spot locations into a continuous prediction surface.

Interpolate points

The 'interpolate points' tool allows you to predict values at new locations based on measurements from a collection of points. The prediction result is a polygon layer classified by predicted values. We will use this tool to create a rainfall prediction surface using data from sparse weather stations in Chennai.

# Connect to GIS
from arcgis.gis import GIS
# you can use either your enterprise profile or your online profile
gis = GIS(profile="your_online_profile")
chennai_rainfall ="title:chennai_rain type:Feature Service")[0]
map1 ="Tamil Nadu", zoomlevel = 8)

Draw the rainfall stations on a map rendered by rainfall quantity

map1.add_layer(chennai_rainfall, { "renderer":"ClassedSizeRenderer", "field_name":"RAINFALL" })


The analyze_patterns sub module in features module provides access to interpolate_points() method.

from arcgis.features.analyze_patterns import interpolate_points

#run the interpolation tool and specify the field containing rainfall data
interpolated_rf = interpolate_points(chennai_rainfall, field='RAINFALL')
{"cost": 0.119}

The interpolate_points() method accepts more optional parameters allowing you to customize the analysis task. Using those parameters, you could optionally limit the number of classes generated, specify the class breaks, etc.

If the output_name parameter is not specified, the tool creates a feature collection instead of creating an output feature layer.

Let us add the result to a new map

interpolated_map ="Tamil Nadu", zoomlevel = 8)


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.