Ephemerides 1.0 beta released

The home for finished/released addons.
Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: Ephemerides 1.0 beta released

Post #21by jogad » 16.02.2013, 16:42

Hum! sorry! :oops:
The coordinates above are the body fixed frame coordinates.

For the equatorial coordinates you can use the equatoriaframe() method. See:
http://en.wikibooks.org/wiki/Celestia/C ... orialframe

The simpler way to get the equatorial coordinates is to convert from a universal positon to an equatorial position with:
equatorial_position = equatorial_frame:to(universal_position)

Then get the coordinates with the position:getx(), position:gety() and position:getz() methods.

Keep in mind that the coordinates are in milionths of light year.

Avatar
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Ephemerides 1.0 beta released

Post #22by Fenerit » 16.02.2013, 19:35

Thank you Jo?l to reply. The thing is a bit more complex; maybe with the Moon the problem is more clear being already computed.
In the image below you can see the position angle of the bright limb (b.l.), where the Sun's vector is at: (360 - 252.452 = 107.548 E) good agreeding, imho. Good agreeding is also the declination of Sun, which it is important here for the calc.

pos.angle.jpg


BUT, for what concern the position angle of the axis, the things are a bit differents, since it should be visualizable like in the image below, as the basculating of the body's axis about a position which can be "simulated" in the image through the reference frame axis (or the converse, accordingly with the relative point of view drawn from the image). Note that I'm unaware whether such axial toggling is available through SPICE, since I've never experimenticed with them (my fault, indeed), but if one follows, chase, or syncronize the planetary motion never sees such axial displacement, that is: the geographic pole which "slide" about from where is the body axis.

pos.angle_2.jpg


For the Moon I got such motion by adapting parts of the XEphem source (thanks to Fridger to have pointed me there) with SOFA ANSI C source. Through the "celutil.lua", I got the ecliptic coords. of Sol and Moon and did retrive the "vector" latitude:

local BH = math.rad(moon_lat) * math.rad(dist_moon_earth / dist_sol_earth)

then is calculated the longitudinal component of the optical libration:

local w = math.rad(sol_long) - omega;

note that from the Sol's longitude mighst subtracted the nutation in longitude and the nutation in obliquity, but they are precalculated by Celestia and passed to the "celutil.lua"'s ecliptic coords. function. In fact, if I calculate and do insert them within the equation, the result differ from the check against other ephemerides programs because their re-iteration. "omega" is the argument of the latitude of the Moon.

From there I get the Sun's declination:

local B0 = math.deg(math.asin(-math.sin(w) * math.cos(BH) * math.sin(I) - math.sin(BH) * math.cos(I)));

where "I" is the Moon's tilt axis respect to the equator (1.54242 deg.). The axial components are got through:

local pax = math.sin(I) * math.sin(omega);
local pay = math.sin(I) * math.cos(omega) * cosEPS - math.cos(I) * sinEPS;
local paw = math.atan2(pax, pay);


where sinEPS, cosEPS are costants: the sine and cosine of the J2000.0 mean obliquity of the ecliptic (IAU 1976):

local sinEPS = 0.3977771559319137;
local cosEPS = 0.9174820620691818;

sinEPS/cosEPS of course can't be avoided since the calcolus is a "standalone" calcolus. Because the axis is toggling, atan2 put in the correct range (+/- < of 25 degrees for the Moon). Finally, its position is:

local pa = math.deg(math.asin(math.sqrt(pax^2 + pay^2) * math.cos(math.rad(moon_long) - paw)
/ math.cos(math.rad(B0))));


Such value agreed with the tests at least until 2099, because then the other ephemerides programs which I use does cease to calc. BUT: if I change "omega" and "I" with that of the planets ("omega" from SOFA ANSI C source code, "I" from Wikipedia), I lost the agreeding after 6 months; and note that there isn't nothing in the equations relevant to the Moon only, being irrilevant the optical libration's component "w" once its parameters are given. Thus, I was in search of another method to get the position angle of the axis, at least to check out from my part whether I've done a trivial set-up error with the planets and henceforth to avoid definitely such "omega" fundamental, being, by the way, got without using trigonometric series like Celestia's engine does, and therefore is lesser accurate (I'm somewhat sure to have well-converted arcseconds to degrees, at least...). :roll:

EDIT LATER:
"...but if one follows, chase, or syncronize the planetary motion never sees such axial displacement, that is: the geographic pole which "slide" about from where is the body axis." Read: the Moon's axis should moves like the velocity vector, making a circle and the Moon with it.
Never at rest.
Massimo

Avatar
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Ephemerides 1.0 beta released

Post #23by Fenerit » 17.02.2013, 19:20

Correction: "omega" is the longitude of the ascending node :x
Never at rest.
Massimo

Avatar
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Ephemerides 1.0 beta released

Post #24by Fenerit » 02.03.2013, 01:32

A noob question...

Is there a standard IAU paper in which are described the maximum and minimum arcseconds values for planetary moon's visibility typologies like reported in the JPL HORIZONS ephemerides?
Non-lunar natural satellite visibility codes (limb-to-limb):
/t = Transitting primary body disk, /O = Occulted by primary body disk,
/p = Partial umbral eclipse, /P = Occulted partial umbral eclipse,
/u = Total umbral eclipse, /U = Occulted total umbral eclipse,
/- = Target is the primary body, /* = None of above ("free and clear")

I've got from Celestia all the required parameters to find that (ang-sep, Y-Dec, planet'/moon apparent diameters and vectors lenght), just the arcsec ranges does lack to me. I could retrieve them through a mean of JPL tabulated values, but it should be empirical; maybe there is already a standardization...
Never at rest.
Massimo

Avatar
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Ephemerides 1.0 beta released

Post #25by Fenerit » 12.03.2013, 01:21

Ok... Then I've adopted 4 cases only: before, behind, before (transit), behind (occulted).

io.jpg


Aborted project to add delta/deltadot; the LT travel delay doesn't seem callable via CELX/LUA and the "delta" is inthere
Never at rest.
Massimo


Return to “Add-on releases”