Skip to contents

Stack VRT files from a vrt_collection object

Print a vrt_block object

Usage

vrt_stack(x, ...)

# S3 method for class 'vrt_collection'
vrt_stack(x, quiet = TRUE, ...)

# S3 method for class 'vrt_stack'
print(x, xml = FALSE, pixfun = FALSE, maskfun = FALSE, ...)

Arguments

x

A vrt_collection object

...

Additional arguments not used

quiet

Logical. If TRUE, suppress GDAL progress bar

xml

A logical indicating whether to print the XML

pixfun

A logical indicating whether to print the pixel function

maskfun

A logical indicating whether to print the mask function

Value

A vrt_stack object

Details

This function stacks VRT files from a vrt_collection object into a single VRT file containing multiple layers for each RasterBand. The VRT files are stacked in the order they are provided in the vrt_collection object. If this is derived from a rstac object, the order should be ordered by date.