The dimension order as used by ff and raster native grid, see `raster::writeRaster`. The raster package uses the named conventions "BSQ", "BIL" and "BIP" which are domain-specialized ways to record the dimension order of (virtual) 3D arrays. They stand for "band sequential" "band interleaved" and ... correspond to c(1, 2, 3) etc. etc.
dim_order(x, ...) # S3 method for BasicRaster dim_order(x, ...) # S3 method for character dim_order(x, ...)
x | filename or raster object or ff object |
---|---|
... | ignored |
integer vector of dimension positions (1-based)
This function always returns an integer vector indicating the order of the dims of a `length(dim_order(x))` array oriented relative to the R array convention.
r <- raster::raster(volcano) dim_order(r)#> [1] 2 3 1w <- raster::writeRaster(r, raster::rasterTmpFile(), bandorder = "BIP") dim_order(w)#> [1] 2 3 1dim_order(raster::filename(w))#> [1] 2 3 1