Skip to content

No response when downloading data #2325

@lwq-star

Description

@lwq-star

Environment Information

Image

Description

There was no response when I used geemap.download_ee_image to download the image.

Image

The progress bar isn't updating; it's as if it never started.

What I Did

This is my code

import ee
import geemap
Map = geemap.Map()
start = ee.ImageCollection('MODIS/061/MCD12C1').filterDate('2001-01-01', '2001-12-31').first().select('Majority_Land_Cover_Type_1')
for yr in range(2002,2024):
    sy = str(yr)
    igbpLandCover = ee.ImageCollection('MODIS/061/MCD12C1').filterDate(sy+'-01-01', sy+'-12-31').first().select('Majority_Land_Cover_Type_1')
    mask = igbpLandCover.eq(start) 
    start = start.updateMask(mask) 

mask = start.gt(0).And(start.lt(15))
landuse = start.updateMask(mask)
roi = geemap.shp_to_ee(r'C:\Users\A1827\Desktop\New-AI\ai.shp').geometry()
file_var = r'C:\Users\A1827\Desktop\New-AI/landuse.tif'
geemap.download_ee_image(landuse, file_var, region=roi, scale=5000, crs='epsg:4326')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions