Learn R Programming

geospatialsuite (version 0.1.1)

create_raster_mosaic: Create raster mosaic with intelligent file selection

Description

Create mosaics from multiple raster files with various methods and intelligent file selection based on region boundaries.

Usage

create_raster_mosaic(
  input_data,
  method = "merge",
  region_boundary = NULL,
  output_file = NULL,
  parallel = FALSE
)

Value

SpatRaster object

Arguments

input_data

Character vector of file paths, directory path, or list of rasters

method

Mosaicing method: "merge", "mosaic", "mean", "max", "min"

region_boundary

Optional region boundary for clipping

output_file

Optional output file path

parallel

Use parallel processing

Examples

Run this code
if (FALSE) {
# These examples require external data files not included with the package
# Basic mosaic
mosaic <- create_raster_mosaic("/path/to/rasters", method = "merge")

# Mosaic for specific region
ohio_mosaic <- create_raster_mosaic("/aster/files", "merge", "Ohio")

# Mean composite
mean_mosaic <- create_raster_mosaic(raster_list, method = "mean")
}

Run the code above in your browser using DataLab