R/read_previews.R

Defines functions read_previews

Documented in read_previews

#' Read records previews
#' 
#' \code{read_previews} reads georeferences preview images downloaded using \code{get_previews} and returns them as a list of \code{raster stack} objects.
#'
#' @inheritParams get_previews
#' 
#' @return A list of \code{raster stack} objects
#' 
#' @author Jakob Schwalb-Willmann
#' 
#' @importFrom raster stack
#' @export

read_previews <- function(records){
  
  records <- .check_records(records, col.names = "preview_file")
  return(lapply(records$preview_file, stack))
  
}
16EAGLE/getSpatialData documentation built on June 9, 2022, 11:28 a.m.