I have a .dat file (ENVI format) with specific band names, as you can see in the snapshot.
I've imported this file in R, but I cannot find the band names in the R object. The command
names(stack_NDVI)
gives this output
[1] "old_min_identification_VI_smooth_2010.1" "old_min_identification_VI_smooth_2010.2"
[3] "old_min_identification_VI_smooth_2010.3" "old_min_identification_VI_smooth_2010.4"
[5] "old_min_identification_VI_smooth_2010.5" "old_min_identification_VI_smooth_2010.6"
that is not correspondent to the band names of the .dat file as I can see in ENVI.
Any ideas to get this information fro the R object?
I've imported the .dat as a RasterStack
object.
rasterstack
afterwards usingnames(stack_NDVI) <- c('a','b','c')