Position of the Sun and Moon in ECEF coordinates

Click For Summary

Discussion Overview

The discussion revolves around finding or developing a software or algorithm to determine the positions of the Sun and Moon in Earth-Centered, Earth-Fixed (ECEF) coordinates. It includes inquiries about available resources and guidance for an engineering student with limited astrophysics knowledge.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant seeks software or algorithms for calculating the positions of the Sun and Moon in ECEF coordinates.
  • Another participant suggests the JPL Horizons website as a resource for obtaining coordinates of solar system bodies, noting it provides data in various coordinate systems.
  • A different participant clarifies that while JPL Horizons offers Cartesian coordinates, it does not provide ECEF directly but can represent data based on points on Earth's surface.
  • This participant outlines the requirements for a dynamic and high-accuracy system, mentioning the need for an ephemeris model, an Earth rotation model, and a time model, along with potential software limitations.
  • One participant shares a link to an online converter for transforming latitude, longitude, and altitude to ECEF coordinates.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the availability and accuracy of existing resources for ECEF coordinates. There is no consensus on a single solution, and multiple approaches are discussed.

Contextual Notes

Participants mention specific models and software that may have limitations, such as the quality of the software from JPL and the need for precise time calculations. The discussion reflects a range of assumptions about the requirements for accuracy and data points.

Trolll
Messages
5
Reaction score
0
Hi!
I was just wondering if anyone knows where I can find a software/algorithm that can give me the postion of the sun and the moon in ECEF coordinates?

If not, do you have any clues to how I might start building one? I am an engeneering student, so I don't have a lot of knowlegde about astrophysics, but I am very willing to learn!
Thank you for your time!
 
Astronomy news on Phys.org
The JPL Horizons website will give coordinates for any solar system body in a variety of different coordinates systems. One of them is Cartesian coordinates centered on any point you choose, which I think is the same as ECEF.
 
phyzguy said:
The JPL Horizons website will give coordinates for any solar system body in a variety of different coordinates systems. One of them is Cartesian coordinates centered on any point you choose, which I think is the same as ECEF.
ECEF means "Earth Centered, Earth Fixed". Horizons does not provide that system. It does provide the ability to represent data in a frame based on a point on the surface of the Earth, so that's close (the coordinates of a point on the surface of the Earth in ECEF is nearly constant, and the variations are very small).

This may or may not work, depending on the OP's needs. To the OP: How many data points are needed, does the system need to be dynamic, to what accuracy do you want the data?

If you need a dynamic system with high accuracy you have a lot of work cut out for you. You'll need
  • An ephemeris model such as the Development Ephemeris from JPL. This comprises software and data. You can download both from the Horizons site. The software provided isn't very good (typical academic quality software written in an ancient version of Fortran) but you can rewrite it.
  • An Earth rotation model, which you can get from SOFA (and this is of good quality).
  • A model of time. The JPL ephemeris uses JPL's Teph, which is a MIT/JPL relativistic time scale. To within a couple of milliseconds, Teph is Terrestrial Time (TT), which in turn is a fixed offset from International Atomic Time (TAI). The SOFA model needs time in TT, UT1, and GMST. There are shortcuts if you don't mind loss of precision.
The ephemeris model will let you calculate the position of the Sun, Earth, and Moon in ITRF coordinates. Ignoring relativistic effects, this is the information you need to calculate the Earth Centered Inertial coordinates (ICRF axes, which are about the same as J2000) of the Sun and Moon. The Earth rotation model gives the transform from ECI to ECEF.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 49 ·
2
Replies
49
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K