Skip to content

tegacodes/sat-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Download Landsat Images

This uses the landsat578 tool: https://github.com/dgketchum/Landsat578

Installation

  1. Clone this repo

  2. Create a virtualenvironment

virtualenv env
source env/bin/activate
  1. Install requirements
pip install -r requirements.txt

Usage

  • Update satellite image params in data.json (search dates, which sat and locations)
  • Either define location with sat name and path or lat long. For satellite names and paths see: https://landsat.usgs.gov/landsat_acq#convertPathRow
  • Note the operation dates of each satellite:
    • landsat 5 Launch date: 1 March 1984, Deactivated: 5 June 2013
    • landsat 7: Launch date: April 15, 1999
    • landsat 8: Launch date: February 11, 2013
  • Cloudy tiles are discarded.
  • Script has four functions: get_tiles, combine_tiles, color_correct and crop_image
    • get_tiles downloads all bands of sat data. Bands are combined in combine_tiles function in the order defined in stack.sh file. Note that landsat 5,7 and 8 all have different band orders. Adjust stack.sh if you want to combine different bands. RGB for Landsat 8 are bands 4, 3, and 2 which will produce a true color image.
    • A crude color correction is done in the function color_correct(). This could be improved!
    • crop_image makes jpg thumb of the real color image

Troubleshooting

  • if your folder path has a space in it, the python script may fail. (Run pwd in the terminal to see if your path has this problem. Rename directories without a space and set up the virtual envr again to fix.)

For more on Landsat 8 bands, see these guides by the ever brilliant Charlie Lloyd:

alt text

About

Landsat downloader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published