moonsun (version 0.1.3)

as.ecc: Convert between different coordinate systems

Description

The function converts data between equatorial, ecliptic and horizontal coordinates.

Usage

as.ecc(x) as.eqc(x,time=lst(),phi=getOption("latitude")) as.hoc(x,time=lst(),phi=getOption("latitude"))

Arguments

x
An object of class eqc,ecc or hoc.
time
Local Sidereal Time - the LST at the moment by default.
phi
Latitude of the observer - taken from options by default.

Value

An converted object of desired class.

Examples

Run this code
options(latitude=51,longitude=22)
data(bright)
plot(as.hoc(bright))
plot(as.hoc(bright,time=lst(hour=0)))
plot(as.ecc(bright))
plot(as.hoc(planets()))

Run the code above in your browser using DataLab