powered by
nband (length) returns number of bands (layers, if appropriate in terminology) of ursaRaster object.
nband
length
ursaRaster
nband(x)# S3 method for ursaRaster length(x)
# S3 method for ursaRaster length(x)
Object of class ursaRaster
Positive integer of length 1.
length for ursaRaster object is a synonym for nband.
bandname (names for ursaRaster object).
bandname
names
# NOT RUN { session_grid(NULL) a1 <- pixelsize() print(a1) print(nband(a1)) a2 <- c("Band 1"=a1,Band2=a1/2,sqrt=sqrt(a1),NA) print(a2) print(nband(a2)) # }
Run the code above in your browser using DataLab