diff --git a/rioxarray/_io.py b/rioxarray/_io.py index 81911bce..21e5b526 100644 --- a/rioxarray/_io.py +++ b/rioxarray/_io.py @@ -881,7 +881,7 @@ def _load_bands_as_variables( **open_kwargs, ) .squeeze() # type: ignore - .drop("band") # type: ignore + .drop_vars("band") # type: ignore ) dataset = Dataset(data_vars, attrs=global_tags)