Compute Adjustments (Data Management)

License Level:BasicStandardAdvanced

Summary

This tool is used to compute the adjustments to the mosaic dataset. This tool will create a solution table that can be used to apply the actual adjustments.

Usage

Syntax

ComputeAdjustments_management (in_mosaic_dataset, control_points_features, output_solution_table, {transformation_type}, maximum_residual_value)
ParameterExplanationData Type
in_mosaic_dataset

The input mosaic dataset that will be adjusted.

Mosaic Layer; Mosaic Dataset
control_points_features

The control points that will be used to compute the adjustments.

You can use your own ground control points, or you can use the output control points from the Compute Tie Points tool.

Feature Class; Feature Layer
output_solution_table

The output solution feature class containing the adjustments.

Feature Class
transformation_type
(Optional)

Choose which type of transformation will be used when adjusting the mosaic dataset.

  • POLYORDER0A zero-order polynomial is used to shift your data. This is commonly used when your data is already georeferenced, but a small shift will better line up your data. Only one link is required to perform a zero-order polynomial shift.
  • POLYORDER1A first-order polynomial (affine) fits a flat plane to the input points. This is the default.
  • POLYORDER2A second-order polynomial fits a somewhat more complicated surface to the input points.
  • POLYORDER3A third-order polynomial fits a more complicated surface to the input points.
String
maximum_residual_value

Enter the maximum residual value. Only residual values below this value will be used in the calculation of the solution table.

Double

Code Sample

ComputeAdjustments example 1 (Python window)

This is a Python sample for the ComputeAdjustments tool.

import arcpy
arcpy.ComputeAdjustments_management("\\serv\folder\CompAdjust.gdb\md_01", \
                                    "\\srvr\wksp\compTiePts.gdb\outCP", \
                                    "\\serv\folder\applyAdjust.gdb\sol", \
                                    "POLYORDER1", 10)
ComputeAdjustments example 2 (stand-alone script)

This is a Python script sample for the ComputeAdjustments tool.

#===========================
#Compute Adjustments
'''Usage: ComputeAdjustments_management(in_mosaic_dataset, control_points_features, 
                                        output_solution_table, {POLYORDER1 | POLYORDER0 | 
                                        POLYORDER2 | POLYORDER3}, {maximum_residual_value})
'''

try:
    import arcpy
    arcpy.env.workspace = "C:/Workspace"

    #Compute adjustment solution table
    mdname = "computeadjust.gdb/md"
    pointfeat = "pointsfeat.shp"
    solutiontbl = "C:/workspace/outsolutiontbl.dbf"
    order = "POLYORDER1"
    maxresidual = ""

    arcpy.ComputeAdjustments_management(mdname, pointfeat, solutiontbl, order, maxresidual)

except:
    print "Compute Adjustments example failed."
    print arcpy.GetMessages()

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013