zarr_get: Process and retrieve Zarr data as terra objects

View source: R/zarr.R

zarr_getR Documentation

Process and retrieve Zarr data as terra objects

Description

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.

See Also

Other zarr: .resource_grid_zarr(), .resource_time_zarr(), go_get_zarr(), read_zarr_file(), zarr_crop(), zarr_to_terra(), zarr_xyzv()

Examples

## Not run: 
# Example usage (assuming `zarr` is a properly formatted data frame):
# result <- zarr_get(zarr, varname = "temperature")

## End(Not run)

mikejohnson51/climateR documentation built on Dec. 6, 2024, 10:37 a.m.