Space Time Kernel Density (Spatial Analyst Tools)
Summary
Expands kernel density calculations from analyzing the relative position and magnitude of the input features to include other dimensions such as time and depth (elevation). The resulting output identifies the magnitude-per-unit area using the multiple kernel functions to fit a smoothly tapered surface to each input point.
Usage
You must provide a value for the Elevation Field (
elevation_fieldin Python) parameter or the Time Field (time_fieldin Python) parameter, or both. While the tool will initially show both as being required, once a value for one of them has been provided, the other becomes optional.The kernel functions are defined based on the parameter values provided. When the Elevation Field parameter value is provided, the kernel is extended along the direction (z) axis. When the Time Field parameter value is provided, the kernel is extended along the time (t) axis. When both values are provided, kernels are extended along the z-axis and t-axis.
If only one of the of these parameter values is provided, the output will be a three-dimensional raster. If both parameter values are provided, the output will be a four-dimensional raster.
Only the points that fall within the neighborhood are considered when calculating density. If no points fall within the neighborhood of a particular cell, that cell is assigned NoData.
The tool generates an output raster in either the NetCDF format or Cloud Raster Format (CRF). The location and name you provide for the output raster determines the format in which it is created. For the Output Raster parameter value, use the
.ncextension to create the output in the netCDF format. Use the.crfextension to create an output CRF raster. By default, the tool will output a CRF raster.You can create a voxel layer output using the optional Output Voxel Layer parameter. This parameter is only available if the Output Raster parameter value is set to create NetCDF output with the
.ncextension. If you attempt to specify a voxel layer output using the.crfextension for a CRF raster in the Output raster parameter, the tool will produce an error message and not run.If you run the tool in a local scene with the same horizontal and vertical coordinate systems as the input features, a voxel layer will be added to the scene allowing you to interactively explore the results. A notification appears stating that the coordinate system is unknown if no coordinate system is defined. You can also add the output NetCDF raster as a voxel layer using the Make Multidimensional Voxel Layer tool or the Add Multidimensional Voxel Layer dialog box.
You can convert the output netCDF raster to a multidimensional raster using the Copy Raster tool. You can also add it to a map as a feature layer or raster layer using the Make NetCDF Feature Layer tool or Make NetCDF Raster Layer tool, respectively.
The generated voxel layer is a temporary layer that will not persist unless it is saved using the Save To Layer File tool. You can use the Create Voxel Scene Layer Content tool to create a scene layer package (
.slpkfile) from a voxel layer input.Very large or very small values in the Population Field (
population_fieldin Python) parameter may produce results that seem nonintuitive. If the mean of the population field is much larger than 1 (for example, as with city populations), the default search radius may be very small, resulting in small rings around the input points. If the mean of the population field is much smaller than 1, the calculated search radius may seem unreasonably large. In these cases, you can provide a custom search radius.The Cell Size (
cell_sizein Python) parameter can be defined by a numeric value or obtained from an existing raster dataset. If the cell size hasn't been provided as the parameter value, it is derived from the Cell Size environment if it has been specified. If neither the parameter cell size nor the environment cell size have been provided, but the Snap Raster environment has been set, the cell size of the snap raster will be used. If nothing is specified, the cell size will be calculated from the shorter of the width or height of the extent divided by 250 in which the extent is in the output coordinate system specified in the environment.If the cell size is specified using a numeric value, the tool will use it directly for the output raster.
If the cell size is specified using a raster dataset, the parameter will show the path of the raster dataset instead of the cell size value. The cell size of that raster dataset will be used directly in the analysis, provided the spatial reference of the dataset is the same as the output spatial reference. If the spatial reference of the dataset is different than the output spatial reference, it will be projected based on the specified Cell Size Projection Method value.
The Resultant Values (
resultant_valuesin Python) parameter specifies what the output raster values represent. If Densities (DENSITIESin Python) is specified, the values represent the kernel density value per unit area for each cell. If Expected Counts (EXPECTED_COUNTSin Python) is specified, the values represent the kernel density per cell area.The Planar option for the Method (
methodin Python) parameter is appropriate if the analysis will be performed at a local scale with a projection that accurately maintains the correct distance and area. The Geodesic option is appropriate if the analysis will be performed at a regional or large scale. This method takes into account the curvature of the spheroid and correctly handles data near the poles and the international dateline.For data formats that support Null values, such as file geodatabase feature classes, a Null value will be ignored when used as input.
See Analysis environments and Spatial Analyst for additional details on the geoprocessing environments that apply to this tool.
References:
Härdle, W. K., Müller, M, Sperlich, S., and Werwatz, A. Nonparametric and semiparametric models (Vol. 1). Berlin: Springer, 2004.
Hu, Y., Wang, F., Guin, C., and Zhu, H. "A spatio-temporal kernel density estimation framework for predictive crime hotspot mapping and evaluation." Applied geography, 99, 2018, 89-97.
Nakaya, T., and Yano, K. "Visualising crime clusters in a space-time cube: An exploratory data analysis approach using space time kernel density estimation and scan statistics." Transactions in GIS, 14(3), 2010, 223-239.
Silverman, B. W. Density Estimation for Statistics and Data Analysis. New York: Chapman and Hall, 1986.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Point Features |
The input point features for which density will be calculated. |
Feature Layer |
|
Population Field |
The field denoting population values for each feature. The population is the count or quantity to be spread across the landscape to create a continuous surface. Values in the population field can be integer or floating point. Use None if no item or special value will be used and each feature will be counted once. |
Field |
|
Elevation Field (Optional) |
The field denoting elevation values for each feature. Values in the elevation field can be integer or floating point. Use Empty to support 3D kernel density with time. For 3D features, a pseudo field, |
Field |
|
Elevation Field Unit (Optional) |
Specifies the unit of measure that will be used for the input elevation field value. The default is meters. Use the appropriate unit to represent the values in the Elevation Field parameter value.
|
String |
|
Time Field (Optional) |
The field denoting time values for each feature. |
Field |
|
Cell Size (Optional) |
The cell size of the multidimensional raster output that will be created. The value can be defined by a numeric value or obtained from an existing raster dataset. If no cell size is provided, the environment cell size value will be used if specified; otherwise, additional rules will be used to calculate it from the other inputs. See the tool usage for details. |
Analysis Cell Size |
|
Search Radius (x and y) (Optional) |
The search radius on the x,y plane within which density will be calculated. Provide the value and the appropriate units. For example, to include all features within a 1-mile neighborhood when the units are meters, set the search radius to 1609.344 (1 mile = 1609.344 meters). By default, the units are based on the linear unit of the output spatial reference. |
Linear Unit |
|
Search Radius (z) (Optional) |
The vertical search distance in the z-direction within which density will be calculated. This vertical distance will be used to search for features in the upward and downward directions along the z-axis. Provide the value and the appropriate units. |
Linear Unit |
|
Search Time Window (t) (Optional) |
The search range of time within which density will be calculated. Provide the value and the appropriate units. |
Time Unit |
|
Resultant Values (Optional) |
Specifies what the values in the output raster will represent. Since the output cell value is related to the specified cell size, the resulting raster cannot be resampled to a different cell size.
|
String |
|
Method (Optional) |
Specifies whether the flat earth (planar) or the shortest path on a spheroid (geodesic) method will be used.
|
String |
|
Minimum Elevation (Optional) |
The minimum (lowest) elevation that will be used for the multidimensional raster output. |
Double |
|
Maximum Elevation (Optional) |
The maximum (highest) elevation that will be used for the multidimensional raster output. |
Double |
|
Elevation Interval (Optional) |
The elevation interval between slices in the multidimensional raster output. The value must be greater than zero. |
Double |
|
Elevation Unit (Optional) |
Specifies the unit of elevation interval that will be used for the multidimensional raster output. The default is meter.
|
String |
|
Start Time (Optional) |
The start time that will be used for the multidimensional raster output. |
Date |
|
End Time (Optional) |
The end time that will be used for the multidimensional raster output. |
Date |
|
Time Interval (Optional) |
The time interval between slices in the multidimensional raster output. The value must be greater than zero. |
Double |
|
Time Interval Unit (Optional) |
Specifies the unit of the time interval that will be used for the multidimensional raster output. The default is day.
|
String |
|
Output Voxel Layer (Optional) |
The output voxel layer based on volumetric data stored in the output netCDF raster. This output type can only be created when the Output Raster parameter is set to create a netCDF raster with the |
Voxel Layer |
Return value
| Label | Explanation | Data type |
|---|---|---|
|
Output Raster |
The output kernel density multidimensional raster dataset. The file name extension determines the format of the output. Use It is always a floating point raster. |
Raster |
Environments
Auto Commit, Cell Size, Cell Size Projection Method, Current Workspace, Extent, Geographic Transformations, Mask, Output CONFIG Keyword, Output Coordinate System, Parallel Processing Factor, Scratch Workspace, Snap Raster, Tile Size
Licensing information
- Basic: Requires Spatial Analyst
- Standard: Requires Spatial Analyst
- Advanced: Requires Spatial Analyst