rioxarray icon indicating copy to clipboard operation
rioxarray copied to clipboard

add explore function like in geopandas

Open mhungen opened this issue 1 year ago • 0 comments

Geopandas provides a handy explore function that creates an interactive folium-map and displays the GeoDataFrame on it. This function is particularly useful when working with Jupyter notebooks.

Since I frequently work with rioxarray and geopandas, I developed a custom xarray accessor to add this functionality to xarray DataArrays as well. Given that rioxarray is the powerhouse handling the heavy lifting, this seems like a good fit for a new feature.

While my implementation is somewhat basic (DataArrays only), it is works and can be combined with the GeoDataFrame. If you're interested, I can create a PR for this feature.

Screenshot from 2024-07-03 17-52-06

mhungen avatar Jul 03 '24 15:07 mhungen