2021-03-17 15:43:59 -07:00

18 lines
357 B
Python

#!/usr/bin/env python
"""Download example."""
from __future__ import print_function
import ee
import ee.mapclient
ee.Initialize()
# Get a download URL for an image.
image1 = ee.Image('CGIAR/SRTM90_V4')
path = image1.getDownloadUrl({
'scale': 30,
'crs': 'EPSG:4326',
'region': '[[-120, 35], [-119, 35], [-119, 34], [-120, 34]]'
})
print(path)