Rasters.jl
Rasters.jl copied to clipboard
`cat` preserves metadata of first raster
A Raster
created by concatenating multiple other Raster
s keeps the metadata
of the first Raster
. Is that on purpose?
MWE:
using Rasters, RasterDataSources
months = [4,5,6]
rasters = map(m -> Raster(WorldClim{Climate}, :tavg; month = m, lazy = true), months)
ras = cat(rasters...; dims = Ti(months))
Rasters.metadata(ras) == Rasters.metadata(rasters[1])
Not sure how this should behave, though.