diff --git a/odc/geo/_map.py b/odc/geo/_map.py index 7e38b10..1aa3ecc 100644 --- a/odc/geo/_map.py +++ b/odc/geo/_map.py @@ -271,13 +271,13 @@ def explore( # Add to map and raise a friendly error if data has unsuitable dims try: xx.odc.add_to(map, **kwargs) - except ValueError: + except ValueError as e: raise ValueError( "Only 2D single-band (x, y) or 3D multi-band (x, y, band) " "arrays are supported by `.explore()`. Please reduce the " "dimensions in your array, for example by using `.isel()` " "or `.sel()`: `da.isel(time=0).odc.explore()`." - ) + ) from e # Zoom map to extent of data map.fit_bounds(xx.odc.map_bounds())