-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Seems bad?? Or am I missing something obvious here?
using Rasters, Rasters.Lookups, GLMakie
import GADM, ArchGDAL
ras = rand(X(8:0.05:15), Y(58:-0.05:54))
# denmark boundaries
dk = GADM.get("DNK")
# rasterize
dkras = rasterize(first, dk; res = 0.1, fill = 1, missingval = 0)
# resample
dkras_res = resample(dkras; to = dims(ras, (X,Y)))
# plot
fig, ax, pl = plot(dkras)
ax2 = Axis(fig[1, 2]; title = "Resampled")
plot!(ax2, dkras_res)
fig

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working