ecc {moonsun}R Documentation

Create objects containing coordinates

Description

These functions are simple way to create objects containing a set of horizontal (hoc), ecliptic (ecc) and equatorial (eqc) coordinates.

Usage

ecc(lat, long, names = NULL)
eqc(ra, d, names = NULL)
hoc(az, alt, names = NULL)

Arguments

lat ecliptic latitude
long ecliptic longitude
ra right ascension
d declination
az azimuth
alt altititude
names names of objects

Details

All the arguments to these functions are vectors of the same length, containing corresponding coordinates and names. These are collected into a dataframe of appropriate class - eqc, ecc or hoc.

Value

An object of class eqc/ecc/hoc, apos, data.frame.

Author(s)

Lukasz Komsta

Examples

a = ecc(1:360,rep(0,360),1:360)
a
as.eqc(a)
plot(as.eqc(a))

[Package moonsun version 0.1 Index]