Class ursaGrid
is a part of class ursaRaster
. It defines spatial locations of image.
# S3 method for ursaGrid
print(x, ...)# S3 method for ursaGrid
str(object, ...)
# S3 method for ursaGrid
dim(x)
# S3 method for ursaGrid
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
ursaGrid
object in functions print
, dim
and as.data.frmame
.
ursaGrid
object in function str
.
Ignored. Argument, which is passed to generic function as.data.frame
.
Ignored. Argument, which is passed to generic function as.data.frame
.
Further arguments passed to generic functions as.data.frame
, print
, and str
.
Object of class ursaGrid
is a list with items:
Number of columns (samples)
Number of rows (lines)
Grid cell size by horizontal axis
Grid cell size by vertical axis
Left margin of boundary box
Right margin of boundary box
Bottom margin of boundary box
Top margin of boundary box
PROJ.4 string
%%~ \code{is.grig} returns \code{TRUE}, if class of \code{x} is \code{ursaGrid} Function dim for object of class ursaGrid returns named vector of length 2: number of rows ("lines") and number of elements in a row ("samples")
The blank ursaGrid
object is generated by calling of ursa_grid()
without arguments. These approaches provide unified sequence of list's items:
List of 9 $ columns: int NA $ rows : int NA $ resx : num NA $ resy : num NA $ minx : num NA $ maxx : num NA $ miny : num NA $ maxy : num NA $ proj4 : chr "" - attr(*, "class")= chr "ursaGrid" NULL
# NOT RUN {
session_grid(NULL)
print(methods(class="ursaGrid"))
a <- pixelsize()
g <- ursa_grid(a)
print(is.ursa(a,"grid"))
print(is.ursa(g,"grid"))
print(g)
# }
Run the code above in your browser using DataLab