Create Referenced Mosaic Dataset (Data Management)

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.

  • You can 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.

Syntax

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})
ParameterExplanationData 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.

  • 1_BITA 1-bit unsigned integer. The values can be 0 or 1.
  • 2_BITA 2-bit unsigned integer. The values supported can be from 0 to 3.
  • 4_BITA 4-bit unsigned integer. The values supported can be from 0 to 15.
  • 8_BIT_UNSIGNEDAn unsigned 8-bit data type. The values supported can be from 0 to 255.
  • 8_BIT_SIGNEDA signed 8-bit data type. The values supported can be from -128 to 127.
  • 16_BIT_UNSIGNEDA 16-bit unsigned data type. The values can range from 0 to 65,535.
  • 16_BIT_SIGNEDA 16-bit signed data type. The values can range from -32,768 to 32,767.
  • 32_BIT_UNSIGNEDA 32-bit unsigned data type. The values can range from 0 to 4,294,967,295.
  • 32_BIT_SIGNEDA 32-bit signed data type. The values can range from -2,147,483,648 to 2,147,483,647.
  • 32_BIT_FLOATA 32-bit data type supporting decimals.
  • 64_BITA 64-bit data type supporting decimals.
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.

  • SELECT_USING_FEATURESSelect using the shape of the feature. This is the default.
  • NO_SELECT_USING_FEATURESSelect using the extent of the data in the feature class.
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.

  • BUILD_BOUNDARYThe boundary will be generated or updated. This is the default.
  • NO_BOUNDARY The boundary will not be generated.
Boolean

Code sample

CreateReferencedMosaicDataset example 1 (Python window)

This is a Python sample for the CreateReferencedMosaicDataset tool.

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")
CreateReferencedMosaicDataset example 2 (stand-alone script)

This is a Python script sample for the CreateReferencedMosaicDataset tool.

# 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")

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics