I have a multi-band GeoTIFF (with 8 bands), and I want to extract first 3 band and 7th band from that image and export them as TIFF image using GDAL.
Asked
Active
Viewed 931 times
-1
-
1Does this answer your question? How to export only one band from an image using GDAL? – BERA Nov 07 '21 at 13:12
-
That answer is for extracting one band. I want to extract 4 different bands(RED, GREEN, BLUE and Near-IR). and combine them in final output – Muhammad Salman Nov 07 '21 at 13:24
-
1Do it four times, merge the output – BERA Nov 07 '21 at 17:18
-
Is there any sequence of bands in general? Because in above photo bands i required are (2,3,5,7). that's why i am confused , if i do it four times which bands will be picked? – Muhammad Salman Nov 07 '21 at 17:25
1 Answers
2
Do something like this:
gdal_translate -b 1 -b 2 -b 3 -b 7 input.tif output.tif
TomazicM
- 25,601
- 22
- 29
- 39
guillermo_dangelo
- 591
- 3
- 15
