Topic: Survey
Topic Description:
Functions for estimating elevation from topographic survey data.
File: topography/slope.r
| View File Source | Download File | No help file available |
Function: elev.to.list
Function Description: elev.to.list
A function which reads a dataframe with x,y,elevation for a given grid size and converts to a list note the names of the columns in the dataframe must be: x y elevFunction Arguments:
| Argument | Default Value |
|---|---|
| elevfile | |
| gridsize | 5 |
| elevfile | |
| gridsize | 5 |
Arguments Description:
object 1 in list is: the input dataframe object 2 in list is: matrix of elevation value sin the orientation of the plot
Function Source:
elev.to.list=function(elevfile,gridsize=5)
{
xdim=max(elevfile$x)
ydim=max(elevfile$y)
elevmat=matrix(elevfile$elev,nrow=1+ydim/gridsize,ncol=1+xdim/gridsize,byrow=F)
return(list(col=elevfile,mat=elevmat))
}
{
xdim=max(elevfile$x)
ydim=max(elevfile$y)
elevmat=matrix(elevfile$elev,nrow=1+ydim/gridsize,ncol=1+xdim/gridsize,byrow=F)
return(list(col=elevfile,mat=elevmat))
}