Guest User

Untitled

a guest
Nov 4th, 2017
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. # My code here
  2. from landsat import downloader, search
  3.  
  4. s = search.Search()
  5.  
  6. ls = s.search(paths_rows="215, 068",
  7. lat=None,
  8. lon=None,
  9. address=None,
  10. start_date="2015-01-01",
  11. end_date="2017-11-01",
  12. cloud_min=None,
  13. cloud_max=10,
  14. limit=1,
  15. geojson=True)
  16.  
  17. sceneID = ls["features"][0]["properties"]["sceneID"]
  18. # I put the correct user/password to login into USGS site
  19. # I did it with the same user/pass that I used to usgs earthexplorer
  20. d = downloader.Downloader(usgs_user='XXXX',
  21. usgs_pass='XXXX',
  22. download_dir='~/Download/LC8')
  23. d.download([sceneID])
Add Comment
Please, Sign In to add comment