Skip to contents

Crops data in a Zarr file based on spatial (AOI) and temporal (start/end) filters.

Usage

zarr_crop(
  URL = NULL,
  catalog = NULL,
  AOI = NULL,
  startDate = NULL,
  endDate = NULL,
  start = NULL,
  end = NULL,
  varname = NULL,
  verbose = TRUE
)

Arguments

URL

Character. The URL of the Zarr file. Defaults to NULL.

catalog

Data frame. Metadata catalog for the Zarr file. Defaults to NULL.

AOI

Spatial object. Area of interest for cropping. Defaults to NULL.

startDate

Character. Start date for cropping. Defaults to NULL.

endDate

Character. End date for cropping. Defaults to NULL.

start

Numeric. Start index for cropping. Defaults to NULL.

end

Numeric. End index for cropping. Defaults to NULL.

varname

Character. Variable name to crop. Defaults to NULL.

verbose

Logical. Whether to print verbose output. Defaults to TRUE.

Value

A cropped dataset matching the specified criteria.