Skip to contents

Generates a square demo terra::SpatRaster object with options to set the size (on disk) and number of layers.

Usage

demo_stack_spatraster(size = 50, layers = 5)

Arguments

size

[integer(1)]
Size of raster stack in megabyte (disk space).

layers

[integer(1)]
Number of layers.

Examples

demo_stack_spatraster(size = 5, layers = 2)
#> class       : SpatRaster 
#> dimensions  : 790, 790, 2  (nrow, ncol, nlyr)
#> resolution  : 1, 1  (x, y)
#> extent      : 0, 790, 0, 790  (xmin, xmax, ymin, ymax)
#> coord. ref. :  
#> sources     : filec47a64067eaa.tif  
#>               filec47a1d2a0cea.tif  
#> names       :       x_1,         y 
#> min values  : -4.762396,  0.000000 
#> max values  :  5.528001,  1.000000