geetools icon indicating copy to clipboard operation
geetools copied to clipboard

bugs: Map = Map()

Open ZoeM2016 opened this issue 5 years ago • 3 comments

Hi Rodrigo, When i try your code on google colab,an error occured. IndexError Traceback (most recent call last) in () 3 i = ee.Image('COPERNICUS/S2/20181122T142749_20181122T143353_T18GYT').clip(aoi) 4 grid = tools.image.toGrid(i, 3, geometry=aoi) ----> 5 Map = Map() 6 7 Map.show()

1 frames /usr/local/lib/python3.6/dist-packages/ipygee/assets.py in init(self, map, **kwargs) 20 # Thumb height 21 self.thumb_height = kwargs.get('thumb_height', 300) ---> 22 self.root_path = ee.data.getAssetRoots()[0]['id'] 23 24 # Map

IndexError: list index out of range

Could you please help me about it?

ZoeM2016 avatar Feb 06 '20 10:02 ZoeM2016

Hi @ZoeM2016 , I don't think Map will work in google Colab, I don't think so. AssetManager and TaskManager may work. But now I am realizing that you are using an outdated code. All jupyter related code has been moved to another package: ipygee

fitoprincipe avatar Feb 06 '20 12:02 fitoprincipe

Hi Rodrigo, when I use your code in anaconda ,a same errror occured input: mayMap=Map() Map.show() self.root_path = ee.data.getAssetRoots()[0]['id'] IndexError: list index out of range (I run in my local python environment, and the required environment is set) could you help me adress it?

berlin-young avatar Jul 07 '20 21:07 berlin-young

Hi @berlin-young, as I said in the last comment, all jupyter related code has been moved to another package: ipygee. You can post an issue there. Thank you =)

fitoprincipe avatar Jul 08 '20 12:07 fitoprincipe

Dear both, the Map method is now living in geemap and ipygee packages. please have a look at them.

12rambau avatar Nov 04 '23 15:11 12rambau