Sunday, 1 March 2015

Getting ArcMap to display rasters properly first time


This is a very basic question, but as I've self-taught most of my GIS skills this is still a gap in my knowledge.


When I load a .tif raster into ArcMap, most of the time it requires re-exporting to get it to display the correct values on the colour ramp. Rather than the actual values, I get 255->0 for most .tif files. Why does it default to this scale? And is there any way to get ArcMap to display the actual pixel values first time?



Thanks in advance,



Answer



In ArcGIS you need to 'calculate statistics' for your raster. The easiest way to accomplish this is to right-click on your raster in the table of contents and select Properties. Click on the Symbology tab and you will have access to your display and symbolization properties. From here you can select the symbology you want to use. If you switch between Stretched and Classified in the left-hand pane Arc will prompt you to calculate the raster statistics. Once the statistics are calculated your data should display properly. At this point you can switch back to Stretched if you like. This is a trick to get it calculated quickly.


enter image description here


Alternatively, you can use the Calculate Statistics tool, which is found under Data Management in ArcToolbox. The default values are fine.


On a related note, statistics should be calculated automatically in most cases if you have it set this way in the Environment Settings under the Geoprocessing menu:


enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...