diff options
author | David A. Madore <david+git@madore.org> | 2012-04-17 21:09:36 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2012-04-17 21:09:36 +0200 |
commit | 12ab2221611336f6d209d643574fdc2d2b1fac16 (patch) | |
tree | e8c177bab281602e14494c3ad725e1bfa18a3066 /org/madore/ephem/Ephem.java | |
parent | 5f00eb3230d89f98d93c6e5bc8ecfa72e4e89b07 (diff) | |
download | ephem-12ab2221611336f6d209d643574fdc2d2b1fac16.tar.gz ephem-12ab2221611336f6d209d643574fdc2d2b1fac16.tar.bz2 ephem-12ab2221611336f6d209d643574fdc2d2b1fac16.zip |
Various small fixes + add a simple test (computing solar coordinates).
Diffstat (limited to 'org/madore/ephem/Ephem.java')
-rw-r--r-- | org/madore/ephem/Ephem.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org/madore/ephem/Ephem.java b/org/madore/ephem/Ephem.java index 380835c..4afbc09 100644 --- a/org/madore/ephem/Ephem.java +++ b/org/madore/ephem/Ephem.java @@ -2,9 +2,11 @@ package org.madore.ephem; public final class Ephem { - public static double fromJD(double jd) { + public static double fromJd(double jd) { // Convert Julian date to Julian centuries from J2000 return (jd-2451545)/36525; } + public static final double auSeconds = 499.0047838362; // TDB seconds! + } |