Export image #1136
Replies: 1 comment
-
I am trying clip a DEM and i have catchment area shapefile. I have clipped it but unable to export tiff file. roi = ee.FeatureCollection(basin) geemap.ee_export_image( Error is: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was just replicating your code to export an image into my directory. Image exported as well but image size is very small i.e.3KB. if i opening same image in QGIS i can't see any image.
#download an ee.Image
image = ee.Image('LANDSAT/LE7_TOA_5YEAR/1999_2003')
landsat_vis = {'bands':['B4','B3','B2'],'gamma':1.4}
Map.addLayer(image, landsat_vis, "LE7_TOA_5YEAR/1999_2003", True)
Map.draw_last_feature
feature = Map.draw_last_feature
roi = feature.geometry()
out_dir = os.path.join('C:\Projects\EHP\Database\Spatial data')
filename = os.path.join(out_dir, 'landsat.tif')
image = image.clip(roi).unmask()
geemap.ee_export_image(image, filename=filename, scale=90, region=roi, file_per_band=False)
Thanks for your guidance and effort to support this community. Many people are learning from you. I am one of them. Thanks
Beta Was this translation helpful? Give feedback.
All reactions