SpatialPointsTopography: Creates a 'SpatialPointsTopography'

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Function SpatialPointsTopography creates an object of class SpatialPointsTopography-class containing topographic variables for a set of points.

Usage

1
2
SpatialPointsTopography(points, elevation, slope = NULL, aspect = NULL,
                        proj4string = CRS(as.character(NA)))

Arguments

points

An object of class SpatialPoints-class.

elevation

Elevation values (in m) of the points.

slope

Slope values (in degrees) of the points.

aspect

Aspect values (in degrees from North) of the points.

proj4string

Object of class CRS in the first form only used when points does not inherit from Spatial.

Details

If either slope = NULL or aspect = NULL then when estimating weather on the object locations radiation will be calculated assuming a flat surface.

Value

Function SpatialPointsTopography returns an object 'SpatialPointsTopography-class'.

Author(s)

Miquel De Cáceres Ainsa, Biodiversity and Landscape Ecology Laboratory, Centre Tecnologic Forestal de Catalunya

See Also

SpatialPointsTopography-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(examplegridtopography)

#Creates spatial topography points from the grid
p = 1:2
points = as(examplegridtopography,"SpatialPoints")[p]
spt = SpatialPointsTopography(points, examplegridtopography$elevation[p],
                              examplegridtopography$slope[p],
                              examplegridtopography$aspect[p])
spt

#Alternatively, use coercing and subsetting
spt = as(examplegridtopography, "SpatialPointsTopography")[p]
spt

miquelcaceres/meteoland documentation built on May 8, 2019, 11:57 p.m.