resolution-scidbst-methods: Spatial resolution

Description Usage Arguments Details Value Examples

Description

Returns information about the spatial resolution as numeric values, e.g.(xres,yres), xres or yres or in terms of number of cells in West-East dimension and South-North dimension (ncol, nrow).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S4 method for signature 'scidbst'
ncol(x)

## S4 method for signature 'scidbst'
nrow(x)

## S4 method for signature 'scidbst'
res(x)

## S4 method for signature 'scidbst'
xres(x)

## S4 method for signature 'scidbst'
yres(x)

Arguments

x

scidbst object

Details

The spatial resolution is calculated with the spatial extent and the number of rows or columns. The number of rows and columns can be derived by transforming the spatial extent with affine transformation into the dimensional index values and calculating the differences between the minimum and maximum value for each dimension. Therefore the spatial resolution describes the distances between the regular parallel lines throughout the image.

In terms of the cell numbers for rows and columns, the array is considered to have 2 dimensions. ncol and nrow refer primarily to the spatial dimensions. If the array is spatial, then nrow and ncol refer to the number of cells in the North-South and the West-East axis respectively. If the array is just referenced with a temporal reference system, then nrow is 1 and ncol is the number of potential units in the temporal extent.

In case both reference systems are present, then nrow and ncol only refer to the spatial dimensions.

Value

numeric or numeric vector

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
arr = scidbst("sp_array")
res(arr)
xres(arr)
yres(arr)
nrow(arr)
ncol(arr)

## End(Not run)

flahn/scidbst documentation built on May 16, 2019, 1:15 p.m.