miércoles, 22 de marzo de 2017

Google Earth Engine API Python Easy installation

Installing GEE python api
1. pip install google-api-python-client
2. pip install earthengine-api
3. earthengine authenticate # copy and enter the code retrieved
4. import ee
5. ee.Initialize()
# testing installation
# Import the Earth Engine Python Package
import ee
# Initialize the Earth Engine object, using the authentication credentials.
ee.Initialize()
# Print the information for an image asset.
image = ee.Image('srtm90_v4')
print(image.getInfo())