View source: R/cie_sky_model_raster.R
cie_sky_model_raster | R Documentation |
CIE sky model raster
cie_sky_model_raster(z, a, sun_coord, sky_coef)
z |
SpatRaster built with |
a |
SpatRaster built with |
sun_coord |
Numeric vector of length two. The solar disk center represented with zenith and azimuth angles in degrees. |
sky_coef |
Numeric vector of length five. Parameters of the sky model. |
Other Sky Reconstruction Functions:
fit_cie_sky_model()
,
fit_coneshaped_model()
,
fit_trend_surface()
,
fix_reconstructed_sky()
,
interpolate_sky_points()
,
ootb_sky_reconstruction()
z <- zenith_image(50, lens())
a <- azimuth_image(z)
path <- system.file("external", package = "rcaiman")
skies <- read.csv(file.path(path, "15_CIE_standard_skies.csv"))
# parameters are from http://dx.doi.org/10.1016/j.energy.2016.02.054
sky_coef <- skies[4,1:5]
sun_coord <- c(45, 0)
plot(cie_sky_model_raster(z, a, sun_coord, sky_coef))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.