-
Notifications
You must be signed in to change notification settings - Fork 18
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 new .odc.explore()
method for automatically plotting raster data on an interactive map
#116
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #116 +/- ##
===========================================
- Coverage 97.91% 97.88% -0.04%
===========================================
Files 25 25
Lines 4315 4346 +31
===========================================
+ Hits 4225 4254 +29
- Misses 90 92 +2 ☔ View full report in Codecov by Sentry. |
a26c406
to
678aa91
Compare
@Kirill888 Have made the following changes:
|
@robbibt thanks, this is great. Let's put back those data shape checks into |
Awesome, thanks for the great feedback. Have made that change, can rebase merge once you approve. What's the plan for the next |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, good to merge
This PR addresses #104 by adding a new
.explore()
method for automatically plotting raster data into an interactive map. This is designed to replicate the extremely useful.explore()
method from Geopandas: https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoDataFrame.explore.htmlEssentially
explore
combinesto_rgba
andadd_to
from this repo into a single easy to use method.Supports single band
xr.DataArray
inputs:Automatically converts
xr.Dataset
inputs to RGB:And easily passing in custom mapping params like basemaps: