public class Astro extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Astro.Distance
Prints out the distance between two points.
|
static class |
Astro.HeliacalRise
Prints the date when the sun rises with the target in Germany.
|
static class |
Astro.Jd
Prints out current jd or, if a parameter is given, the jd of the date
given in the first argument.
|
static class |
Astro.Mjd
Prints out current jd or, if a parameter is given, the jd of the date
given in the first argument.
|
| Modifier and Type | Field and Description |
|---|---|
static double |
ACCURACY |
static char |
ARCMIN
Char for arcminutes.
|
static char |
ARCSEC
Char for arcseconds.
|
static double |
AU |
static double |
C |
static double |
COSEKL
The cosine of the inclination of the eclitic.
|
static double |
EKL
Inclination of ecliptic in radians.
|
static double |
JULIANCENTURY
The number of days in a julian century.
|
private static DateFormat[] |
KNOWN
A mixture of different date parsers.
|
static double |
MS100YEAR
The number of ms in 100 years.
|
static double |
MS1DAY
The number of ms in a day.
|
static double |
MSYEAR
The number of ms in 100 years.
|
static DateFormat |
PARSE
Default date parser.
|
static double |
RFLUX
Photon flux above atmosphere in R per 1m diameter (circular) per sec.
|
static double |
SIDEREALYEAR
The number of days in one sidereal year.
|
static double |
SIDSOL
Conversion factor from sidereal time to solar time.
|
static double |
SINEKL
The sine of the inclination of the eclitic.
|
static double |
SOL_TO_SID
Conversion factor from solar time to sidereal time.
|
static double |
TROPICALYEAR
The number of days in one tropical year.
|
static double |
VFLUX
Photon flux above atmosphere in V per 1m diameter (circular) per sec.
|
static long |
Y2000
The ms from 1970 to 2000, ie the timestamp of year 2000.
|
| Constructor and Description |
|---|
Astro() |
| Modifier and Type | Method and Description |
|---|---|
static String |
americanDate(double jd)
Converts the julian date into a Date String following the American
locale.
|
static Date |
culminatesWhen(double ra)
Returns the date at which the target culminated at local midnight in the
year 2000.
|
static double |
culminatesWith(double de,
double phi)
Calculates the culmination height of a target given the declination and
longitude.
|
static double |
distance(Position p1,
Position p2)
Calcualtes the distance of two sky positions, given by their ra and dec.
|
static Date |
heliacalRise(double ra,
double de,
double lat,
double h,
double solh)
Given a right ascension and a declination of the target, this method
calculates the date when the object first reaches the target height for
the given solar elevation.
|
static Date |
heliacalRise(double ra,
double de,
double lat,
double h,
double solh,
double sec)
Given a right ascension and a declination of the target, this method
calculates the date when the object first reaches its target height at
least the stated number of seconds before the sun rises to the given
solar elevation.
|
static Date |
heliacalSet(double ra,
double de,
double lat,
double h,
double solh)
Given a right ascension and a declination of the target, this method
calculates the date when the object last reaches the target height for
the given solar elevation.
|
static Date |
heliacalSet(double ra,
double de,
double lat,
double h,
double solh,
double sec)
Given a right ascension and a declination of the target, this method
calculates the date when the object last reaches the target height for
the given solar elevation.
|
static double |
JD(Date datum)
Gets the julian date from a Dateobject.
|
static Date |
JD(double jd)
Converts the julian date into a Dateobject.
|
static double |
JD(String datumstring)
Gets the julian date from a date string.
|
static double |
mjd(Date datum)
Gets the modified julian date from a Dateobject.
|
static Date |
mjd(double mjd)
Converts the modified julian date into a Dateobject.
|
static double |
mjd(String datumstring)
Gets the modified julian date from a date string.
|
static double |
overlap(double theta1,
double span1,
double theta2,
double span2)
Given two positions in a 24-h angle and given two half-intervals, this
method returns the overlap.
|
static Date |
riseWithSunRise(double ra,
double de,
double lat)
Returns the date when a specified target at a specified latitude rises
with the sun.
|
static Date |
riseWithSunSet(double ra,
double de,
double lat)
Returns the date when a specified target at a specified latitude rises
with the sun.
|
static Date |
setWithSunRise(double ra,
double de,
double lat)
Returns the date when a specified target at a specified latitude rises
with the sun.
|
static Date |
setWithSunSet(double ra,
double de,
double lat)
Returns the date when a specified target at a specified latitude rises
with the sun.
|
static double |
tjd(Date datum)
Gets the truncated julian date from a Dateobject.
|
static Date |
tjd(double tjd)
Converts the modified julian date into a Dateobject.
|
static double |
toLT(double jd,
Location site)
Converts a julian date to the local time.
|
private static Date |
tryParse(String datumstring)
We try various date parser and return the first successful one.
|
static double |
visibleFor(double de,
double phi,
double h)
Returns the time a target is visible in seconds.
|
public static final double EKL
public static final double SINEKL
public static final double COSEKL
public static final double MS1DAY
public static final double MSYEAR
public static final double MS100YEAR
public static final long Y2000
public static final double JULIANCENTURY
public static final double SIDEREALYEAR
public static final double TROPICALYEAR
public static final double SOL_TO_SID
public static final double SIDSOL
public static final double AU
public static final double C
public static final double VFLUX
public static final double RFLUX
public static final double ACCURACY
public static final char ARCSEC
public static final char ARCMIN
public static final DateFormat PARSE
private static final DateFormat[] KNOWN
public static double JD(String datumstring)
datumstring - The date as a stringpublic static double mjd(String datumstring)
datumstring - The date as a stringprivate static Date tryParse(String datumstring)
public static double JD(Date datum)
datum - The Date objectpublic static double mjd(Date datum)
datum - The Date objectpublic static Date mjd(double mjd)
mjd - The modified julian date as a double.public static double tjd(Date datum)
datum - The Date objectpublic static Date tjd(double tjd)
mjd - The modified julian date as a double.public static Date JD(double jd)
jd - The julian date as a double.public static String americanDate(double jd)
jd - The julian date as a double.public static double toLT(double jd,
Location site)
jd - The julian date (UT0).site - The location of the observerpublic static double culminatesWith(double de,
double phi)
de - Declination in degrees.phi - Latitude in degrees.public static double visibleFor(double de,
double phi,
double h)
de - Declination in degrees.phi - Latitude in degrees.public static Date culminatesWhen(double ra)
ra - Right ascension in degrees.public static Date riseWithSunRise(double ra, double de, double lat)
ra - Right ascension of target in degrees.de - Declination of target in degrees.lat - Latitude of location in degrees.public static Date riseWithSunSet(double ra, double de, double lat)
ra - Right ascension of target in degrees.de - Declination of target in degrees.lat - Latitude of location in degrees.public static Date setWithSunRise(double ra, double de, double lat)
ra - Right ascension of target in degrees.de - Declination of target in degrees.lat - Latitude of location in degrees.public static Date setWithSunSet(double ra, double de, double lat)
ra - Right ascension of target in degrees.de - Declination of target in degrees.lat - Latitude of location in degrees.public static double overlap(double theta1,
double span1,
double theta2,
double span2)
theta1 - First (sidereal) time, any intervallspan1 - First half span, i.e. from theta1-span1 to theta1+span1theta2 - Second (sidereal) time, any intervallspan2 - Second half spanpublic static Date heliacalRise(double ra, double de, double lat, double h, double solh)
riseWithSunRise(double, double, double).public static Date heliacalRise(double ra, double de, double lat, double h, double solh, double sec)
riseWithSunRise(double, double, double).public static Date heliacalSet(double ra, double de, double lat, double h, double solh)
setWithSunSet(double, double, double).public static Date heliacalSet(double ra, double de, double lat, double h, double solh, double sec)
setWithSunSet(double, double, double).