Description Usage Arguments Value Note References See Also Examples
Compute the solar incidence angle over non-planar surfaces following the equation from Duffie and Beckman (2013).
1 2 3 4 5 6 7 8 9 10 11 12 | ## S4 method for signature 'POSIXt'
solarIncidenceAngle(x, dem, formula = c("Cooper",
"Spencer"), neighbors = 8L, unit = c("radians", "degrees"))
## S4 method for signature 'character'
solarIncidenceAngle(x, dem, formula = c("Cooper",
"Spencer"), neighbors = 8L, unit = c("radians", "degrees"), ...)
## S4 method for signature 'Raster'
solarIncidenceAngle(x, origin = strptime("1993-01-01",
"%Y-%m-%d"), dem, formula = c("Cooper", "Spencer"), neighbors = 8L,
unit = c("radians", "degrees"), ...)
|
x |
A date-time object of class |
dem |
|
formula |
|
neighbors |
|
unit |
|
... |
If |
origin |
A |
A Raster*
object with pixel-wise solar incidence angles.
An angle of more than 90 degrees, or likewise pi/2
, indicates that the
sun is behind the surface.
Duffie JA, Beckman WA (2013) Solar Engineering of Thermal Processes. Wiley: Hoboken, New Jersey, ISBN: 978-0-470-87366-3, http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470873663.html.
declination
, solarHourAngle
,
terrain
.
1 2 3 4 5 6 7 | ## import sample data
dem <- system.file("extdata/DEM.TIF", package = "satellite")
dem <- trim(projectRaster(raster(dem), crs = "+init=epsg:4326"))
## current solar incidence angle
solarIncidenceAngle(Sys.time(), dem, formula = "Spencer",
unit = "degrees")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.