Learn R Programming

moonsun (version 0.1.3)

ecc: 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

Value

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

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.

Examples

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

Run the code above in your browser using DataLab