Skip to contents

This function processes Zarr resources and converts them into terra spatial objects.

Usage

zarr_get(zarr, varname = NULL)

Arguments

zarr

A data frame containing details of the Zarr resources to process. Each row should correspond to a single Zarr resource.

varname

Character vector specifying the variable names to retrieve. If `NULL`, retrieves all available variables.

Value

Returns processed data as terra SpatRaster objects or merged data frames, depending on the input and Zarr properties.

Examples

if (FALSE) { # \dontrun{
# Example usage (assuming `zarr` is a properly formatted data frame):
# result <- zarr_get(zarr, varname = "temperature")
} # }