c {ursa}R Documentation

Combine bands into raster brick.

Description

This function is an instrument for appending bands or for reorganizing bands.

Usage

## S3 method for class 'ursaRaster'
c(...)

Arguments

...

Objects of class ursaRaster or coerced to class ursaRaster. First argument should be the object of class ursaRaster. The objects in the sequence can be named.

Details

You may use this function to assign new bandname for single-band raster: objDst <- c('Relative density'=objSrc)

Use also 'Extract' operator [ ] to reorganize band sequence.

The returned object can be interpreted as a brick in the notation of package raster. To produce stack just call list or ursa_stack.

Value

ursaRaster object.

Author(s)

Nikita Platonov platonov@sevin.ru

See Also

ursa_brick converts list of ursaRaster objects (stack) to a singe multiband ursaRaster object (brick).

Examples

session_grid(NULL)
session_grid(regrid(mul=1/16))
a1 <- ursa_dummy(nband=2)
names(a1) <-  weekdays(Sys.Date()+seq(length(a1))-1)
a2 <- ursa_dummy(nband=2)
names(a2) <- names(a1)
print(a1)
print(a2)
a3 <- a1[1]
print(names(a3))
a4 <- c(today=a3)
print(names(a4))
print(b1 <- c(a1,a2))
print(b2 <- c(a1=a1))
print(b3 <- c(a1=a1,a2=a2))
print(b5 <- c(a1=a1,a2=a2[1]))
print(b4 <- c(a1,'(tomorrow)'=a1[2])) ## raster append
print(b6 <- c(a1,50))

[Package ursa version 3.10.4 Index]