Compute Adjustments (Data Management)
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
-
Use the output control points from the Compute Tie Points tool as the input control points for this tool.
The output solution table from this tool will be used in the Apply Adjustment tool.
Syntax
Parameter | Explanation | Data 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.
| 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
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)
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()