Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transform this repository into a python package ? #4

Open
12rambau opened this issue Sep 5, 2023 · 1 comment
Open

transform this repository into a python package ? #4

12rambau opened this issue Sep 5, 2023 · 1 comment

Comments

@12rambau
Copy link
Member

12rambau commented Sep 5, 2023

We do have a python package in the org that perfectly mimic the behavior of addLayer with geemap. What if this ee-package was exposed also as a python package (that will simply generate color list) to transparently transfer code from GEE to Python API (and specifically Jupyter interface) ?

@jdbcode
Copy link
Collaborator

jdbcode commented Sep 5, 2023

Since geemap already includes matplotlib colormaps, which has the majority of palettes in this repo, I'm hesitant to do anything more (also don't have time currently).

To use the colormaps in geemap, you can get hex codes with the get_palette function or specify a palette by name in vis_params when calling Map.add_ee_layer() for example "Spectral" palette:

Map.add_ee_layer(img, {'min': 0, 'max': 17, 'palette': 'Spectral'}, 'name')

(reference)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants