powered by
Functions to extract first bands (head), last bands (tail) and first+last bands (series) of raster image.
head
tail
series
# S3 method for ursaRaster head(x, n = 3L, ...)# S3 method for ursaRaster tail(x, n = 3L, ...)series(x, n = 3L, s=170, ...)
# S3 method for ursaRaster tail(x, n = 3L, ...)
series(x, n = 3L, s=170, ...)
Object of class ursaRaster
ursaRaster
Positive integer. Number of extracted bands.
Positive numeric. Maximal size of memory in MB for extracted raster image in the assumption that class of values is numeric.
numeric
Not used.
Nikita Platonov platonov@sevin.ru
Function series combines consequtive calling head(x); tail(x) with checking the size of extracted part of raster image. If size exceeds specified value of the argument s, then number of extracted bands n is decreased.
head(x); tail(x)
s
n
session_grid(NULL) session_grid(regrid(mul=1/8)) a <- ursa_dummy(nband=101) print(head(a)) print(tail(a)) print(series(a,2)) print(series(a[1:5]))
Run the code above in your browser using DataLab