Skip to contents

Converts extracted Zarr data into terra SpatRaster objects or data frames based on spatial and temporal dimensions.

Usage

zarr_to_terra(var, zarr)

Arguments

var

A variable containing extracted Zarr data.

zarr

A data frame containing details of the Zarr resource, including metadata.

Value

Returns a terra SpatRaster object or data frame containing the processed data.

Examples

if (FALSE) { # \dontrun{
# Example usage (assuming `var` and `zarr` are properly formatted):
# result <- zarr_to_terra(var, zarr)
} # }