public class ASTCoord
extends java.lang.Object
Copyright (c) 2018
Constructor and Description |
---|
ASTCoord()
Create an instance with the given angles
This method is overloaded.
|
ASTCoord(double ang1,
double ang2)
Create an instance with the given angles
This method is overloaded.
|
ASTCoord(double ang1,
double ang2,
double ang3)
Create an instance with the given angles
This method is overloaded.
|
Modifier and Type | Method and Description |
---|---|
static double |
calcEclipticObliquity(double Epoch)
Calculate the obliquity of the ecliptic for a given epoch
|
static ASTCoord |
CartesianToSpherical(double x,
double y,
double z)
Convert Cartesian coordinates to spherical coordinates.
|
static ASTCoord |
EclipticToEquatorial(double EclLat,
double EclLon,
double Epoch)
Convert ecliptic coordinates to equatorial coordinates.
|
ASTAngle |
getAltAngle()
Get the altitude angle for this coordinate.
|
ASTAngle |
getAngle1()
Get the first angle of this coordinate.
|
ASTAngle |
getAngle2()
Get the 2nd angle of this coordinate.
|
ASTAngle |
getAngle3()
Get the 3rd angle of this coordinate.
|
ASTAngle |
getAzAngle()
Get the azimuth angle for this coordinate.
|
ASTAngle |
getCartX()
Get the x Cartesian coordinate.
|
ASTAngle |
getCartY()
Get the y Cartesian coordinate.
|
ASTAngle |
getCartZ()
Get the z Cartesian coordinate.
|
ASTAngle |
getDeclAngle()
Get the declination for this coordinate.
|
ASTTime |
getHAAngle()
Get the hour angle for this coordinate.
|
ASTAngle |
getLatAngle()
Get the latitude angle for this coordinate.
|
ASTAngle |
getLonAngle()
Get the longitude angle for this coordinate.
|
ASTTime |
getRAAngle()
Get the right ascension angle for this coordinate.
|
ASTAngle |
getSpherAlpha()
Get the alpha angle for a spherical coordinate.
|
ASTAngle |
getSpherPhi()
Get the phi angle for a spherical coordinate.
|
ASTAngle |
getSpherR()
Get the radius for a spherical coordinate.
|
static ASTCoord |
HADecltoHorizon(double HA,
double Decl,
double Lat)
Convert an equatorial coordinate expressed an hour angle
and declination to a horizon coordinate.
|
static double |
HAtoRA(double HA,
double LST)
Convert Hour Angle to Right Ascension
|
static ASTCoord |
HorizontoHADecl(double Alt,
double Az,
double Lat)
Convert a horizon coordinate to an equatorial coordinate
expressed as an hour angle (in hours) and declination.
|
static ASTCoord |
HorizontoRADecl(double Alt,
double Az,
double Lat,
double LST)
Convert a horizon coordinate to right ascension and declination.
|
static ASTCoord |
Keplerian2Topo(ASTObserver obs,
double h_sea,
boolean DST,
ASTDate epochDate,
double epochUT,
double inclin,
double ecc,
double axis,
double RAAN,
double argofperi,
double M0,
double MMotion,
ASTKepler.TrueAnomalyType solveKepler,
double termCriteria)
Convert satellite Keplerian elements to topocentric coordinates.
|
static ASTCoord |
Keplerian2Topo(int iStp,
ASTObserver obs,
double h_sea,
boolean DST,
ASTDate epochDate,
double epochUT,
double inclin,
double ecc,
double axis,
double RAAN,
double argofperi,
double M0,
double MMotion,
ASTKepler.TrueAnomalyType solveKepler,
double termCriteria,
ASTPrt prt)
Convert satellite Keplerian elements to topocentric coordinates.
|
static ASTCoord |
PrecessEqCoord(double RAIn,
double DeclIn,
double EpochIn,
double EpochTo)
Compute a precession correction
|
static ASTCoord |
RADecltoHorizon(double RA,
double Decl,
double Lat,
double LST)
Convert an equatorial coordinate expressed as right ascension
and declination to a horizon coordinate.
|
static double |
RAtoHA(double RA,
double LST)
Convert Right Ascension to Hour Angle
|
void |
setAngle1(double angle)
Set angle 1 for this coordinate.
|
void |
setAngle2(double angle)
Set angle 2 for this coordinate.
|
void |
setAngle3(double angle)
Set angle 3 for this coordinate.
|
void |
setTime1(double tme)
Set the time (hour angle) for this object.
|
static ASTCoord |
SphericalToCartesian(double r,
double alpha,
double phi)
Convert spherical coordinates to Cartesian coordinates.
|
public ASTCoord()
public ASTCoord(double ang1, double ang2)
ang1
- value for 1st angleang2
- value for 2nd anglepublic ASTCoord(double ang1, double ang2, double ang3)
ang1
- value for 1st angleang2
- value for 2nd angleang3
- value for 3rd anglepublic ASTAngle getAngle1()
public ASTAngle getAngle2()
public ASTAngle getAngle3()
public ASTAngle getAltAngle()
public ASTAngle getAzAngle()
public ASTAngle getLatAngle()
public ASTAngle getLonAngle()
public ASTTime getRAAngle()
public ASTTime getHAAngle()
public ASTAngle getDeclAngle()
public ASTAngle getCartX()
public ASTAngle getCartY()
public ASTAngle getCartZ()
public ASTAngle getSpherR()
public ASTAngle getSpherAlpha()
public ASTAngle getSpherPhi()
public void setAngle1(double angle)
angle
- angle to which angle 1 is to be setpublic void setAngle2(double angle)
angle
- angle to which angle 2 is to be setpublic void setAngle3(double angle)
angle
- angle to which angle 3 is to be setpublic void setTime1(double tme)
tme
- hour angle for this objectpublic static double calcEclipticObliquity(double Epoch)
Epoch
- epoch for which obliquity is desiredpublic static ASTCoord CartesianToSpherical(double x, double y, double z)
x
- x Cartesian coordinatey
- y Cartesian coordinatez
- z Cartesian coordinatepublic static ASTCoord EclipticToEquatorial(double EclLat, double EclLon, double Epoch)
EclLat
- ecliptic latitudeEclLon
- ecliptic longitudeEpoch
- epoch coordinates are inpublic static ASTCoord HADecltoHorizon(double HA, double Decl, double Lat)
HA
- hour angle (in hours)Decl
- declination in degreesLat
- observer latitudepublic static double HAtoRA(double HA, double LST)
HA
- hour angle (in hours)LST
- LST for the observerpublic static ASTCoord HorizontoHADecl(double Alt, double Az, double Lat)
Alt
- altitudeAz
- azimuthLat
- observer latitudepublic static ASTCoord HorizontoRADecl(double Alt, double Az, double Lat, double LST)
Alt
- altitude in degreesAz
- azimuth in degreesLat
- observer latitudeLST
- sidereal time for observerpublic static ASTCoord Keplerian2Topo(ASTObserver obs, double h_sea, boolean DST, ASTDate epochDate, double epochUT, double inclin, double ecc, double axis, double RAAN, double argofperi, double M0, double MMotion, ASTKepler.TrueAnomalyType solveKepler, double termCriteria)
obs
- observer object w/date and LCTh_sea
- observer's height above sea level (meters)DST
- true if on Daylight Saving TimeepochDate
- calendar date for the epochepochUT
- UT time for the epochinclin
- orbital inclinationecc
- orbital eccentricityaxis
- orbital semi-major axisRAAN
- orbital RAANargofperi
- orbital argument of perigeeM0
- orbital mean anomalyMMotion
- orbital mean motionsolveKepler
- what method to use to solve Kepler's equationtermCriteria
- termination criteria for stopping iteration to
solve Kepler's equationpublic static ASTCoord Keplerian2Topo(int iStp, ASTObserver obs, double h_sea, boolean DST, ASTDate epochDate, double epochUT, double inclin, double ecc, double axis, double RAAN, double argofperi, double M0, double MMotion, ASTKepler.TrueAnomalyType solveKepler, double termCriteria, ASTPrt prt)
iStp
- starting step for printing resultsobs
- observer object w/date and LCTh_sea
- observer's height above sea level (meters)DST
- true if on Daylight Saving TimeepochDate
- calendar date for the epochepochUT
- UT time for the epochinclin
- orbital inclinationecc
- orbital eccentricityaxis
- orbital semi-major axisRAAN
- orbital RAANargofperi
- orbital argument of perigeeM0
- orbital mean anomalyMMotion
- orbital mean motionsolveKepler
- what method to use to solve Kepler's equationtermCriteria
- termination criteria for stopping iteration to
solve Kepler's equationprt
- window for displaying intermediate
results. If null, no intermediate
results are displayed.public static ASTCoord PrecessEqCoord(double RAIn, double DeclIn, double EpochIn, double EpochTo)
RAIn
- Right Ascension in hours for EpochInDeclIn
- Declination in degrees for EpochOutEpochIn
- Epoch that RAIn/DeclIn is given inEpochTo
- Epoch to convert topublic static ASTCoord RADecltoHorizon(double RA, double Decl, double Lat, double LST)
RA
- right ascension (in hours)Decl
- declination in degreesLat
- observer latitudeLST
- sidereal time for observerpublic static double RAtoHA(double RA, double LST)
RA
- right ascension (in hours)LST
- LST for the observerpublic static ASTCoord SphericalToCartesian(double r, double alpha, double phi)
r
- radius for the spherical coordinatealpha
- alpha angle for the spherical coordinatephi
- phi angle for the spherical coordinate