as.ecc {moonsun}R Documentation

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.

Author(s)

Lukasz Komsta

Examples

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()))

[Package moonsun version 0.1 Index]