Giter VIP home page Giter VIP logo

Comments (9)

davemlz avatar davemlz commented on June 3, 2024 1

I'm sorry, now that I checked that tutorial again I see that it was a bit confusing. I have modified it. Let me know if it works!

from eemont.

giswqs avatar giswqs commented on June 3, 2024 1

@davemlz I just improved the geemap add_colorbar() function (gee-community/geemap@dc7e548), making it compatible with both folium and ipyleaflet. It should be available in the next geemap release. You can also run geemap.update_package() to install geemap from GitHub. With the improved add_colorbar() function, your notebooks will no longer run into errors, and you can just use import geemap rather than geemap.eefolium as geemap. In short, you notebooks should work with both Colab and local Jupyter without making any changes.

openjournals/joss-reviews#3168

image

from eemont.

giswqs avatar giswqs commented on June 3, 2024 1

@davemlz I just released geemap v0.8.15, which includes the improved add_colorbar function. Your notebooks will now work with both Colab and local Jupyter notebooks without making any changes. Also note that Map.addLayerControl() is not needed. geemap will automatically add the layer control when the map is displayed in Colab. Map = geemap.Map() automatically handles ee.Authenticate() and ee.Initialize(). Therefore, if you can write Map = geemap.Map() after import geemap, you will not need ee.Authenticate() or ee.Initialize()

openjournals/joss-reviews#3168

from eemont.

davemlz avatar davemlz commented on June 3, 2024

Hi, @elbeejay!

The error of the tutorials 004, 005 and 006 is related to how geemap is imported. Since the tutorials were created to work in Google Colab, geemap methods are related to folium and not to ipyleaflet. When you run the notebooks locally, geemap uses ipyleaflet by default, this can be modified by importing geemap as follows:

import geemap.eefolium as geemap

That should work for those tutorials. (I will add a comment indicating this in the tutorials, thank you for pointing this out!)

In the case of tutorials 013 and 014, this error is related to the EarthEngine API since it is not longer returning the system:index property anymore. I have to modify these two tutorials.

I will modify the tutorials and I'll let you know!

Thank you very much!

from eemont.

davemlz avatar davemlz commented on June 3, 2024

Hi, @elbeejay!

I have modified the tutorials.

Let me know if they work!

Cheers!

from eemont.

elbeejay avatar elbeejay commented on June 3, 2024

The revised examples all worked for me with the exception of tutorial 012. I had to fiddle a bit with the import statement and colorbar statements to get the plots to show up properly.

from eemont.

elbeejay avatar elbeejay commented on June 3, 2024

This worked, thanks

from eemont.

davemlz avatar davemlz commented on June 3, 2024

That's great! I will update the notebooks. Thank you very much, @giswqs!

from eemont.

davemlz avatar davemlz commented on June 3, 2024

I have updated the tutorials (320c867). Thank you @giswqs for the update in geemap! However, I had some trouble in Tutorial 012 when using the colormaps. I think it is caused by the return type of the Box object, converting it to a list solved the problem. I can open an Issue in the repository of geemap with the full code and errors.

from eemont.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.