Recalculates the Range, Nugget, and Partial Sill semivariogram parameters based on a smaller neighborhood, moving through all location points.
The geostatistical model source is either a geostatistical layer or a geostatistical model (XML).
The input dataset must contain more than 10 points for the tool to execute. However, the tool is most effective with large datasets that have nonstationary trends.
In Python scripting, the GeostatisticalDatasets ArcPy class will be useful for populating the Input dataset(s) parameter.
For data formats that support Null values, such as file and personal geodatabase feature classes, a Null value will be used to indicate that a prediction could not be made for that location or that the value should be ignored when used as input. For data formats that do not support Null values, such as shapefiles, the value of -1.7976931348623158e+308 is used (this is the negative of the C++ defined constant DBL_MAX) to indicate that a prediction could not be made for that location.
Alternatively, it can be a semicolon-delimited string of elements. Each element is comprised of the following components:
The catalog path and name to a dataset or the name of a layer in the current table of contents, followed by a space.
A sequence of field names, each field name separated by a space. In the case of a raster, the cell values will be used.
Geostatistical Value Table
Point locations where predictions will be performed.
Number of neighbors to use in the moving window.
Feature class storing the results.
The cell size at which the output raster will be created.
This value can be explicitly set under Raster Analysis from the Environment Settings. If not set, it is the shorter of the width or the height of the extent of the input point features, in the input spatial reference, divided by 250.
Analysis Cell Size
The prediction values in the output feature class are interpolated onto a raster using the Local polynomial interpolation method.
MovingWindowKriging example 2 (stand-alone script)
Predict values at select point locations.
# Name: MovingWindowKriging_Example_02.py# Description: The kriging model is automatically estimated for each neighborhood# as the kriging interpolation moves through all the location points.# Requirements: Geostatistical Analyst Extension# Import system modulesimportarcpy# Set environment settingsarcpy.env.workspace="C:/gapyexamples/data"# Set local variablesinLayer="C:/gapyexamples/data/kriging.lyr"inPoints="C:/gapyexamples/data/ca_ozone_pts.shp OZONE"obsPoints="C:/gapyexamples/data/obs_pts.shp"maxNeighbors=10outPoints="C:/gapyexamples/output/outMWK"# Check out the ArcGIS Geostatistical Analyst extension licensearcpy.CheckOutExtension("GeoStats")# Execute MovingWindowKrigingarcpy.GAMovingWindowKriging_ga(inLayer,inPoints,obsPoints,maxNeighbors,outPoints)