MWE:
using DimensionalData, Rasters
ra = Raster(rand(X(1:10), Y(1:10), Z(1:1)); metadata = Dict("A" => 1), name = :myraster)[Z = 1]
ra2 = similar(ra, Int)
ra3 = similar(ra, Int, axes(ra))
ra4 = identity.(ra2)
# All of these are false
name(ra2) == name(ra3) # Symbol("") and NoName()
refdims(ra2) == refdims(ra3) # Z and ()
metadata(ra2) == metadata(ra3) # Dict and nothing
typeof(ra3) # DimArray not raster!
Making this consistent is not hard but will technically be breaking.
Can we fit in some changes here before the next breaking release #946?