cie_image | R Documentation |
Generate an image of relative radiance or luminance based on the CIE General Sky model.
cie_image(z, a, sun_angles, sky_coef)
z |
terra::SpatRaster generated with |
a |
terra::SpatRaster generated with |
sun_angles |
named numeric vector of length two, with components
|
sky_coef |
numeric vector of length five. Parameters of the CIE sky model. |
terra::SpatRaster with one layer whose pixel values
represent relative luminance or radiance across the sky hemisphere,
depending on whether the data used to obtain sky_coef
was luminance
or radiance.
Coefficient sets and formulation are available in cie_table.
z <- zenith_image(50, lens())
a <- azimuth_image(z)
sky_coef <- cie_table[4,1:5] %>% as.numeric()
sun_angles <- c(z = 45, a = 0)
plot(cie_image(z, a, sun_angles, sky_coef))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.