Create a sandbox containing small subsets of target datasets.

build_sandbox(data_id, bbox, range, path, virtual = FALSE, verbose = FALSE)

Arguments

data_id

Character vector with target dataset ID's.

bbox

Four-element vector with target bounding box (min x, min y, max x, max y).

range

Two-element Date vector with start/end date range..

path

Character element with path to directory where to construct database.

virtual

Logical. Should the output be a Virtual Raster (VRT) or a real image?

verbose

Logical. Should the function communicate it's progress?

Value

A copy of a parent database.

Details

The function creates a copy of the datasets given by data_id within the area defined by bbox and the temporal range determined by range. Currently, the function only handles raster objects, and it provides the output either as a GeoTiff, if virtual is FALSE, or a VRT, if virtual is TRUE.