diff --git a/odc/geo/_map.py b/odc/geo/_map.py index 2cf9af36..7e38b104 100644 --- a/odc/geo/_map.py +++ b/odc/geo/_map.py @@ -248,7 +248,7 @@ def explore( # Update any supplied kwargs with custom params map_kwds = {} if map_kwds is None else map_kwds - kwargs.update(cmap=cmap, vmin=vmin, vmax=vmax, robust=robust) + kwargs.update(cmap=cmap, vmin=vmin, vmax=vmax, robust=robust, resampling=resampling) map_kwds.update(tiles=tiles, attr=attr) # If input is a dataset, convert to an RGBA array @@ -258,12 +258,11 @@ def explore( except ValueError as e: if "Must specify clamp" in str(e): raise e - else: - ValueError( - f"Unable to automatically guess RGB colours ({e}). " - f"Manually specify bands to plot using the `bands` " - "parameter, e.g. `ds.odc.explore(bands=['a', 'b', 'c'])`" - ) + raise ValueError( + f"Unable to automatically guess RGB colours ({e}). " + f"Manually specify bands to plot using the `bands` " + "parameter, e.g. `ds.odc.explore(bands=['a', 'b', 'c'])`" + ) from e # Create folium Map if required if map is None: @@ -272,7 +271,7 @@ def explore( # Add to map and raise a friendly error if data has unsuitable dims try: xx.odc.add_to(map, **kwargs) - except ValueError as e: + except ValueError: raise ValueError( "Only 2D single-band (x, y) or 3D multi-band (x, y, band) " "arrays are supported by `.explore()`. Please reduce the "