classRaster_rep: Replicate bands of raster image.

Description Usage Arguments Value Author(s) See Also Examples

Description

rep for object of class ursaRaster creates new ursaRaster objects with repitition of orininal band sequence.

Usage

1
2
## S3 method for class 'ursaRaster'
rep(x, ...)

Arguments

x

Object of class ursaRaster

...

Further arguments to be passed to or from other methods. Keywords:

times

Positive integer. Number of times to repeat each band.

If argument has no name, then times is assumpted.

Value

Object of class ursaRaster.

Author(s)

Nikita Platonov platonov@sevin.ru

See Also

c for ursaRaster.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
session_grid(NULL)
session_grid(regrid(mul=1/4))
a <- ursa_dummy(nband=3)
print(a)
b1 <- rep(a,by=2)
print(b1)
b2 <- rep(a,length=5)
print(b2)
b3 <- rep(a[3],3)
print(b3)

ursa documentation built on Feb. 26, 2020, 3:01 p.m.