Usgs earth explorer

  1. United States Geological Survey
  2. landsat
  3. Login to USGS Earth Explorer and download Landsat imagery with Python


Download: Usgs earth explorer
Size: 75.18 MB

United States Geological Survey

• العربية • বাংলা • Bân-lâm-gú • Беларуская • Български • Català • Čeština • Dansk • Deutsch • Eesti • Español • Esperanto • Euskara • فارسی • Français • 한국어 • हिन्दी • Hrvatski • Bahasa Indonesia • Italiano • עברית • Lëtzebuergesch • Magyar • Македонски • Bahasa Melayu • Nederlands • 日本語 • Nordfriisk • Norsk bokmål • Norsk nynorsk • Polski • Português • Română • Русский • Simple English • Slovenčina • Српски / srpski • Srpskohrvatski / српскохрватски • Suomi • Svenska • தமிழ் • Türkçe • Українська • Tiếng Việt • 中文 Official identifier of the U.S. Geological Survey Flag of the United States Geological Survey Agency overview Formed March3, 1879 ;144 years ago ( 1879-03-03) (as Geological Survey) Jurisdiction United States Headquarters 38°56′49″N 77°22′03″W / 38.9470°N 77.3675°W / 38.9470; -77.3675 Employees 8,670 (2009) Annual budget Agency executive Since 2012, the USGS science focus has been directed at topical "Mission Areas" Regions [ ] The USGS regional organization • Region 1: North Atlantic-Appalachian • Region 2: South Atlantic-Gulf • Region 3: Great Lakes • Region 4: Mississippi Basin • Region 5: Missouri Basin • Region 6: Arkansas-Rio Grande-Texas-Gulf • Region 7: Upper Colorado Basin • Region 8: Lower Colorado Basin • Region 9: Columbia-Pacific Northwest • Region 10: California-Great Basin • Region 11: Alaska • Region 12: Pacific Islands Science programs, facilities, and other organizations [ ] USGS operates and organizes within a number of specific science progr...

landsat

Is it possible to search for images in USGS I tried the example from usgs import api # Set the EarthExplorer catalog node = 'EE'# this indicates earth explorer website # Set the Hyperion and Landsat 8 dataset hyperion_dataset = 'EO1_HYP_PUB' landsat8_dataset = 'LANDSAT_8' # Set the scene ids hyperion_scene_id = 'EO1H1820422014302110K2_SG1_01' landsat8_scene_id = 'LC80290462015135LGN00' # Submit requests to USGS servers api.metadata(hyperion_dataset, node, [hyperion_scene_id]) api.metadata(landsat8_dataset, node, [landsat8_scene_id]) But I got: USGSError Traceback (most recent call last) in () 11 12 # Submit requests to USGS servers ---> 13 api.metadata(hyperion_dataset, node, [hyperion_scene_id]) 14 api.metadata(landsat8_dataset, node, [landsat8_scene_id]) 15 C:\Users\Ran\Anaconda2\lib\site-packages\usgs\api.pyc in metadata(dataset, node, entityids, extended, api_key) 235 response = r.json() 236 --> 237 _check_for_usgs_error(response) 238 239 if extended: C:\Users\Ran\Anaconda2\lib\site-packages\usgs\api.pyc in _check_for_usgs_error(data) 33 error = data['error'] 34 ---> 35 raise USGSError('%s: %s' % (error_code, error)) 36 37 USGSError: AUTH_UNAUTHORIZED: Forbidden - Valid API Key required for access to 'metadata' method. I don't understand where my password and user name should go? I also tried this according to import landsatxplore.api # Initialize a new API instance and get an access key api = landsatxplore.api.API('user', 'password') # Request scenes = api.search( da...

Login to USGS Earth Explorer and download Landsat imagery with Python

I want to login to the USGS Earth Explorer website at So. I have limited Python experience and never accessed a website with it before. I'm using Python 2.7.8 on a Windows 7 and trying to access the website through Chrome (Version 51.0.2704.106 m if that helps) Any ideas for a simple script to access the website, login (I already have login credentials), search for imagery, and download it to a folder? It seems like something Python should be able to do but all of the online solutions seem too advanced for me. I just need a standalone script that I can use over and over again with different coordinates and dates. I got the VERY messy code that I use to download all Landsat data by setting Path and Row parameters. Also there are some arcpy and custom functions that is not nescessary for you. You can clear this code to adapt it for your purposes (comments are in russian): # -*- coding: utf-8 -*- import os import sys import shutil import subprocess import traceback import time import requests from pprint import pprint # выключить предупреждение requests.packages.urllib3.disable_warnings() # ----------------------------------------------------------- def find_scenes_in_DB(FC_in_GDB, field_names_list = ['ID', 'ARCHIVE']): with arcpy.da.SearchCursor(FC_in_GDB, field_names_list) as DB_cursor: uniq_sat_name = sorted(' ) # послать POST запрос answer = requests.post(URL) # проверка прошёл ли запрос check_answer = (answer.status_code, answer.reason) if check_answer != (200, 'OK'): pr...