Skip to content

Commit

Permalink
fixes #1239
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Aug 26, 2023
1 parent 73703df commit e9a3f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion man/rasterizeWin.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This can result in much smoother results compared to the standard \code{\link{ra
\item{y}{SpatRaster}
\item{field}{character. field name in SpatVector \code{x} with the values to rasterize}
\item{win}{character to choose the window type. Can be "circle", "ellipse", "rectangle", or "buffer"}
\item{pars}{parameters to define the window. If \code{win="circle"} or \code{win="buffer"}, a single number to set the radius of the circle or the width of the buffer. If \code{win="ellipse"}, either two numbers (the x and y-axis) or three numbers the axes and a rotation (in degrees). If \code{win="rectangle"}, either two (width, height) or three (width, height) and the rotation in degrees. The unit of the radius/width/height/axis parameters is that of the coordinate reference system. That is, if you have a lon/lat crs, there is no conversion of degrees to meters or vice-versa}
\item{pars}{parameters to define the window. If \code{win="circle"} or \code{win="buffer"}, a single number to set the radius of the circle or the width of the buffer. If \code{win="ellipse"}, either two numbers (the x and y-axis) or three numbers the axes and a rotation (in degrees). If \code{win="rectangle"}, either two (width, height) or three (width, height) and the rotation in degrees. The unit of the radius/width/height/axis parameters is that of the coordinate reference system (it is not expressed as cells). That is, if you have a lon/lat crs, there is no conversion of degrees to meters or vice-versa.}
\item{fun}{function to summarize the values for each cell. If \code{cvars=FALSE}, functions must take a numeric vector and return (in all cases) one or more numbers. If \code{cvars=TRUE}, and multiple variables are used, the function must take a single argument (a data.frame with the names variables).
For \code{win="circle"} and \code{win="ellipse"} there are two additional character values that can be used: \code{"distto"} (average distance to the points from the center of the cell) and \code{"distbetween"} (average distance between the points inside the window)}
\item{...}{additional named arguments passed to \code{fun}}
Expand Down

0 comments on commit e9a3f37

Please sign in to comment.