Summary
Removes the raster attribute table associated with a raster dataset.
Usage
The input raster dataset can only have a single band.
Syntax
DeleteRasterAttributeTable(in_raster)
Parameter | Explanation | Data Type |
in_raster | The raster dataset containing the attribute table you want to remove. | Raster Layer |
Derived Output
Name | Explanation | Data Type |
out_raster | The output raster dataset. | Raster Layer |
Code sample
This is a Python sample for the DeleteRasterAttributeTable tool.
##====================================
##Delete Raster Attribute Table
##Usage: DeleteRasterAttributeTable_management in_raster
import arcpy
arcpy.env.workspace = "C:/Workspace"
##Delete the attribute table of single band image if exist
arcpy.DeleteRasterAttributeTable_management("image.tif")
This is a Python script sample for the DeleteRasterAttributeTable tool.
##====================================
##Delete Raster Attribute Table
##Usage: DeleteRasterAttributeTable_management in_raster
import arcpy
arcpy.env.workspace = "C:/Workspace"
##Delete the attribute table of single band image if exist
arcpy.DeleteRasterAttributeTable_management("image.tif")
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes