build_sandbox: Create a sandbox containing small subsets of target datasets.

View source: R/build_sandbox.R

build_sandboxR Documentation

Create a sandbox containing small subsets of target datasets.

Description

Create a sandbox containing small subsets of target datasets.

Usage

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?

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.

Value

A copy of a parent database.


macroecology-society/masDMT documentation built on July 2, 2024, 4:08 a.m.