Skip to content

Commit 138b777

Browse files
committed
da
1 parent d29a863 commit 138b777

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/DimensionalDataInterpolations.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ function interp(A::AbstractDimArray;
1212
isempty(otherdims(to, dims(A))) || throw(DimensionMismatch("Cannot interpolate over dimensions not in the source array"))
1313
# TODO handle permutations
1414
shared_dims = commondims(A, to)
15-
dest_dims = dims(Rasters._extent2dims(commondims(to, shared_dims); size, res, crs=crs(A)), shared_dims)
15+
# TODO move `_extent2dims` to DimensionalData`
16+
dest_dims = dims(Rasters._extent2dims(commondims(to, shared_dims); size, res), shared_dims)
1617
other_dims = otherdims(A, to)
1718
degrees = if isnothing(degree)
1819
map(_ -> Linear(), dims(A))
@@ -41,7 +42,7 @@ function interp(A::AbstractDimArray;
4142
error("interpolate is only implemented for regular grids")
4243
end
4344

44-
return Raster(data, dest_dims)
45+
return DimArray(data, dest_dims)
4546
end
4647

4748
end

0 commit comments

Comments
 (0)