zenith_azimuth_from_row_col {rcaiman}R Documentation

Obtain zenith and azimuth angles from row and col numbers

Description

Obtain zenith and azimuth angles from row and col numbers

Usage

zenith_azimuth_from_row_col(z, a, row_col, lens_coef = NULL)

Arguments

z

SpatRaster built with zenith_image().

a

SpatRaster built with azimuth_image().

row_col

Numeric vector of length two. Row and col numbers.

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(), row_col_from_zenith_azimuth(), write_sky_points(), write_sun_coord()

Examples

z <- zenith_image(1000, lens())
a <- azimuth_image(z)
zenith_azimuth_from_row_col(z, a, c(501, 750))

[Package rcaiman version 1.2.2 Index]