Tuesday, February 16, 2016
Keplerian Elements From Ptolemy's Anomaly for the Sun
Ptolemy gave a table of the Sun's anomaly that was accurate to about 1 arc minute in his Almagest along with other data from which we can make an estimate of the Sun's "orbit."
We start with a figure of the equinoxes and solstices and the positions of perigee and apogee in the plane of the ecliptic. In Toomer, Ptolemy's Almagest, p. 153, Ptolemy states that the apogee was 24.5° in advance of the summer solstice which would place it at Gem 5.5° in his twelve 30° divisions of the ecliptic measured from the vernal equinox. Similarly the perigee is at Sag 5.5°.
The positions of perigee and apogee were determined by the nonuniform rate of motion of the Sun being slowest at apogee and fastest at perigee. He also gives Hipparchus' values for the time it took to go from the vernal equinox to the summer solstice (94½ days) and the time to go from the summer solstice to the autumnal equinox (92½ days). He says that his observations gave similar values and from a fit of his anomaly we see that this is so.
The time it takes to traverse a quadrant is greatest for the quadrant containing the apogee and least in the quadrant containing perigee. The value for λ0 was chosen so that the autumnal equinox occurs at 132 Sep 25 2pm. Ptolemy's anomaly only has sin terms in it and is accurate to about 1 arc minute as the residuals for the fit show.
We can use Ptolemy's ecliptic longitude to compute an "orbit" for the Sun in the same way that we did using the longitude obtained with the MICA data. The epoch chosen was the beginning of the year, 132 Jan 1, noon, and we can use the the longitude to estimate the angle and time of perigee, then calculate the true anomaly, ν, at intervals of one day.
Using the linear relation between the cosine of ν and the square root of its rate of change we can estimate σ and τ which in turn allows us to estimate the eccentricity, e, and the other Keplerian elements. The residuals for fit of the formula are a few minutes of arc.
One can find Ptolemy's value for obliquity of the ecliptic on p. 63 of Toomer's book. The summary of the estimated Keplerian elements is as follows.
Most of the changes in orientation of the elliptical orbit are due to the rotation of the equatorial reference frame in the plane of the ecliptic. One would expect some of the difference in the value for the eccentricity e to be due to Ptolemy's longitude and the use of an eccentric circle but some of it may be due to perturbations also. The astronomical unit, AU, used here is based on the elliptical orbit for Ptolemy's data but a change in the mean motion would suggest a change in the mean radius since the areal velocity is fairly constant.
edit (Feb 17): Corrected the date and time for the autumnal equinox but the formula assumed for the longitude above proved to be incorrect. See the next blog for more details.
Tuesday, February 9, 2016
What Does Linear Least Squares Do?
The equations for the linear least squares coefficients are derived from the assumption that the sum of the square of the errors is a minimum. This may not be the actual case as the following example shows. The result is slightly biased with the fit line (dotted) being slightly oblique to the true line (solid).
A calculation shows that for the fit the 1st moment of the errors, δ'', is zero while this is untrue for the assumed errors, δ. This result is quite general and can be proven assuming the equations for the fit.
One can also show the unexpected result that the average of the errors is also zero starting from the first of the fit equations.
Both conclusions are due to the original assumption that the sum of the square of the errors is a minimum and may be in conflict with the true values. For random errors the conclusions are approximately true and are not in conflict with the use of linear least squares for an estimate of the coefficients.
Residuals for the Solar Longitude Fit
The residuals for the longitude fit in the last blog have arc second accuracy. Here are the final correction for the longitude fit and resulting residuals.
The periodic sin function present appears to be associated with the Moon orbital motion and can be removed leaving a long term residual.
This may be due to planetary perturbations and/or errors in the fit. The lunar synodic period works quite well with time measured in days. The fit of Sun's motion with the lunar disturbance of the Earth's position added appears to have about 10 arc second accuracy.
Tuesday, February 2, 2016
Finding the Mean Motion by Averaging
One does not have to use least squares to find the mean motion of the Sun along the ecliptic. The 3 years of data for the ecliptic longitude obtained from MICA give a fairly good estimate of the mean motion, n. One can interpolate to find the time it takes to move an integral multiple of 360° then divide to estimate the mean motion.
Using this estimate of the mean motion it's a simple task to find the nonuniform motion.
The longer the interval of time the better the estimate of the mean motion as can be seen in the following plot. Notice that the difference between the successive averages and the original estimate returns to zero at the end of the years.
Judging by Ptolemy's value of the mean motion found in Toomer, Ptolemy's Almagest, p. 140, it hasn't changed much in 2000 years.
Ptolemy's ecliptic longitude was measured from the Vernal Equinox. To find the mean motion in a fixed reference frame like J2000.0 one has to subtract the precession rate of the Equatorial reference frame. A similar numerical value is used to define the astronomical unit (AU) which is the radius of a circular orbit that has this value for its mean motion. The AU is a trifle smaller than the Earth mean distance from the Sun.
Monday, February 1, 2016
A Problem With Least Squares Fits and a Fix
One sometimes encounters a problem when using least squares to find the best fit of a formula to a set of data. A simple example is fitting a line to the Sun's ecliptic longitude as a function of time.
Notice that the nonuniform motion, δ, slopes slightly downward when one would expect just a sinusoidal function. The problem is that least squares warped the error raising it on the left and lowering it on the right to reduce the variance. If one could fit the smaller nonuniform motion first one might avoid the problem but one has to fit the linear portion first to estimate the mean motion, n. What one really wants to do is separate the uniform motion from the nonuniform motion. This can be done by successive residual fits that alternates between finding uniform and nonuniform motion in the residuals. The function correct_α does 10 iterations of this here.
The nonuniform motion is level after the correction and the variance, V, is slightly larger. Here are the programs that were used to do the corrections.
The first function, Δα, fits the nonuniform motion in a set of residuals then uses an new residual to extract some uniform motion from it. The second function, correct_α, repeats this process nitr times.
Wednesday, January 27, 2016
Derivation of the Ellipse Fit Formula
One can derive the linear formula for the angular velocity fit by starting with the first two of Kepler's laws. The constant coefficients can be solved for using linear least squares.
The error that results from fitting the ecliptic longitude with the linear function plus some Fourier terms (δ below) is mainly due to the motion of the Earth about the Earth-Moon barycenter. Using the barycenter as the frame of reference would probably result in less error. The plot covers 3 Julian years and one sees there is a little more than 12 months per year per Julian year.
The coefficients for the λ fit in radians are as follows.
Looking at the error in the computed longitude can see how perturbation theory might have gotten its start.
Determining Orbital Elements From Observations
It has been reported in the news lately that there are hints of the existence of a large but unobserved 9th planet so it might be useful to look at how one can determine an orbit directly from observations. This is not the approach that one usually finds in astronomy books where one goes from orbital elements to positions. The Sun's apparent motion in the heavens is the simplest example and we can try to determine it's motion relative to the Earth. In lieu of observations we can use the positions of the Sun in the geocentric coordinate frame from an astronomical almanac. I used the US Naval Observatory's MICA computer almanac to generate a set of daily positions at noon for the years 2000-2003. These can be expressed as latitude, θ, and longitude, φ.
From these coordinates on can determine the directions of the Sun, er, for the time differences, Δt, from noon on Jan 1, 2000. These directions also allow us find a matrix, P, which will enable us to determine the inclination of the ecliptic, ι, and the ecliptic longitude of the Sun, λ, for given Δt. B is the basis for the coordinates in the ecliptic reference frame. One has to adjust the longitudes computed using the angle function to get the approximate linear increase shown in the plot.
We can separate out the mean motion of the Sun along the ecliptic by fitting a linear function of time plus a simple Fourier series using linear least squares. Since the longitude is not a linear function of the mean daily motion, n, we have to search for a value which minimizes the variance, V. We can then let M be the mean ecliptic longitude which is the linear part of λ.
The nonlinear portion can be used to determine the time and longitude of perigee where the difference between the two longitudes is zero. The longitude of perigee is found by interpolation. The longitude measured from perigee is the true anomaly, ν.
It can be shown that the square root of the time rate of change of the true anomaly is a simple sinusoidal function of the true anomaly. This allows us to use the true anomaly to estimate the eccentricity of the orbit.
To determine the equation for the ellipse in the plane of the orbit and semimajor axis, a, we have to make the assumption that the mean radius of the orbit is 1 AU. The other parameters can be found by using standard formulas in the astronomy books.
The values of the Keplerian elements found compare well with those of the Earth's orbit.
Subscribe to:
Posts (Atom)


























