gee-community/geemap

Downloading images by tiles is too slow in executing

Closed this issue · 2 comments

Environment Information

image

Description

I used geemap.download_ee_image_tiles api to download a large region images. But the response time was too long at each loading download behavior. The progressbar showed the time consumption:
image
Each image (<=3M) could be download in 1.5 minutes, while the loading behavior might be over than 7minutes. I doubt whether I did something wrong? 😭

What I Did

The code I used follows:

feature1 = geemap.fishnet(laos, rows= 8, cols=6, intersect=True,delta=2)
for i in trange(4, 12):
    img_list = data_month1.toList(data_month1.size())
    # img = ee.Image(img_list.get(i))
    img = ee.Image(img_list.get(i))\
            .reproject(crs='EPSG:4326',scale=80)
    geemap.download_ee_image_tiles(ee.Image(img),
                                   feature1,
                                   out_dir=out_dir,
                                   prefix='flood2018_month_{}_'.format(str(i+1)),
                                   crs = 'EPSG:4326',
                                   dtype = 'uint8',
                                   scale = 80,
                                   num_threads=4,
                                   unmask_value=0)

Question

How should I do to accerate this download behavior?😢

download_ee_image_tiles is for downloading large images. You should use download_ee_image in this case as the image is really small.