Skip to content

A fast way to download satellite images by defining the location from google-earth-engine

Notifications You must be signed in to change notification settings

5olitude/earthengine-image-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

earthengine-image-downloader

This script consists of the most suitable way to integrate geopy and google earth-engine in such a way that you can automatically download the satellite images for training purposes in machine learning .I have tried the google-colab and the normal terminal preinstalled packages but the task here is to give the authentication key and its a difficult task in between code execution.So i prefer you to use anaconda enviornment it will automatically stores the api in cache and it saves time from a user to reauthenticate.

REQUIREMENTS FOR INSTALLING........

  1. INSTALL ANACONDA

    https://docs.anaconda.com/anaconda/install/

  2. CONFIGURING THE PACKAGES

  • To install this package with conda run one of the following:

    conda install -c conda-forge earthengine-api

    conda install -c conda-forge/label/gcc7 earthengine-api

    conda install -c conda-forge/label/cf201901 earthengine-api

  • Get Credentials Before getting credentials its better to try google earth engine is already authenticated so in your conda enviornment type

        # earthengine authenticate
    
  1. Testing the API

    • Start a python interpreter from your conda by typing python # python

    • Run the following Python lines one-by-one in python interpreter to print the metadata for a DEM dataset

          # import ee
          
          # ee.Initialize()
          
          # print(ee.Image('USGS/SRTMGL1_003').getInfo())
      

      EUREKA !!!! you have completed the level one :) smile

      LETS MOVE TO LEVEL 2

  2. Now you require to download some python packages

    • GEOPY

      Used to convet location into coordinates

       # pip install geopy
      
    • PARALLEL SYNC

      Used to download files and extract it into your computer

       # pip install parallel-sync
      
    • ast and math are preinstalled with python

execute the code

   # python3 satellite.py
   >>enter the location: (enter a location) 

ignore the warnings and enjoy the downloads and find your file in path defined

keep coding (:

About

A fast way to download satellite images by defining the location from google-earth-engine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages