diff --git a/hypercoast/pace.py b/hypercoast/pace.py index 4647de98..a8722db0 100644 --- a/hypercoast/pace.py +++ b/hypercoast/pace.py @@ -26,7 +26,7 @@ def read_pace(filepath, wavelengths=None, method="nearest", **kwargs): dataset = xr.open_dataset(filepath, group="navigation_data") dataset = dataset.set_coords(("longitude", "latitude")) dataset = dataset.rename({"pixel_control_points": "pixels_per_line"}) - dataset = xr.merge((rrs, dataset.coords)) + dataset = xr.merge([rrs, dataset.coords.to_dataset()]) dataset.coords["wavelength_3d"] = wvl.coords["wavelength_3d"] dataset = dataset.rename( { diff --git a/requirements.txt b/requirements.txt index 9e324a52..676a4349 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,4 @@ numpy rioxarray s3fs scipy -xarray>=2024.3.0 +xarray