make_raster_stack: Combine multiple raster files into a SpatRaster object with...

View source: R/utils.R

make_raster_stackR Documentation

Combine multiple raster files into a SpatRaster object with multiple layers

Description

Make a raster stack from multiple raster layers that can be opened with (i.e. raster .grd, GeoTIFF, EHDR)

Usage

make_raster_stack(
  file_path,
  file_name_contains = NULL,
  file_type = ".tif",
  wrap
)

Arguments

file_path

Path to the directory containing raster files

file_name_contains

Character vector to filter on. (e.g., using "ste_" will ignore all filepaths that don't contain the characters sequence)

file_type

File type. Default = ".tif" for GeoTIFF. Also works with native raster .grd and other stackable raster formats.

wrap

Should the SpatRaster be used to create a Packged object (i.e., an object that can be saved as an R object to disk such as .RData or .rds)?


afsc-gap-products/coldpool documentation built on Sept. 14, 2024, 7:40 p.m.