You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Prepare a test dataset
rs =RasterStack((Raster(rand(X(1:10), Y(1:10)); missingval=NaN) for _ in1:4)...; missingval =NaN)
# Create areas of known zero, just for verificationmap(rs) do A
A[1:2, 1:2] .=0
A[3:4, 3:4] .=NaN
A
end
rs =replace_missing(rs, missing)
rs[Extent(X=(3,4),Y=(3,4))] |> skipmissing |> collect
ERROR: Use iterate(layers(s)) rather than `iterate(s)`
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] iterate(::RasterStack{…})
@ DimensionalData ~/.julia/dev/DimensionalData/src/stack/stack.jl:169
[3] iterate(::Base.SkipMissing{RasterStack{…}})
@ Base ./missing.jl:252
[4] _collect(cont::UnitRange{Int64}, itr::Base.SkipMissing{RasterStack{…}}, ::Base.HasEltype, isz::Base.SizeUnknown)
@ Base ./array.jl:770
[5] collect(itr::Base.SkipMissing{RasterStack{…}})
@ Base ./array.jl:759
[6] |>(x::Base.SkipMissing{RasterStack{…}}, f::typeof(collect))
@ Base ./operators.jl:917
[7] top-level scope
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: