Build a single-layer image with zenith angle values, assuming upwards-looking
hemispherical photography with the optical axis vertically aligned.
Usage
zenith_image(diameter, lens_coef)
Value
terra::SpatRaster with zenith angles in
degrees, showing a complete hemispherical view with the zenith at the
center. The object carries attributes lens_coef.
Arguments
diameter
numeric vector of length one. Diameter in pixels expressed as
an even integer. This places the zenith point between pixels. Snapping the
zenith point between pixels does not affect accuracy because half-pixel
is less than the uncertainty in localizing the circle within the
picture.
lens_coef
numeric vector. Polynomial coefficients of the lens
projection function. See lens().