read_layers_zip: Load Covariate Layers from ZIP Files

View source: R/read_validate_files.R

read_layers_zipR Documentation

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,
  is_fit = TRUE
)

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.

is_fit

Logical. Should be 'TRUE' when the ZIP contains the covariate layers used for model fitting, and 'FALSE' when the ZIP contains projection layers. This flag is only used internally to place the extracted files in separate subdirectories under 'tempdir()', preventing fit and projection layers from being mixed. Default is TRUE.

Value

A list containing raster layers for each covariate.


glossa documentation built on Oct. 30, 2026, 1:07 a.m.