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. Zenith and azimuth angles in degrees, corresponding to the location of the solar disk center.

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

## Not run: 
z <- zenith_image(1400, 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))

## End(Not run)

rcaiman documentation built on Sept. 20, 2022, 1:05 a.m.