Showing results for 
Search instead for 
Do you mean 

Stack Landsat8 MSI

by Technical Evangelist on ‎07-12-2017 08:10 AM - edited on ‎02-24-2020 04:56 AM by Community Manager (3,392 Views)

Download model

 

Description:

 

In support of the Landsat8 data available through M.App Chest (and other sources, such as the AWS S3 Bucket (https://aws.amazon.com/public-datasets/landsat/), it's useful to have a Model/Recipe which enables you to easily create an MSI layer stack out of the appropriate TIFF files without needing to individually select all of them.   

 

Stack_Landsat8_MSI_v16_1_2.gmdx
L8_Stack.PNG

 

If a USGS Landsat8 .tar.gz archive file is imported using the ERDAS IMAGINE USGS Landsat7 / Landsat8 importer it will automatically create appropriate Pan and Multispectral image files. However some customers unzip the data manually, which creates a directory structure where the data is stored as separate TIFF files per band. This sort of structure is also created when you download Landsat 8 data from sources such as M.App Chest and AWS S3. This structure is inconvenient for using in processes which expect multispectral data. 

 

This Model is designed as a utility to stack individual Landsat8 TIFF files into a single Multispectral image, based on the standard MSI composite (Bands 1 through 7). The user selects the name of the Band1 file, where the naming convention is assumed to be <root>_Bn.tif. The other layers will be automatically selected from the same directory based on this pattern. The output file is automatically named <root>_msi.img.

 

The model could be easily modified to stack more (or less) bands, such as adding the TIRS bands (10 and 11), or to apply to other sensors such as Sentinel-2.

 

 

Input parameters:

 

Band1 In: Input the TIFF file which is the first band of an unzipped Landsat8 archive.

   

 

Comments
by Technical Evangelist
on ‎02-28-2018 05:20 AM

Correct, you only have to select a single TIFF file representing band 1 of your Landsat 8 data.

 

The user selects the name of the Band1 file, where the naming convention is assumed to be <root>_Bn.tif. The other layers will be automatically selected from the same directory based on this pattern. The output file is automatically named <root>_msi.img.

 

by
on ‎02-28-2018 06:37 AM

is there any problem if those TIFF were converted into *.img before input to model?

by Technical Evangelist
on ‎02-28-2018 06:59 AM

Yes - you can see in the Cat operators that it's searching for a pattern of *bn.tif. So if you've changed the naming convention you'll need to change the strings the Model is searching for appropriately.

by
on ‎02-28-2018 06:22 PM

ok thankyou so much for helping me Smiley Happy

by
on ‎01-14-2020 01:47 AM

Hello,

This works great, thanks. I have one question. Since some operators (like ATCOR) want Landsat's thermal bands, we'll need to add a band to this. This model works well when I add a port and change the name of the LSAT band 6 from "...BTB6.tif"   to "...B6.tif".  Brightness Temperture data (B6) comes from EarthExplorer in a separate download. Since I'm working with 3.6 million sq. km. worth of imagery over time, what's a better way to do this so I don't have copy each Band 6 over to the directory with the SRBands (1-5,7) and rename it? 

Thank you, 

 

Justin

Courses
Contributors