Changing Raster Layer Style

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Render type: multiband file)
(Render type: multiband file)
Line 9: Line 9:
 
# Right click the layer name in the Layer Panel and select {{mitem|text=Properties --> Symbology}}.
 
# Right click the layer name in the Layer Panel and select {{mitem|text=Properties --> Symbology}}.
 
# Change the assignment of Red, Green, Blue to band numbers and create color composites.  
 
# Change the assignment of Red, Green, Blue to band numbers and create color composites.  
Attention: usually the assignment refers to the original spectral band numbers. Pick the corresponding BandNo. in the multiband file.
+
Attention: usually the assignment refers to the original spectral band numbers which might be a different rank in the multiband file. Pick the corresponding No. according to the rank in the multiband file.
 
[[File:Qgis_band_assign.png|thumb|left|400px]]
 
[[File:Qgis_band_assign.png|thumb|left|400px]]
  
Line 19: Line 19:
 
   
 
   
 
Try other band combinations and produce false color composites.
 
Try other band combinations and produce false color composites.
Band numbers refer to the original Sentinel-2 band names:
+
 
  
 
* Natural Colors: (B4, B3, B2) = (3,2,1)
 
* Natural Colors: (B4, B3, B2) = (3,2,1)

Revision as of 13:59, 2 November 2020

Display of raster data in the map canvas can be enhanced using linear histogram stretching. Useful Raster tools are not activated by default. Right click on the main QGIS menu and activate the checkbox as seen on the screenshot. A new Raster Toolbar is now available on the main menu.

Qgis Activate Raster Toolbar.png.

Contents

Render type: multiband file

  1. Click the Open Data Source Manager QGIS 3.0 datasource.png and then Add raster layer QGIS 2.0 addrast.png and select a virtual stack or a multiband raster file.
  2. After clicking Open, the raster layer appears on the QGIS canvas.
  3. Right click the layer name in the Layer Panel and select Properties --> Symbology.
  4. Change the assignment of Red, Green, Blue to band numbers and create color composites.

Attention: usually the assignment refers to the original spectral band numbers which might be a different rank in the multiband file. Pick the corresponding No. according to the rank in the multiband file.

Qgis band assign.png
  • True Color composite.
    • Red band: Original B4, BandNo. 3
    • Green band: Original B3, BandNo.2
    • Blue Band: Original B2, BandNo. 1

In case of the Sentinel-2 example file this is a typical True Color composite.

Try other band combinations and produce false color composites.


  • Natural Colors: (B4, B3, B2) = (3,2,1)
  • False-Color Infrared: (B8, B4, B3) = (7,3,2)
  • False-Color Urban: (B12, B11, B4) = (10,9,8)
  • Agriculture: (B11, B8, B2) = (8,7,1)
  • Atmospheric Penetration: (B12, B11, B8A) = (10,9,8)
  • Healthy Vegetation: (B8, B11, B2) = (7,8,1)
  • Land/Water: (B8, B11, B4) = (7,8,3)
  • Natural with Atmospherical Removal: (B12, B8, B3) = (10,7,2)

Color composites and single band raster files may be enhanced in the Style menu by unfolding the 'Load min/max values. Select Stretch to MinMax. As default a tail clip of the lower 2% and upper 2% counts of the cumulative band histograms is activated. Activate the checkbox Clip extent to canvas. Only the values inside the image extent shown in the map canvas are now taken into account. Click on Load and Apply. The image display is enhanced by a linear stretch with tail clipping adpted to the current map view. Qgis linear contrast stretch.png

  1. Select the radio button Mean +/- standard deviation x radio button. After adjusting the standard deviation factor (a value between 1 and 2), click Load and confirm with Apply. Evaluate the image display in the map canvas.

Note, same effects but much faster can be reached by using the Raster Toolbar of the main Menu:

    • Qgis cum stretch.png Linear stretch using 2% cumulative count
    • Qgis stdev stretch.png Linear stretch clipping the mean +/- 2 * standard deviation

Render Type: Singleband gray

Render Type: Singleband pseudocolor

Pseudocolor is not to be mistaken for false color, the latter one being a composite of three bands. See also: Pseudocolor in Wikipedia

Pseudocolor is a way to display a raster map in which the color scale is derived from a single grayscale band. It can be a good alternative to grayscale if it comes to display metric data like elevation or temperature.

To change map color and symbology, again select the layer in the TOC with a right click and select Properties --> Style. From the pulldown menu Render type, select Singleband pseudocolor. A different menu will come up, where you may select the style of the color map in the section Generate new color map. Click classify and confirm with Apply or OK. The map should now appear in the selected style (figure C).

Figure C: Landsat map displayed in pseudocolor


Set Transperancy

Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export