Analyze Mosaic Dataset (Data Management)
Summary
Examines a mosaic dataset to determine solutions for known errors and other issues, and to detect methods for optimization. The errors, warnings, and messages can be examined when the mosaic dataset is open within ArcMap.
Usage
-
To examine the analysis results, open the mosaic dataset in ArcMap, right-click the mosaic dataset in the table of contents and click Data > View Analysis Results. The Prepare window opens allowing you to view and interact with the errors, warnings, and messages. When you right-click on an error, warning, or message, a recommended action is listed.
The errors and warnings are categorized in the following way:
- A high-priority error indicates that an issue exists where you may not be able to use the mosaic dataset. Some examples of a high-priority error include invalid visibility or inability to open a raster dataset.
- A medium-priority error indicates an issue that directly affects your mosaic dataset authoring experience. These errors will usually indicate that a geoprocessing tool will likely fail with these mosaic datasets. Some examples of a medium-priority error include an empty mosaic dataset or an invalid raster type ID.
- A low-priority error indicates that an issue might affect some of the user experiences related to the mosaic dataset or a derived image service. Some examples of a low-priority error include an invalid CenterXY field or broken paths.
- A high-priority warning indicates an issue related to performance or optimum display. Some examples of a high-priority warning include missing overviews, missing mosaic dataset statistics, and missing raster dataset statistics.
- A low-priority warning indicates an issue with recommendations that may not have been followed. These recommendations usually ensure smoother and efficient operation, but are not required. Some examples of a low-priority warning include bad metadata, a JPEG quality set too low, too many uncompressed pixels in the mosaic dataset, or missing raster pyramids.
A message reports statistical facts related to the mosaic dataset.
In the results table, many of the errors and warnings can be fixed by right-clicking on the issue.
Messages do not have a solution, since there is no issue at hand.
Syntax
Parameter | Explanation | Data Type |
in_mosaic_dataset |
The mosaic dataset to be analyzed. | Image Service; Mosaic Layer; String |
where_clause (Optional) | You can define a query to confine the analysis to specific rasters within the mosaic dataset. Using SQL you can define a query or use the Query Builder to build a query. | SQL Expression |
checker_keywords [checker_keywords,...] (Optional) |
Choose which parts of the mosaic dataset you want to analyze for known issues.
| String |
Code Sample
This is a Python sample for the AnalyzeMosaicDataset tool.
import arcpy
arcpy.AnalyzeMosaicDataset_management(
"\\cpu\data\analyze.gdb\mosaicds", "SensorName = 'Landsat-7-ETM+'",
"FOOTPRINT;FUNCTION;RASTER;PATHS;PYRAMIDS")
This is a Python script sample for the AnalyzeMosaicDataset tool.
#Analyze Mosaic Dataset with query definition
#Analyze all components of mosaic dataset
import arcpy
arcpy.env.workspace = "C:/Workspace"
mdname = "analyzemd.gdb/mosaicds"
query = "SensorName = 'Landsat-7-ETM+'"
checks = "FOOTPRINT;FUNCTION;RASTER;PATHS;STALE;PYRAMIDS;PERFORMANCE"
arcpy.AnalyzeMosaicDataset_management(mdname, query, checks)