3

I've been wanting to merge two TIFF files of same band (this case it will be B1 in Landsat). I have followed tutorials which I came across online, but none of them seems to work. Generally, raster > miscellaneous > merge is the procedure. But it only ends up showing one TIFF file. Should I create a virtual raster and then try? Or maybe it's not possible to merge any single band (e.g. B1,B2 etc.)?

Also please tell me if I'm using the right output file type. Here are few screenshot of the problem: enter image description here enter image description here enter image description here (In the last screenshot, i clipped the raster with a shapefile to check whether it merged properly.)

This is kind of similar to my problem which was posted here earlier but no possible solution came out of it: Merging landsat 8 tiff images in QGIS?

  • Please edit your question so it contains the images instead of linking to them, thank you. Also try to use paragraphs to make it better readable, thank you. Last but not least also provide a screenshot of the dialogue window when you're merging the data. – Erik Nov 1 '19 at 10:10
3

Using Merge tool for each band of Landsat scene, make sure to give 0 into Input pixel value to treat as "nodata" option.

enter image description here

Set to 0:

enter image description here

Leaving the option as default Not set:

enter image description here

  • i just tried what you just mentioned but now it looks like this : imgur.com/a/ASBRSS4 – asheef_ik Nov 1 '19 at 14:49
  • @asheef_ik If you mean the position of these images (fully apart) is the issue, it is unrelated with the process. Let me suggest another tool (my preferred one) in SAGA. – Kazuhito Nov 1 '19 at 20:28
2

If you have trouble with Merge tool, then the second option (my preferred one) would be SAGA Mosaic Raster layers tool.

Find it in QGIS Processing Toolbox > SAGA > Raster tools.

enter image description here

  • Make sure Interpolation set to Nearest Neighbor. You don't want to change the value by interpolation.
  • Overlapping option can be anything. (feathering is just my suggestion).

enter image description here

  • thank you so much for taking efforts to solve the problem, i've used saga raster tool this time, but the problem persists, only one of the raster is shown after being merged : imgur.com/a/hnvK9KI – asheef_ik Nov 2 '19 at 6:07
  • 1
    @asheef_ik Thanks for additional info. It seems you have two Landsat8 images over path 137, 138 and row 045... is it near Bangladesh coastline? I suspect western image is on UTM45N while the eastern one is on UTM46N. Can you reproject one of them to put them on the same CRS? – Kazuhito Nov 2 '19 at 6:30
  • 1
    Thank you for your efforts, it worked this time. There has been problem with projection all along. It looks finely merged now: imgur.com/a/xIA2rf4 – asheef_ik Nov 2 '19 at 10:55
  • Thanks @asheef_ik for the feedback. Glad it worked :) – Kazuhito Nov 2 '19 at 11:05
  • i would be bothering you again i'm afraid. although it worked that time, i am having difficulties with the merging tool now. could you take look at these images and tell me what's wrong ? I'm using the "set crs" options to change projections and raster merging tool to merge them. I am also adding the google earth images of the forest that i am willing to get. Thank you. imgur.com/a/jg7hmzr – asheef_ik Jan 6 at 11:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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