check_alignment: Get error in azimuth given the horizontal coordinates of an...

Description Usage Arguments Value Examples

View source: R/general.R

Description

Get error in azimuth given the horizontal coordinates of an alignment in reference to a theorical declination

Usage

1
2
check_alignment(azimuth, altitude, celestial_body, jd = julian_day(1, 1,
  -1000), disk, declination_reference, geographic_latitude)

Arguments

azimuth

Apparent azimuth in degrees of an alignment

altitude

Apparent elevation in degrees of an alignment

celestial_body

celestial body as string. It can be empty

jd

Julian day. -1000-1-1 as default

disk

It can be "upper" for upper limb, "lower" for lower limb or "center"

declination_reference

Theorical declination as reference

geographic_latitude

Geographical latitude of the origin in degrees

Value

Error in azimuth

Examples

1
2
3
4
5
6
7
8
df<- data.frame(origin=c("Fuencalada","Fuencalada"), foresight=c("Los Cambitos","Teleno"),
                azimuth=c(241.4563,246.9905),altitude=c(2.035853,2.192668),
                geographic_latitude=c(42.44944,42.44944))
error=check_alignment(azimuth=df$azimuth,altitude=df$altitude,
                      celestial_body=c("moon","sun"),
                      disk=c("upper","upper"),
                      declination_reference=c(-18.81,-16.4),
                      geographic_latitude=df$geographic_latitude)

Susarro/arqastwb documentation built on May 21, 2019, 10:28 a.m.