public class Star
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
protected double |
xdd
Recalculated for different star charts.
|
protected double |
zdd
Recalculated for different star charts.
|
Constructor and Description |
---|
Star()
Set the fields individually after construction, if you really must.
|
Star(java.lang.String commonId,
java.lang.String hipparcosId,
java.lang.String tychoId,
RA ra,
Dec dec,
Epoch epoch,
Magnitude magnitude,
Variability variability)
Generally two of the ids passed in will be expected to be null; they may
get set after construction.
|
Star(java.lang.String commonId,
java.lang.String hipparcosId,
java.lang.String tychoId,
RA ra,
Dec dec,
Epoch epoch,
Magnitude magnitude,
Variability variability,
double xdd,
double zdd)
Generally two of the ids passed in will be expected to be null.
|
Star(java.lang.String commonId,
java.lang.String hipparcosId,
java.lang.String tychoId,
RA ra,
Dec dec,
Epoch epoch,
Magnitude magnitude,
Variability variability,
ProperMotion pm)
Generally two of the ids passed in will be expected to be null; they may
get set after construction.
|
Star(java.lang.String commonId,
java.lang.String hipparcosId,
java.lang.String tychoId,
RA ra,
Dec dec,
Epoch epoch,
Magnitude magnitude,
Variability variability,
ProperMotion pm,
double xdd,
double zdd)
Generally two of the ids passed in will be expected to be null.
|
Modifier and Type | Method and Description |
---|---|
void |
addMagnitude(Magnitude m)
Add another magnitude for this star.
|
protected MeasuredValue |
calibrateImage(java.util.List<BlobMeas> refBlobs)
Uses known celestial coordinates of refBlobs (from a StarChart: every
BlobMeas must have a Star) to return scale factor in degrees per pixel.
|
void |
changeEpoch(Epoch newEquinox,
JulianDate newEpoch)
This adjusts the fields of the current object to the given new
equinox (eg, J2000) and epoch (eg, JD now) by first applying proper
motion for the new epoch and then calling SkyPoint.changeEpoch (equinox)
on the resulting position.
|
Star |
clone()
Returns a new Star object with the same data.
|
boolean |
equals(java.lang.Object other)
Does not involve the fields xdd and zdd because a given star may be
plotted in different positions on different StarCharts.
|
protected SkyPoint |
estimatePlateCentre(java.util.List<BlobMeas> refBlobs,
Image image,
Epoch epoch,
MeasuredValue degreesPerPixel) |
java.lang.String |
getCommonId()
Comprising the constellation abbreviation and Flamsteed number
and/or Bayer letter (only brightest stars have these).
|
java.lang.String |
getHipparcosId() |
java.lang.String |
getId()
If the star has a commonId return that; otherwise if it has a
hipparcosId return that; otherwise if it has a tychoId return that;
otherwise if it has an otherId return that; otherwise return an
empty string.
|
Magnitude |
getMagnitude()
Get the "principal" magnitude.
|
Magnitude |
getMagnitude(java.lang.String bandId)
Get the magnitude with given band id, or null if not found.
|
java.util.List<Magnitude> |
getMagnitudes()
Get the list of magnitudes
|
java.lang.String |
getOtherId() |
java.awt.Point |
getPlotPoint() |
SkyPoint |
getPosition()
If the star's position is unknown this returns null.
|
ProperMotion |
getProperMotion()
If the star's proper motion is unknown this returns a ProperMotion
object in which both components are zero.
|
java.lang.String |
getTychoId() |
java.lang.String |
getTypeOfStellarObject() |
Variability |
getVariability()
If the star's variability is unknown this returns null,
not a special value.
|
int |
hashCode()
Enable objects of this class to be used as hash keys.
|
SkyPoint |
measurePosition(ImFrame parentFrame,
BlobMeasList measList)
If this star has unknown position (RA/Dec), do astrometry using the known
reference stars in the given MeasList.
|
void |
setCommonId(java.lang.String id) |
void |
setHipparcosId(java.lang.String id) |
void |
setMagnitude(Magnitude m)
For entering a manual magnitude value to replace all others (as in
BlobMenu).
|
void |
setOtherId(java.lang.String id)
For user-entered reference of their own devising.
|
void |
setPlotPoint(java.awt.Point pt)
Set by StarChart when first plotting the star.
|
void |
setPosition(SkyPoint pt) |
void |
setProperMotion(ProperMotion pm) |
void |
setTychoId(java.lang.String id) |
void |
setTypeOfStellarObject(java.lang.String type)
Some data sources will provide some kind of description to be set here.
|
void |
setVariability(Variability v) |
java.lang.String |
toFoldedString()
More detailed and more suitable for display to the user - reasonably
formatted multi-line text, using "\n" as the line feed character.
|
java.lang.String |
toFoldedString(java.lang.String lineFeed)
The lineFeed might be "\n" or "
" etc. |
java.lang.String |
toString()
Simplified summary
|
java.lang.StringBuffer |
toXML(java.lang.String indent)
The indent string would typically contain some tab characters (\t).
|
public static final long serialVersionUID
protected transient double xdd
protected transient double zdd
public Star(java.lang.String commonId, java.lang.String hipparcosId, java.lang.String tychoId, RA ra, Dec dec, Epoch epoch, Magnitude magnitude, Variability variability)
public Star(java.lang.String commonId, java.lang.String hipparcosId, java.lang.String tychoId, RA ra, Dec dec, Epoch epoch, Magnitude magnitude, Variability variability, double xdd, double zdd)
public Star(java.lang.String commonId, java.lang.String hipparcosId, java.lang.String tychoId, RA ra, Dec dec, Epoch epoch, Magnitude magnitude, Variability variability, ProperMotion pm)
public Star(java.lang.String commonId, java.lang.String hipparcosId, java.lang.String tychoId, RA ra, Dec dec, Epoch epoch, Magnitude magnitude, Variability variability, ProperMotion pm, double xdd, double zdd)
public Star()
public java.lang.String getId()
public java.lang.String getCommonId()
public void setCommonId(java.lang.String id)
public java.lang.String getHipparcosId()
public void setHipparcosId(java.lang.String id)
public java.lang.String getTychoId()
public void setTychoId(java.lang.String id)
public java.lang.String getOtherId()
public void setOtherId(java.lang.String id)
public java.lang.String getTypeOfStellarObject()
public void setTypeOfStellarObject(java.lang.String type)
public SkyPoint getPosition()
public void setPosition(SkyPoint pt)
public java.util.List<Magnitude> getMagnitudes()
public void addMagnitude(Magnitude m)
public void setMagnitude(Magnitude m)
public Magnitude getMagnitude()
public Magnitude getMagnitude(java.lang.String bandId)
public Variability getVariability()
public void setVariability(Variability v)
public ProperMotion getProperMotion()
public void setProperMotion(ProperMotion pm)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Star clone()
clone
in class java.lang.Object
public void changeEpoch(Epoch newEquinox, JulianDate newEpoch)
public SkyPoint measurePosition(ImFrame parentFrame, BlobMeasList measList)
protected SkyPoint estimatePlateCentre(java.util.List<BlobMeas> refBlobs, Image image, Epoch epoch, MeasuredValue degreesPerPixel)
protected MeasuredValue calibrateImage(java.util.List<BlobMeas> refBlobs)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toFoldedString()
public java.lang.String toFoldedString(java.lang.String lineFeed)
public java.lang.StringBuffer toXML(java.lang.String indent)
public void setPlotPoint(java.awt.Point pt)
public java.awt.Point getPlotPoint()