ee-palettes icon indicating copy to clipboard operation
ee-palettes copied to clipboard

transform this repository into a python package ?

Open 12rambau opened this issue 2 years ago • 1 comments

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) ?

12rambau avatar Sep 05 '23 07:09 12rambau

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)

jdbcode avatar Sep 05 '23 21:09 jdbcode