classGrid: Spatial parameters of raster images.

ursaGridR Documentation

Spatial parameters of raster images.

Description

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

Usage


## S3 method for class 'ursaGrid'
print(x, ...)

## S3 method for class 'ursaGrid'
str(object, ...)

## S3 method for class 'ursaGrid'
dim(x)

## S3 method for class 'ursaGrid'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

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.

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

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

Author(s)

Nikita Platonov platonov@sevin.ru

See Also

regrid, session_grid

Examples

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)

ursa documentation built on Oct. 17, 2023, 5:11 p.m.