path <- system.file("extdata", package = "satellite")
files <- list.files(path, pattern = glob2rx("LC8*.tif"), full.names = TRUE)
sat <- satellite(files)
alignGeometry(sat, template = getSatDataLayer(sat, "B008n"),
band_codes = "B001n")Run the code above in your browser using DataLab