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

Add xarray support for add_raster #678

Merged
merged 1 commit into from Feb 12, 2024
Merged

Add xarray support for add_raster #678

merged 1 commit into from Feb 12, 2024

Conversation

giswqs
Copy link
Member

@giswqs giswqs commented Feb 12, 2024

This PR adds xarray and numpy array support for the add_raster method. Fix #676 @lopezvoliver

m = leafmap.Map()
m.add_raster(ndvi, colormap="Greens", layer_name="NDVI", array_args={"source": satellite})
m

Copy link

@github-actions github-actions bot temporarily deployed to pull request February 12, 2024 15:45 Inactive
@giswqs giswqs merged commit 18f0da9 into master Feb 12, 2024
13 checks passed
@giswqs giswqs deleted the raster branch February 12, 2024 16:35
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

Successfully merging this pull request may close these issues.

None yet

1 participant