Learn R Programming

glossa (version 1.0.0)

read_layers_zip: Load Covariate Layers from ZIP Files

Description

This function loads covariate layers from a ZIP file, verifies their spatial characteristics, and returns them as a list of raster layers.

Usage

read_layers_zip(
  file_path,
  extend = TRUE,
  first_layer = FALSE,
  show_modal = FALSE
)

Value

A list containing raster layers for each covariate.

Arguments

file_path

Path to the ZIP file containing covariate layers.

extend

If TRUE it will take the largest extent, if FALSE the smallest.

first_layer

If TRUE it will return only the layers from the first timestamp.

show_modal

Optional. Logical. Whether to show a modal notification for warnings. Default is FALSE.