Skip to content

sunnyiisc/Band-Stacking-Landsat-Image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Band-Stacking-Landsat-Image

Stacking the Bands of Landsat Multi-Spectral Image to create a single TIF file

Running in Single mode:

  • Run the file 'main_single.py' click here
  • Enter the folder path with slash at the end like
  '/home/${USER}/Documents/Prod_Folder/LC09_L2SP_146041_20220514_20220516_02_T1/'
  • Enter the last band number, if 3 selected then Band1, Band2 and Band3 will be stacked.
  • The stacked image will be saved as
  '/home/${USER}/Documents/Prod_Folder/LC09_L2SP_146041_20220514_20220516_02_T1/LC09_L2SP_146041_20220514_20220516_02_T1_stacked.TIF'

Running in Batch mode:

  • Run the file 'main_batch.py' click here
  • Create a working directory like follows, where all the product folders are stored.
├── Prod_Folder
    ├── Prod1_Folder
    ├── Prod2_Folder
    ├── Prod3_Folder
  • Select the folder path where all the products are saved 'Prod_Folder' from the gui as follows:

Screenshot from 2022-12-14 09-52-33_crop

  • Select the folder path where you want to save the stacked images from the gui as follows:

Screenshot from 2022-12-14 09-52-52_crop

  • Enter the start and last band number, if 1 and 3 are selected respectively then Band1, Band2 and Band3 will be stacked. Followed by the angles as follows:

    • BAND1
    • BAND2
    • BAND3
    • SAA
    • VAA
    • SZA
    • VZA
  • The stacked image will be saved as

    '/home/${USER}/Documents/Save_Folder/LC09_L2SP_146041_20220514_20220516_02_T1_stacked.TIF'