row_col_from_zenith_azimuth: Obtain row and col numbers from zenith and azimuth angles

View source: R/row_col_from_zenith_azimuth.R

row_col_from_zenith_azimuthR Documentation

Obtain row and col numbers from zenith and azimuth angles

Description

Obtain row and col numbers from zenith and azimuth angles

Usage

row_col_from_zenith_azimuth(z, a, za, lens_coef = NULL)

Arguments

z

SpatRaster built with zenith_image().

a

SpatRaster built with azimuth_image().

za

Numeric vector of length two. Zenith and azimuth angles in degrees.

lens_coef

Numeric vector. Polynomial coefficients of the lens projection function. See calibrate_lens().

Value

Numeric vector of length two.

Note

Use the lens_coef argument to calculate coordinates below the horizon.

See Also

Other HSP Functions: read_manual_input(), read_opt_sky_coef(), write_sky_points(), write_sun_coord(), zenith_azimuth_from_row_col()

Examples

z <- zenith_image(1000, lens())
a <- azimuth_image(z)
row_col_from_zenith_azimuth(z, a, c(45, 270))

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