This repository contains a Google Earth Engine (GEE) script to filter, visualise, and batch download Landsat 4–9 Collection 2 Tier 1 Top-of-Atmosphere (TOA) multispectral satellite imagery over a defined area and time range.
Co-developed with iamdonovan.
Our script uses batch produced by fitoprincipe.
Open the script directly in Google Earth Engine:
https://code.earthengine.google.com/9aa0d9d54eac80b62b687770207727c0
-
Filters Landsat 4–9 imagery by:
- Geometry
- Date range (start and end year, month, day)
- Image cloud cover %
- Land cloud cover %
- WRS path and row
-
Renames bands across different Landsat sensors for consistency.
-
Displays both false-color and true-color composites for quick visualisation.
-
Exports filtered ImageCollection to Google Drive using
batch.
- Google Earth Engine account
- The following Earth Engine user modules:
users/tomosdanielmorgan/EarthObservation:Landsatsusers/fitoprincipe/geetools:batch
- A defined
geometryvariable (either drawn or uploaded in GEE). - (Optional) A defined WRS path/row.
- Open the Google Earth Engine Code Editor.
- Paste the contents of
landsat_exampleinto a new script or click a direct link to Google Earth Engine above. - Define your area of interest (AOI) by setting a
geometryvariable. - Modify data filters and WRS path/row parameters to match your AOI.
A summary of the filtering functions available in the funcs module, and the associated Landsat data availability:
| Function | Description | Data Availability |
|---|---|---|
funcs.allLandsat |
Filters Landsat 4–9 | 1982 – Present |
funcs.NewLandsat |
Filters Landsat 8 and 9 | 2013 – Present |
funcs.EarlyLandsat |
Filters Landsat 4, 5, and 7 | 1982 – 2025 (See individual data availability below) |
funcs.Landsat4 |
Filters only Landsat 4 | 1982 – 1993 |
funcs.Landsat5 |
Filters only Landsat 5 | 1984 – 2013 |
funcs.Landsat7 |
Filters only Landsat 7 | 1999 – 2025 (Scan Line Corrector failure after May 2003) |
funcs.Landsat8 |
Filters only Landsat 8 | 2013 – Present |
funcs.Landsat9 |
Filters only Landsat 9 | 2021 – Present |