Error Message
When certain ERDAS Imagine IMG files in ArcGIS 9.3.1 run in the Extract by Mask tool the following error is returned:
"ERROR 010240: Could not save raster dataset to C:\Documents and settings\UserName\Local Settings\Temp\g_g_g19 with output format GRID. Failed to execute (ExtractByMask)."
Note:
This article applies to retired ArcGIS versions 9.x. Later versions of ArcGIS may contain different functionality, as well as different names and locations for menus, commands and geoprocessing tools.
Solution or Workaround
USGS, creator of the NLCD data, provides the following workaround.
ArcMap
- Add the NLCD raster and zoom to the area of interest.
- Export the area of interest to GRID with the following settings.
- Extent: Data Frame (Current)
- Spatial Reference: Raster Dataset (Original)
- Rename the file name and select a desired output file format, for example GRID.
- Click Save. Ignore the message: "Failed to Save Raster Dataset."
- Click OK.
ArcCatalog
- Navigate to ArcToolbox > Data Management Tools > Raster > Raster Properties.
- Run the Build Raster Attribute Table tool.
- Load the grid file as the Input Raster.
- Check the Overwrite box.
- Click OK.
ArcToolbox
- Navigate to Data Management Tools > Joins.
- Run the Join Field tool with the following settings.
- Input Table: grid file
- Input Join Field: value
- Join table: source NLCD image
- Output Join Field: value
- Join Fields: Check - Red, Green, Blue, Opacity, and Land cover.
Alternative solution using the Clip tool
ArcToolbox
- Navigate to Data Management Tools > Raster > Raster Processing.
- Run the Clip tool.
- Load the NLCD IMG file as the Input Raster.
- Set the Output Extent as the mask shapefile.
- Check Use Input Feature for Clipping Geometry.
- Specify the Output Raster Dataset
- Click OK.