Create stack

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Build a virtual stack)
 
(11 intermediate revisions by one user not shown)
Line 1: Line 1:
== Build a virtual stack ==
+
= Build a virtual stack =
 
A VRT (Virtual Dataset) is a list of links to input raster datasets. This has the advantage that no additional physical copy of the original files is necessary which saves storage capacity.
 
A VRT (Virtual Dataset) is a list of links to input raster datasets. This has the advantage that no additional physical copy of the original files is necessary which saves storage capacity.
# Click {{mitem|text=Raster --> Miscellaneous --> Build Virtual Raster}}.
+
* Click {{mitem|text=Raster --> Miscellaneous --> Build Virtual Raster}}.
# Input files:  Click {{button|text=Select}} and click the checkbox of several single raster band files in the Multiple Selection window. Take care on the order of the files selection: etermines the rank of bands in the resulting multiband file. The rank of files can be changed by drag and drop in the Multiple Selection window.
+
* Input files:  Click {{button|text=Select}} and click the checkbox of several single raster band files in the Multiple Selection window. Take care on the order of the files selection (here: B2,B3,B4,B5,B6,B7,B8,B8A,B11,B12) determines the rank of bands in the resulting multiband file. The rank of files can be changed by drag and drop in the Multiple Selection window.
# Output ''Converted'' file:  Click {{button|text=...}} {{button|text=Save to file ..-}}and choose a new file name.
+
* Output ''Converted'' file:  Click {{button|text=...}} {{button|text=Save to file ..-}}and choose a new file name.
# Check that the checkbox on '''Place each input file into a separate band''' (see screenshot below).
+
* !Check the checkbox on '''Place each input file into a separate band''' (see screenshot below).
 +
* Set output '''Resolution''' to {{typed|text=highest}}.
 +
* Set Resampling algorithm to {{typed|text=Bilinear}}
 
[[File:Qgis_virtual_raster.png|400px]]
 
[[File:Qgis_virtual_raster.png|400px]]
# Click {{button|text=Run in background}}
+
* Click {{button|text=Run}}
  
== Create a multiband raster file (single bands to multiband) ==  
+
= Create a new multiband raster file (single bands to multiband) =  
 
A multiband file stores several single raster layers in one file.
 
A multiband file stores several single raster layers in one file.
# Click {{mitem|text=Raster --> Miscellaneous --> Merge}}.
+
* Click {{mitem|text=Raster --> Miscellaneous --> Merge}}.
# Input files:  Click {{button|text=Select}} and choose several single band raster files by holding Strg + left click. Take care on the order of the file selection: it determines the rank of bands in the resulting multiband file.
+
* Input files:  Click {{button|text=Select}} and click the checkbox of several single raster band files in the Multiple Selection window. Take care on the order of the files selection: it determines the rank of bands in the resulting multiband file. The rank of files can be changed by drag and drop in the Multiple Selection window.
# Output file:  Click {{button|text=Select}} and choose a new file name.  
+
* Output data type '''Uint16'''
# Click the checkbox '''Place each input band in a separate band''' on (see screenshot below).
+
* Output ''Converted'' file:  Click {{button|text=...}} {{button|text=Save to file ..-}}and choose a new file name with extension '''*.tif'''
 +
* Check the checkbox on '''Place each input file into a separate band''' (see screenshot below).
 
[[File:Qgis_merge_raster.png|400px]]
 
[[File:Qgis_merge_raster.png|400px]]
# Click {{button|text=OK}}
+
* Click {{button|text=Run in background}}
 
   
 
   
 
[[Category: Working with Raster Data]]
 
[[Category: Working with Raster Data]]

Latest revision as of 11:26, 27 October 2021

[edit] Build a virtual stack

A VRT (Virtual Dataset) is a list of links to input raster datasets. This has the advantage that no additional physical copy of the original files is necessary which saves storage capacity.

  • Click Raster --> Miscellaneous --> Build Virtual Raster.
  • Input files: Click Select and click the checkbox of several single raster band files in the Multiple Selection window. Take care on the order of the files selection (here: B2,B3,B4,B5,B6,B7,B8,B8A,B11,B12) determines the rank of bands in the resulting multiband file. The rank of files can be changed by drag and drop in the Multiple Selection window.
  • Output Converted file: Click ... Save to file ..-and choose a new file name.
  •  !Check the checkbox on Place each input file into a separate band (see screenshot below).
  • Set output Resolution to highest.
  • Set Resampling algorithm to Bilinear

Qgis virtual raster.png

  • Click Run

[edit] Create a new multiband raster file (single bands to multiband)

A multiband file stores several single raster layers in one file.

  • Click Raster --> Miscellaneous --> Merge.
  • Input files: Click Select and click the checkbox of several single raster band files in the Multiple Selection window. Take care on the order of the files selection: it determines the rank of bands in the resulting multiband file. The rank of files can be changed by drag and drop in the Multiple Selection window.
  • Output data type Uint16
  • Output Converted file: Click ... Save to file ..-and choose a new file name with extension *.tif
  • Check the checkbox on Place each input file into a separate band (see screenshot below).

Qgis merge raster.png

  • Click Run in background
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export