ursa_dummy {ursa} | R Documentation |
Generate raster image for examples.
Description
ursa_dummy
returns georeferenced raster image with required number of bands. The value of such image has no sence in reality, but are suitable for R's examples.
Usage
ursa_dummy(nband = 3L, minvalue = 0, maxvalue = 255, mul = 1, elements = 8L,
bandname = NULL, nodata = TRUE, resetGrid=FALSE)
Arguments
nband |
Positive integer. Number of bands. Default is 3L. |
minvalue |
Numeric of length 1. Minimal value for raster image. Default is |
maxvalue |
Numeric of length 1. Maximal value for raster image. Default is |
mul |
Positive numeric. The scaling of the existing session grid. Value |
elements |
Positive integer. Maximal dimension of matrix, which is proportional to session grid. If |
bandname |
Character vector or |
nodata |
Numerical or logical. Set value, which is interpreted as 'no-data' flag. If logical and |
resetGrid |
Logical. Whether the grid will be reset to default before raster generation? If |
Details
Currently, the values are generated using runif
.
The value mul<1
speeds up raster generation.
Value
Object of class ursaRaster
Author(s)
Nikita Platonov platonov@sevin.ru
Examples
session_grid(NULL)
a1 <- as.integer(ursa_dummy(nband=1,mul=1/16,elements=1e3)) ## white noise
## to avoid over-time during example check -- begin
display(a1,legend=NULL)
## to avoid over-time during example check -- end
a2 <- ursa_dummy()
print(a2)
display_brick(a2,decor=FALSE)
display_stack(a2,decor=FALSE)
display_rgb(a2,decor=FALSE)