When transforming a stars object into sf object, the column names in the resulting sf object,
only include the dates for the first band. All the column names have no band identification or names after the first band.
it seems that the issue arises from this line, where the dates are not being replicated fot the other bands, and the band names are added to the names.
One possible solution might be modifying that line to combine the band names and dates. However, I'm not certain if this approach will work for all cases.
names(df) = paste(rep(names(nc), times = nc),
as.character(e[-ix][[1]]),
sep = ".")
When transforming a
stars
object intosf
object, the column names in the resultingsf
object, only include the dates for the first band. All the column names have no band identification or names after the first band.Created on 2024-08-21 with reprex v2.1.0
it seems that the issue arises from this line, where the dates are not being replicated fot the other bands, and the band names are added to the names.
One possible solution might be modifying that line to combine the band names and dates. However, I'm not certain if this approach will work for all cases.