Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed at testPositions (RaDecTest.java) #17

Open
GoogleCodeExporter opened this issue Aug 2, 2015 · 2 comments
Open

Assertion failed at testPositions (RaDecTest.java) #17

GoogleCodeExporter opened this issue Aug 2, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

When running tests, both on Eclipse or on terminal, the testPositions test at 
RaDecTest.java yields an AssertionFailedError.

Here's the trace:
junit.framework.AssertionFailedError: expected:<173.25> but 
was:<172.99676513671875>
at 
com.google.android.stardroid.test.units.RaDecTest.testPositions(RaDecTest.java:7
7)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at 
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:52
0)
at 
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447)

I tried to correct it, but I can't understand what the problem really is, since 
it is related to the planet's position.

Thanks for your help!


Original issue reported on code.google.com by [email protected] on 24 Apr 2013 at 10:11

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

HeliocentricCoordinates seems to use Planet.getOrbitalElements to compute 
astrometric positions for epoch J2000.0, but RaDecTest expects apparent 
positions (accounting for precession etc.) for the given date. In 2009 the 
astrometric and apparent RA differ by about 0.12 deg according to JPL HORIZONS. 
With their approximation formulas for 1800-2050, JPL also estimates an error of 
0.17 deg in Saturn's RA. No wonder this assertion failed.

I suppose RaDecTest should use astrometric reference positions. I didn't find 
code in app/src to compute precession etc.

Original comment by mgarraha on 4 May 2013 at 11:17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant