2

I'm working with Sentinel 2 imagery, and don't know how to stitch neighbouring images. The problem is that the region im analyzing is on the border of the orbit, and there's a region with no data.

How could I proceed to merge the images correctly with QGIS?

enter image description here

enter image description here

2 Answers 2

0

Merging tif images into a single GeoTiff with QGIS

this should solve your question!

0

This method below could work for you. It assumes you want to overlap some tiles to fill the black gaps, you know the pixel value of the areas the orbit has missed, and there is no zero-value data in the imagery.

  1. Run the QGIS Raster Calculator (Menu > Raster > Raster Calculator) on each tile using a formula like the below. This will set the areas where there is no orbit to a value of zero:
(raster01@1 != no orbit pixel value)*raster01
  1. Create a virtual raster (Menu > Raster > Miscellaneous > Virtual Raster) containing the three modified tiles. Make sure you choose 'Place each input file into a separate band'

  2. Using Raster Calculator again add the tiles together using something like the formula below. It should overlap the tiles and use the full extent of the tiled images it contains.

virtualraster01@1 + virtualraster01@2 + virtualraster01@3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.