Learn R Programming

ursa (version 3.10.4)

ursaGrid: Spatial parameters of raster images.

Description

Class ursaGrid is a part of class ursaRaster. It defines spatial locations of image.

Usage

# 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, ...)

Value

Object of class ursaGrid is a list with items:

columns

Number of columns (samples)

rows

Number of rows (lines)

resx

Grid cell size by horizontal axis

resy

Grid cell size by vertical axis

minx

Left margin of boundary box

maxx

Right margin of boundary box

miny

Bottom margin of boundary box

maxy

Top margin of boundary box

proj4

PROJ.4 string

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")

Arguments

x

ursaGrid object in functions print, dim and as.data.frmame.

object

ursaGrid object in function str.

row.names

Ignored. Argument, which is passed to generic function as.data.frame.

optional

Ignored. Argument, which is passed to generic function as.data.frame.

...

Further arguments passed to generic functions as.data.frame, print, and str.

Author

Nikita Platonov platonov@sevin.ru

Details

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

See Also

regrid, session_grid

Examples

Run this code
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