Knowledge Base - Technical Articles


Technical Article   Error:  ERROR 010240: Could not save raster dataset to C:\Documents and settings\UserName\Local Settings\Temp\g_g_g19 with output format GRID.

Article ID: 38972
Software:  ArcGIS - ArcEditor 9.3.1 ArcGIS - ArcInfo 9.3.1 ArcGIS - ArcView 9.3.1
Platforms:  Windows XP, 2003Server, Vista, 2008Server, Win 7

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

Cause

This error is a result of a data specific issue. The data is from the National Land Cover Database (NLCD).

Solution or Workaround

USGS, creator of the NLCD data, provides the following workaround.

1. In ArcMap

A) Add the NLCD raster and zoom to the area of interest.
B) Export the area of interest to GRID with the following settings.
• Extent: Data Frame (Current)
• Spatial Reference: Raster Dataset (Original)
C) Rename the file name and select a desired output file format, for example GRID.
D) Click Save. Ignore the message: "Failed to Save Raster Dataset."
E) Click OK.

2. In ArcCatalog

A) Navigate to ArcToolbox > Data Management Tools > Raster > Raster Properties.
B) Run the Build Raster Attribute Table tool.
C) Load the grid file as the Input Raster.
D) Check the Overwrite box.
E) Click OK.

3. In ArcToolbox

A) Navigate to Data Management Tools > Joins.
B) 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.

An alternative solution is to use Clip tool.

In ArcToolbox

A) Navigate to Data Management Tools > Raster > Raster Processing.
B) Run the Clip tool.
C) Load the NLCD IMG file as the Input Raster.
D) Set the Output Extent as the mask shapefile.
E) Check "Use Input Feature for Clipping Geometry"
F) Specify the Output Raster Dataset
G) Click OK


Created: 5/19/2011
Last Modified: 6/13/2011

Article Rating: (1)
If you would like to post a comment, please login

Comments

By MaloneyMC - 09/13/2011 8:45 AM

The article is incorrect or the solution didn’t work.

I'm very grateful this issue with NLCD data was addressed. However, the grid produced by the export is shifted slightly, despite proper environment settings, so the subsequent steps produce useless data. The alternative, Clip, fails to execute (999998: unexpected error). Please provide another way to clip/extract NLCD rasters.

Rating: