merge_rasters: Merge Rasters

View source: R/get_elev_raster.R

merge_rastersR Documentation

Merge Rasters

Description

Merge multiple downloaded raster files into a single file. The input 'target_prj' describes the projection for the new grid.

Usage

merge_rasters(
  raster_list,
  target_prj,
  method = "bilinear",
  returnRaster = TRUE,
  tmp_dir = tempdir()
)

Arguments

raster_list

a list of raster file paths to be mosaiced

target_prj

the target projection of the output raster

method

the method for resampling/reprojecting. Default is 'bilinear'. Options can be found [here](https://gdal.org/programs/gdalwarp.html#cmdoption-gdalwarp-r)

returnRaster

if TRUE, return a raster object (default), else, return the file path to the object

tmp_dir

The location to store downloaded raster files. Defaults to a temporary location. Alternatively, the user may supply an existing path for these raster files. New folders are not created by get_elev_raster.


jhollist/elevatr documentation built on Feb. 4, 2024, 12:01 a.m.