Comments (9)
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.
@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
from eemont.
@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.
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.
Hi, @elbeejay!
I have modified the tutorials.
Let me know if they work!
Cheers!
from eemont.
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.
This worked, thanks
from eemont.
That's great! I will update the notebooks. Thank you very much, @giswqs!
from eemont.
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)
- Update `tasseledCap` docstrings HOT 1
- Extended methods for the ee.Image class cannot be thrown to map HOT 4
- Would it be nice to expose the s2cloudless algorithm to Sentinel-2 Level 1C data? HOT 1
- ee.Geometry.Point does not accept varargs after importing eemont HOT 4
- COPERNICUS/S2_HARMONIZED HOT 3
- MODIS/061/MOD09A1 HOT 4
- What visParams should i use for al lthe indices available in spectral indices? HOT 1
- index() function not working HOT 1
- getTimeSeriesByRegion returns empty and repeated dates in dataframe HOT 1
- MODIS/061/MOD09A1 HOT 2
- tasseled cap transformation for COPERNICUS/S2_SR HOT 1
- Pixel calculation after cloud masking HOT 3
- Support for computing indices for Sentinel-1 HOT 3
- "system:id" disappears following maskClouds() that subsequently leads to the error of scaleAndOffset() HOT 1
- some methods and modules do not work HOT 5
- getTimeSeriesByRegion returns repeated and empty dates in time series HOT 2
- preprocess() left quite a few cloud shaddow HOT 1
- Timeseries in Sentinel S1 Index HOT 11
- .preprocess() failed for the new COPERNICUS/S2_SR_HARMONIZED HOT 4
- Add HLSL30 Data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eemont.