edu.pdx.starview.data
Class SVStar
java.lang.Object
edu.pdx.starview.imaging.SVSkyObject
edu.pdx.starview.data.SVStar
- public class SVStar
- extends SVSkyObject
This is a general purpose star object that can store any and all information
of interest from a star catalog, as well as due calcuations about it self for
apparent location at a particular place on earth, at a particular time.
- Author:
- Dave Camarillo
modified by Richard Rodriguez - add methods getCatalogDec(), getCatalogRA(), getMagnitude()
Field Summary |
double |
mag
Visual brightness in [mag] |
Constructor Summary |
SVStar(SVAngle theRA_Cat,
SVAngle theMu_RA,
SVAngle theDec_Cat,
SVAngle theMu_Dec,
double theMag,
java.lang.String theName,
double CatEquinox,
double CatEpoch)
Constructor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mag
public double mag
- Visual brightness in [mag]
SVStar
public SVStar(SVAngle theRA_Cat,
SVAngle theMu_RA,
SVAngle theDec_Cat,
SVAngle theMu_Dec,
double theMag,
java.lang.String theName,
double CatEquinox,
double CatEpoch)
- Constructor
- Parameters:
theRA_Cat
- Catalog Right AscentiontheMu_RA
- Catalog proper motion of right ascention in [angle chang/cy]theDec_Cat
- Catalog declenationtheMu_Dec
- Catalog proper motion of declination in [angle change/cy]theMag
- Magnitude of startheName
- Name of starCatEquinox
- Equinox of RA/Dec in catalog (i.e. B1950 or J2000)CatEpoch
- Epoch of RA/Dec in catalog (i.e. B1950 or J2000)
getRAFixProperMotion
public double getRAFixProperMotion()
- Returns:
- The right ascention with corrections for propermotion applied
based on the "current" epoch.
getDecFixProperMotion
public double getDecFixProperMotion()
- Returns:
- The declination with corrections for propermotion applied based
on the "current" epoch.
getApparentAzAlt
public SVAzAlt getApparentAzAlt(SVTime theTime,
SVAngle latitude,
SVAngle longitude)
throws java.lang.Exception
- Calculate apparent place of star
For our telescope... The telescope MainView is 1/2degree (30 arc seconds)
The view finder is 2 degrees of view
- Returns:
- The apparent altitude ans azimuth with nutition and aberation
compensated for.
- Throws:
java.lang.Exception
- If somthing bad happens.
toString
public java.lang.String toString()
- Returns:
- A pretty version of all the data in the star object for easy
display on terminal.
getCatalogRA
public double getCatalogRA()
- Returns:
- The catalog Right Ascension in radians
getCatalogDec
public double getCatalogDec()
- Returns:
- The catalog Declination in radians
getMagnitude
public double getMagnitude()
- Returns:
- The magnitude of the Star
getSize
public int getSize()
- Overrides:
getSize
in class SVSkyObject
- Returns:
- The size of the point to be displayed
getColor
public java.awt.Color getColor()
- Overrides:
getColor
in class SVSkyObject
- Returns:
- The color of the point to be displayed.