Rasters.jl
Rasters.jl copied to clipboard
RasterStack constructor with no rasters cause a stackoverflow
I forgot parens for namedtuple here
julia> precip_cellarea_stack = RasterStack(; precip = precip, cellarea = cellarea(precip))
ERROR: StackOverflowError:
Stacktrace:
[1] RasterStack(layers::@NamedTuple{}; resize::Rasters.NoKW, _layers::@NamedTuple{}, dims::Tuple{}, refdims::Tuple{}, missingval::@NamedTuple{}, metadata::DimensionalData.Dimensions.Lookups.NoMetadata, layermetadata::@NamedTuple{}, layerdims::@NamedTuple{}, kw::@Kwargs{})
@ Rasters ~/.julia/dev/geo/Rasters.jl/src/stack.jl:287
but that led to the discovery
julia> RasterStack()
ERROR: StackOverflowError:
whereas
julia> DD.DimStack()
┌ 0-dimensional DimStack ┐
├──────────────── layers ┤
└────────────────────────┘
not sure what's going on here but though it was worth reporting
Here's one for you @evetion, stack overflow fallback 😅😅
Oh no, not this one again 😅