Data type conversion

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
# Click the {{button|text=Add raster layer}} [[Image:QGIS_2.0_addrast.png|20px]] and select a multiband file e.g. ''/geodata/lucc/s2/Subset_S2A_MSIL2A_20170619T_MUL.tif''. This is multiband file with data type '''uint16'''. Convert to data type '''uint8 (8bit unsigned integer)''',  value range 0 to 255.
 
# Click the {{button|text=Add raster layer}} [[Image:QGIS_2.0_addrast.png|20px]] and select a multiband file e.g. ''/geodata/lucc/s2/Subset_S2A_MSIL2A_20170619T_MUL.tif''. This is multiband file with data type '''uint16'''. Convert to data type '''uint8 (8bit unsigned integer)''',  value range 0 to 255.
 
# Click {{button|text=Open}}.
 
# Click {{button|text=Open}}.
# In processing toolbar, type {{typed|text=dynamic}} into the search field to find the {{button|text=Orfeo Toolbox --> Image Manipulation --> DynamicConvert)}} tool.  
+
# In processing toolbar, type {{typed|text=dynamic}} into the search field to find the {{button|text=Orfeo Toolbox --> Image Manipulation --> DynamicConvert}} tool.  
 
# Open with a double click. Specify the input and a new output file name as shown in the screenshot.
 
# Open with a double click. Specify the input and a new output file name as shown in the screenshot.
 
# Set High cut quantil and Low cut quantile to {{typed|text=0}}
 
# Set High cut quantil and Low cut quantile to {{typed|text=0}}

Revision as of 14:13, 23 October 2019

We may change the data type (and radiometric resolution) of a raster layer.

  1. Click the Add raster layer QGIS 2.0 addrast.png and select a multiband file e.g. /geodata/lucc/s2/Subset_S2A_MSIL2A_20170619T_MUL.tif. This is multiband file with data type uint16. Convert to data type uint8 (8bit unsigned integer), value range 0 to 255.
  2. Click Open.
  3. In processing toolbar, type dynamic into the search field to find the Orfeo Toolbox --> Image Manipulation --> DynamicConvert tool.
  4. Open with a double click. Specify the input and a new output file name as shown in the screenshot.
  5. Set High cut quantil and Low cut quantile to 0
  6. Click Advanced parameters and define Output pixel type uint8.
  7. Click Run.

Qgis rescale.png

The output Image raster is now recoded and saved to unsigned eight bit.

Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export