Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # My code here
- from landsat import downloader, search
- s = search.Search()
- ls = s.search(paths_rows="215, 068",
- lat=None,
- lon=None,
- address=None,
- start_date="2015-01-01",
- end_date="2017-11-01",
- cloud_min=None,
- cloud_max=10,
- limit=1,
- geojson=True)
- sceneID = ls["features"][0]["properties"]["sceneID"]
- # I put the correct user/password to login into USGS site
- # I did it with the same user/pass that I used to usgs earthexplorer
- d = downloader.Downloader(usgs_user='XXXX',
- usgs_pass='XXXX',
- download_dir='~/Download/LC8')
- d.download([sceneID])
Add Comment
Please, Sign In to add comment