Learn R Programming

astronomyengine (version 0.1.0)

astro_ecliptic: Convert J2000 equatorial coordinates to ecliptic coordinates

Description

Converts equatorial coordinates in the J2000 frame (mean equator of Earth at noon UTC on 1 January 2000) to true ecliptic coordinates of date (relative to the plane of Earth's orbit on the given date).

Usage

astro_ecliptic(x, y, z, time)

Value

A list with elements:

x

X coordinate (Cartesian) in ecliptic frame in AU.

y

Y coordinate (Cartesian) in ecliptic frame in AU.

z

Z coordinate (Cartesian) in ecliptic frame in AU.

lon

Ecliptic longitude in degrees.

lat

Ecliptic latitude in degrees.

dist

Distance in AU.

time

Observation time as POSIXct.

Arguments

x

X coordinate in AU.

y

Y coordinate in AU.

z

Z coordinate in AU.

time

A POSIXct time value.

Examples

Run this code
time <- as.POSIXct("2025-02-19 22:10:12", tz = "UTC")
astro_ecliptic(1.0, 0.5, 0.2, time)

Run the code above in your browser using DataLab