c | R Documentation |
This function is an instrument for appending bands or for reorganizing bands.
## S3 method for class 'ursaRaster'
c(...)
... |
Objects of class |
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
.
ursaRaster
object.
Nikita Platonov platonov@sevin.ru
ursa_brick
converts list of ursaRaster
objects (stack) to a singe multiband ursaRaster
object (brick).
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.