Label | Explanation | Data Type |
Mosaic Dataset | The mosaic dataset from which items will be selected. | Mosaic Layer; Mosaic Dataset |
Output Mosaic Dataset | The referenced mosaic dataset to be created. | Mosaic Dataset |
Coordinate System (Optional) | The projection for the output mosaic dataset. | Coordinate System |
Number of Bands (Optional) | The number of bands that the referenced mosaic dataset will have. | Long |
Pixel Type (Optional) | The bit depth, or radiometric resolution, of the mosaic dataset. If this is not defined, it will be taken from the first raster dataset.
| String |
Query Definition (Optional) | An SQL expression to select raster datasets that will be included in the output mosaic dataset. | SQL Expression |
Extent from Dataset (Optional) | Select raster datasets based on the extent of another image or feature class. Raster datasets that lay along the defined extent will be included in the mosaic dataset. To manually input the minimum and maximum coordinates for the extent, use the Extent parameter. | Feature Layer; Raster Layer |
Extent
(Optional) | The minimum and maximum coordinates for the extent. If a dataset is selected in Extent from Dataset, those coordinates will automatically appear here. | Envelope |
Using Input Geometry for Selection (Optional) | Limit the extent to the shape or envelope when a feature class is selected in the Extent from Dataset parameter.
| Boolean |
Scale Field (Optional) | Legacy:This parameter has been deprecated and is ignored in tool execution. It remains for backward compatibility reasons. | Field |
Minimum Cell Size Field (Optional) | Specify a field from the footprint attribute table that defines the minimum cell size for displaying the mosaic dataset; otherwise, only a footprint will be displayed. | Field |
Maximum Cell Size Field (Optional) | Specify a field from the footprint attribute table that defines the maximum cell size for displaying the mosaic dataset; otherwise, only a footprint will be displayed. | Field |
Maximum Visible Cell Size (Optional) | Set a maximum cell size to display the mosaic instead of specifying a field. If you zoom out beyond this cell size, only the footprint will be displayed. | Double |
Build Boundary (Optional) | Rebuild the boundary. If the selection covers a smaller area than the source mosaic dataset, this is recommended. This is only available if the mosaic dataset is created in a geodatabase.
| Boolean |
Summary
Creates a separate mosaic dataset from items in an existing mosaic dataset.
Usage
A referenced mosaic dataset can be created in a geodatabase or a folder. When the mosaic dataset is created in a folder, it will not include a boundary.
Overviews cannot be created for a referenced mosaic dataset.
Use this tool to create a mosaic dataset from another mosaic dataset when you want to create a mosaic dataset with a different output. For example, you can create one mosaic dataset with elevation data and create another that will be used to produce a derived product, such as slope or hillshade.
Parameters
arcpy.management.CreateReferencedMosaicDataset(in_dataset, out_mosaic_dataset, {coordinate_system}, {number_of_bands}, {pixel_type}, {where_clause}, {in_template_dataset}, {extent}, {select_using_features}, {lod_field}, {minPS_field}, {maxPS_field}, {pixelSize}, {build_boundary})
Name | Explanation | Data Type |
in_dataset | The mosaic dataset from which items will be selected. | Mosaic Layer; Mosaic Dataset |
out_mosaic_dataset | The referenced mosaic dataset to be created. | Mosaic Dataset |
coordinate_system (Optional) | The projection for the output mosaic dataset. | Coordinate System |
number_of_bands (Optional) | The number of bands that the referenced mosaic dataset will have. | Long |
pixel_type (Optional) | The bit depth, or radiometric resolution, of the mosaic dataset. If this is not defined, it will be taken from the first raster dataset.
| String |
where_clause (Optional) | An SQL expression to select raster datasets that will be included in the output mosaic dataset. | SQL Expression |
in_template_dataset (Optional) | Select raster datasets based on the extent of another image or feature class. Raster datasets that lay along the defined extent will be included in the mosaic dataset. To manually input the minimum and maximum coordinates for the extent, use the Extent parameter. | Feature Layer; Raster Layer |
extent (Optional) | The minimum and maximum coordinates for the extent. | Envelope |
select_using_features (Optional) | Limit the extent to the shape or envelope when a feature class is specified in the in_template_dataset parameter.
| Boolean |
lod_field (Optional) | Legacy:This parameter has been deprecated and is ignored in tool execution. It remains for backward compatibility reasons. | Field |
minPS_field (Optional) | Specify a field from the footprint attribute table that defines the minimum cell size for displaying the mosaic dataset; otherwise, only a footprint will be displayed. | Field |
maxPS_field (Optional) | Specify a field from the footprint attribute table that defines the maximum cell size for displaying the mosaic dataset; otherwise, only a footprint will be displayed. | Field |
pixelSize (Optional) | Set a maximum cell size to display the mosaic instead of specifying a field. If you zoom out beyond this cell size, only the footprint will be displayed. | Double |
build_boundary (Optional) | Rebuild the boundary. If the selection covers a smaller area than the source mosaic dataset, this is recommended. This is only available if the mosaic dataset is created in a geodatabase.
| Boolean |
Code sample
This is a Python sample for the CreateReferencedMosaicDataset function.
import arcpy
arcpy.CreateReferencedMosaicDataset_management(
"C:/workspace/RefMD.gdb/md", "ref_md.amd", "GCS_WGS_1984.prj",
"1", "#", "#", "ref_md.shp", "#", "SELECT_USING_FEATURES", "#",
"#", "#", "#", "NO_BOUNDARY")
This is a Python script sample for the CreateReferencedMosaicDataset function.
# Create Referenced Mosaic Dataset from existing Mosaic Dataset
# Use shape file to clip the source mosaic dataset
import arcpy
arcpy.env.workspace = "C:/Workspace"
arcpy.CreateReferencedMosaicDataset_management(
"RefMD.gdb/md", "ref_md.amd", "GCS_WGS_1984.prj", "1", "#", "#",
"ref_md.shp", "#", "SELECT_USING_FEATURES", "#", "#", "#", "#",
"NO_BOUNDARY")
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes