|
TEACHING GEOG 385.02/GTECH 785.02 |
GIS SG course homepage |
If you have not done so yet, download Demo2.exe. Downloading class demo data.
|
Viewing palette and symbol files |
Underlying values and color enhancement in autoscaling
|
|
In the computer, GIS spatial data is organized using vector and raster data models. The attribute data is also stored digitally as text and numbers. When visualizing (displaying) the attribute data, we use colors to represent attribute values.
Palettes are color groups used in conjunction with particular images or themes. Graphic symbols for points, lines, and polygons are recorded in symbol files, where, in addition to colors, the shape, size, style, and fill pattern for each symbol can be specified.
There are 133 soil classes shown on this map. In other words, cell attribute values range from 0 to 133 (total of 134 values) and indicate the location of these soil types. These 134 values are displayed with 134 different colors. The colors are defined by color codes (numbers) stored in a Qual256 palette file. Out of 256 palette colors 134 are used to render these data. Each attribute value from 0 to 133 is put in correspondence to first 134 color codes, also numbered from 0 to 133. We will now open the palette file to see the how the color codes and colors are organized.
This palette file has 256 (16x16) colors represented by color codes from 0 to 255. This is one of the standard (default) Idrisi palettes.
First 134 colors of this palette are used to display values from 0 to 133 in the AFFAOSOL image.
16 color palettes are organized in a similar way. Only first 16 colors are defined however, while the rest is not used to display values.
The display changed dramatically. Scroll the legend down. You can see that now only the first 16 soil classes are displayed with unique colors, while the remaining color codes all produce white background color.
You can modify the each palette color by clicking on it or by using Blend and Copy functions to the left.
User-defined (custom) palettes usually have the same name as the image for which they are created. They are stored in the folder with the image itself (as opposed to \Idrisi\ Symbols\ folder, that stores default palettes). When copying an image, you should also copy the palette. To see a custom or user-defined palette:
Worcwest palette was edited in such a way, that most color codes display white color while first 15 color codes (0-14) correspond to colors that best convey how 13 landuse classes are distributed throughout WORCWEST image. Where possible, colors correspond to natural landcover colors (green for forest, blue for water, etc.).
This map shows a road network in
Here lines are symbolized to show differences in color. In addition, one can change line size and thickness (click on a symbol to be modified).
Point and polygon symbols are stored in corresponding files and can be rendered according to the content of the data.
Different color schemes should be used for discrete data and continuous data (buildings or elevation), and for qualitative and quantitative data.
Display SIERRADEM Idris256
This is quantitative data, legend shows one blending color bar.
Colors change gradually and blend to emphasize continuous change in data.
DISPLAY KVLANDU with Qual 256
This time the legend shows discrete categories. The legend labels are read from
the documentation file. This is qualitative data.
Colors are contrasting to emphasize the differences.
Drag the two windows so they are both visible.
Choose CANCEL on the Layer Properties dialog to return to
the original display.
Which palette works best? Which does not work well?
Close everything.
Autoscaling defines the relationship between range of data and color representation. Specifically, it refers to the automatic division of a range of data values into a new range of values that correspond to color codes for display. Autoscaling is used to display any range of values in a raster or vector layer with the number of colors (color codes) in a specified palette or symbol file. Autoscaling performs a linear stretch of the data values, which means that the lowest data value is assigned to the lowest palette or symbol index number, the highest data value is assigned to the highest palette or symbol index number, and all other data values are assigned to an index in direct proportion to their position within the data range. (See HELP)
Autoscaling is invoked when available color codes do not match the data in number or value.
Note the poor contrast in this image. Why is this happening? Open Layer Properties. Note that the min and max attribute values are 0 and 15. Ndvi256 palette, however, has 256 colors and only first 15 colors are used to display the attribute values. Because the palette is quantitative, colors change gradually. In this end of the palette they all are shades of dark blue. This poor contrast can be remedied with Autoscaling.
Before values 0-15 were shown with first 16 colors of 256 color palette (all very similar), but now 0 corresponds to 0 color code and 15 corresponds to 256 color code. In other words, data values are stretched over the entire palette which dramatically improves contrast.
If you where to use NDVI16 palette with this image, would you need to autoscale the data for display?
Autoscaling is invoked by default because there are more attribute values than available color codes. In this case, the attribute values will be distributed between color codes 0 and 255, and each color will display a range of attribute values. Thus, 0 of the palette will correspond to the min attribute value while 255 - to the max attribute value.
Therefore, value 410=0 color code; value 1999=255th color code.
You get an error message that numeric characteristics of the image require autoscaling. Which characteristics are these? (data range)
For example, data may range from –7.2 to +4.6 (temperature data?). Real values can never be matched to byte color codes, because fractions have no clear boundary. Thus, when we display real numbers, autoscaling is always invoked.
You get an error message that numeric characteristics of the image require autoscaling. Which characteristics are these? (data type)
Byte or integer data can be autoscaled upon request (check Autoscale on), if the data range is under 255 levels or 16 levels (depending on a palette).
Note that the underlying data values are not changed by any of these display enhancements.
· Use autoscaling to increase visual contrast when the data range is smaller than the range of colors in the palette.
· Autoscaling is always invoked when the values are real or exceed the 0-255 range.
· Autoscaling does not alter the data values. It only affects the display.
Final question:
Why we cannot see these contour lines?
A good map must include certain components:
Cartography is defined as both art and science of map making. Science implies precision of location and competency in display of data. Art means that as any visual language, map is a powerful way of communicating the information. Maps must be composed in such a way that its language is effective, not deceiving, and esthetically pleasing, which all enhance the power of maps. In particular:
Go to Map Compositions. Compare the two maps and discuss what is wrong with the Bad Map.