az2dec: Calculates declination from azimuth and altitude measurements

Description Usage Arguments See Also Examples

View source: R/data-entry.R

Description

This function calculates the declination corresponding to an orientation , i.e. an azimuth. The altitude can either be given or, alternatively, if a skyscapeR.horizon object is provided, the corresponding horizon altitude will be automatically retrieved. This function is a wrapper for function swe_azalt_rev of package swephR.

Usage

1
az2dec(az, loc, alt)

Arguments

az

Azimuth(s) for which to calculate declination(s). See examples below.

loc

Location, can be either a skyscapeR.horizon object or, alternatively, an array of latitude values.

alt

Altitude of orientation. Optional, if left empty and a skyscapeR.object is provided then this is will automatically retrieved from the horizon data via hor2alt

See Also

swe_azalt_rev, hor2alt

Examples

1
2
3
4
5
6
7
hor <- downloadHWT('HIFVTBGK')

dec <- az2dec(92, hor)
dec <- az2dec(92, hor, alt=4)

# Can also be used for an array of azimuths:
decs <- az2dec( c(87,92,110), hor )

f-silva-archaeo/skyscapeR documentation built on Jan. 15, 2019, 3:22 a.m.