cie_sky_model_raster: CIE sky model raster

View source: R/cie_sky_model_raster.R

cie_sky_model_rasterR Documentation

CIE sky model raster

Description

CIE sky model raster

Usage

cie_sky_model_raster(z, a, sun_coord, sky_coef)

Arguments

z

SpatRaster built with zenith_image().

a

SpatRaster built with azimuth_image().

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.

See Also

Other Sky Reconstruction Functions: fit_cie_sky_model(), fit_coneshaped_model(), fit_trend_surface(), fix_reconstructed_sky(), interpolate_sky_points(), ootb_sky_reconstruction()

Examples

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))

rcaiman documentation built on Nov. 15, 2023, 1:08 a.m.