View source: R/row_col_from_zenith_azimuth.R
row_col_from_zenith_azimuth | R Documentation |
Obtain row and col numbers from zenith and azimuth angles
row_col_from_zenith_azimuth(z, a, za, lens_coef = NULL)
z |
SpatRaster built with |
a |
SpatRaster built with |
za |
Numeric vector of length two. Zenith and azimuth angles in degrees. |
lens_coef |
Numeric vector. Polynomial coefficients of the lens
projection function. See |
Numeric vector of length two.
Use the lens_coef
argument to calculate coordinates below the horizon.
Other HSP Functions:
read_manual_input()
,
read_opt_sky_coef()
,
write_sky_points()
,
write_sun_coord()
,
zenith_azimuth_from_row_col()
z <- zenith_image(1000, lens())
a <- azimuth_image(z)
row_col_from_zenith_azimuth(z, a, c(45, 270))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.