Skip to content

Commit

Permalink
Fix xr merge error (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored May 10, 2024
1 parent 76d957c commit 4ae18bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hypercoast/pace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ numpy
rioxarray
s3fs
scipy
xarray>=2024.3.0
xarray

0 comments on commit 4ae18bd

Please sign in to comment.