Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am using ArcMap 10.0 and am confused by my Extract by Mask output rasters.

I hope to eliminate the black background from three Landsat ER Mapper images so that I can mosaic them. Originally I attempted to do this using the Clip function in the Raster Processing submenu, but saw via the Pixel Inspector that it was changing the raster pixel values. I then decided to use the Extract by Mask feature in Spatial Analyst, using rasters created from the original images themselves as the masks, and changing the Environment settings beforehand to use the mask raster as the Snap Raster and the output extent, and the original raster as the cell size.

When the Extract to Mask is completed and the extracted raster is added to the map, I see in the TOC on the left that the minimum value is changed. Further inspection reveals that the raster histogram is in fact altered. However, when I compare the original and extracted rasters using the Pixel Inspector I see absolutely no difference, which Raster Calculator confirms when I subtract the original from the extracted raster. Furthermore, in the Attribute Table when I select the rows of the extracted raster that are below the minimum in the original raster (have no count) and find them in the map, I see that their values in the identical original and extracted raster are indeed below the minimum (see image).

Example

I am stumped. I feel as if I am fundamentally misunderstanding something. Would anyone be so kind as to explain to me what is going on?

share|improve this question
1  
How was the clip tool changing the values? You sure it wasn't the symbology that was changing (since it is recalculated for the newly clipped raster)? –  Taylor H. Apr 15 '13 at 15:31
    
It wasn't just the symbology, the values were distinct in the Pixel Inspector. This was the reason I started changing the Geoprocessing Environment settings. –  Too Many Pumas Apr 16 '13 at 17:22

2 Answers 2

Well, I am not an expert but I do use ArcGIS 10 to visualize my data. The scale on the left (min-max) is the scaling of the colorbar. You can manually edit it. (Right click and see options). As long as your value of pixels in the extracted image remains unchanged, you need not worry about the colorbar.

share|improve this answer
    
I was sort of figuring that "all's well that ends well". What has given me pause however is the fact that the attribute table is altered. As you can see in the picture I included above, the selected (highlighted) cells for both the original and extracted raster have values equal to or less than the original minimum. As this is just the symbology this wouldn't bother me normally, but in the attribute table for the original raster there are no values (i.e. the count is zero) for values 0-23. In the extracted raster this is not the case. Thoughts? –  Too Many Pumas Apr 16 '13 at 17:28
    
Did you fix it? What you say is weird. To sum up, your pixels values got changed when you extracted by mask? Is there any data conversion being done too? –  Naresh Apr 18 '13 at 8:52

I'm not sure I'm understanding your question correctly, but here's a shot anyway. When using Extract by Mask to eliminate the "black background" in the images, you are most likely removing the only 0 values in the images. Is the change you're noticing a move from a Low of 0 to a Low of 24 as pictured in the image you posted? If that's the case, then the only change is the removal of the not-actual-data 0 values in the background. This seems most likely especially since you've looked at the actual data and have seen no difference. Hope that's on target ;)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.