Skip to content

Commit

Permalink
Pass coords to new UxDataArray in remap functions (#867)
Browse files Browse the repository at this point in the history
Just like #818 did for subset functions.
  • Loading branch information
ahijevyc authored Jul 27, 2024
1 parent 170e035 commit 05bd3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions uxarray/remap/inverse_distance_weighted.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def _inverse_distance_weighted_remap_uxda(
uxda_remap = uxarray.core.dataarray.UxDataArray(
data=destination_data,
name=source_uxda.name,
coords=source_uxda.coords,
dims=destination_dims,
uxgrid=destination_grid,
)
Expand Down
1 change: 1 addition & 0 deletions uxarray/remap/nearest_neighbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def _nearest_neighbor_uxda(
uxda_remap = uxarray.core.dataarray.UxDataArray(
data=destination_data,
name=source_uxda.name,
coords=source_uxda.coords,
dims=destination_dims,
uxgrid=destination_grid,
)
Expand Down

0 comments on commit 05bd3a0

Please sign in to comment.