path <- system.file("testdata/LC8", 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