An S4 class that represents topography that has locations on a regular grid.

# S4 method for SpatialPixelsTopography,ANY,ANY
[(x, i, j, ..., drop = FALSE)
  # S4 method for SpatialPixelsTopography
show(object)

Objects from the Class

Objects can be created by calls of the form new("SpatialPixelsTopography", ...), or by calls to the function SpatialPixelsTopography.

Slots

data:

Object of class "data.frame" containing the elevation (in m), slope (in degrees) and aspect (in degrees from North) of every cell.

coords.nrs:

Inherited from SpatialPointsDataFrame but not used.

grid:

Object of class GridTopology.

grid.index:

Index of points in full grid.

coords:

Object of class "matrix" with the spatial coordinates.

bbox:

Object of class "matrix" with the boundary box.

proj4string:

Object of class "CRS" with the projection string.

Extends

Class "SpatialPixelsDataFrame", directly. Class "SpatialPixels", by class "SpatialPixelsDataFrame", distance 2. Class "SpatialPointsDataFrame", by class "SpatialPixelsDataFrame", distance 2. Class "SpatialPoints", by class "SpatialPixelsDataFrame", distance 3. Class "Spatial", by class "SpatialPixelsDataFrame", distance 4.

Arguments

x,object

SpatialPixelsTopography object

i

row indices

j

column indices

drop

see Extract

...

indices passed through

Author

Miquel De Cáceres Ainsa, CREAF

See also

SpatialPixelsTopography, SpatialPixelsDataFrame-class

Examples

#Structure of the S4 object
showClass("SpatialPixelsTopography")
#> Class "SpatialPixelsTopography" [package "meteoland"]
#> 
#> Slots:
#>                                                                        
#> Name:          data   coords.nrs         grid   grid.index       coords
#> Class:   data.frame      numeric GridTopology      integer       matrix
#>                                 
#> Name:          bbox  proj4string
#> Class:       matrix          CRS
#> 
#> Extends: 
#> Class "SpatialPixelsDataFrame", directly
#> Class "SpatialPixels", by class "SpatialPixelsDataFrame", distance 2
#> Class "SpatialPointsDataFrame", by class "SpatialPixelsDataFrame", distance 2
#> Class "SpatialPoints", by class "SpatialPixelsDataFrame", distance 3
#> Class "Spatial", by class "SpatialPixelsDataFrame", distance 4