dim | R Documentation |
Retrieve the dimension of an object of class ursaRaster
. The replacement function is dummy; it doesn't change raster dimension.
## S3 method for class 'ursaRaster'
dim(x)
## S3 replacement method for class 'ursaRaster'
dim(x) <- value
x |
Object of class |
value |
Any. Ignored |
Use extract operator []
and combine function c
to change third (e.g., temporal) dimension of raster.
Use regrid
function to change grid parameters and to resize/resample raster into new grid.
The 'Extract' function dim
returns named integer vector of length three: 1) number of lines/rows, 2) number of samples/columns, 3) number of bands/channels/layers.
The 'Replacement' function dim<-
returns ursaRaster
object without changes.
Nikita Platonov platonov@sevin.ru
session_grid(NULL)
session_grid(regrid(mul=1/16))
a <- ursa_dummy(nband=3)
ursa_info(a)
print(dim(a))
dim(a) <- c(25,00,34)
print(dim(a))
b <- create_envi("tmp1",bandname=letters[1:5],compress=FALSE)
print(dim(b))
close(b)
envi_remove("tmp1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.