|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.adapter.GuiderStar
public class GuiderStar
A simple implementation for Guiding.RawStar, needed for catalog
entries or guider-ccd readouts. The methods getElongation(),
getAngle(), getArea(), getFullWidthHalfMaximum()
getSharpness(), and getSky() are only needed for ccd-image
stars and return dummy entries for catalog entries.
Note: this class has a natural ordering that is inconsistent with equals.
| Nested Class Summary | |
|---|---|
static class |
GuiderStar.Magnitude
Note: This comparator imposes orderings that are inconsistent with equals. |
| Field Summary | |
|---|---|
private double |
angle
The angle of the elongated image. |
private double |
area
The area of the star in a ccd image. |
private Point2D |
center
Center of star on ccd pixel coordinates. |
private double |
elongation
The elongation of the star in a ccd image. |
private static String[] |
FIELDS
Names of field to be set on string consrtuct. |
private double |
fwhm
The fwhm of a star in a ccd image. |
private double |
inst
Estimated instrumental magnitude. |
private double |
sharp
The sharpness of the star in a ccd image. |
private double |
sky
The sky of the star in a ccd image. |
private double |
strip
An estimate for read-out stripes. |
| Constructor Summary | |
|---|---|
GuiderStar(Point2D xy,
double mag)
Constructs a new ccd star specifying parameters known for catalog stars. |
|
GuiderStar(Point2D xy,
double mag,
double sharpness,
double elong,
double theta,
double size,
double skypix,
double ff,
double stripness)
Constructs a new ccd star from an image, giving all parameters. |
|
GuiderStar(String raw)
Constructs a guider star from a string, e.g. |
|
| Method Summary | |
|---|---|
int |
compareTo(Guiding.RawStar that)
Compares two raw stars. |
boolean |
equals(Object other)
Returns true if coordinates and magnitude are the same. |
double |
getAngle()
Returns zero. |
double |
getArea()
Returns the area, zero for catalog entries. |
Point2D |
getCenter()
Returns the central pixel coordinates with double precission. |
double |
getElongation()
Returns one for perfect roundness. |
double |
getFullWidthHalfMaximum()
Returns the full width half maximum, zero for catalog entries. |
double |
getInstrumentalMagnitude()
Returns the estimated instrumental magnitude. |
double |
getSharpness()
Returns 1. |
double |
getSky()
Returns 2^15. |
double |
getStroke()
Returns an estimate of the likelyhood of this raw star to be a readout strip. |
private void |
readObject(ObjectInputStream stream)
Deprecated. Since Java 6, Point2D.Double is serializable |
String |
toFullString()
Prints the coordinates and the magnitude, separated by spaces. |
String |
toString()
Prints the coordinates and the magnitude, separated by spaces. |
private void |
writeObject(ObjectOutputStream stream)
Deprecated. Since Java 6, Point2D.Double is serializable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final String[] FIELDS
private transient Point2D center
private double inst
private double elongation
private double angle
private double sharp
private double area
private double sky
private double fwhm
private double strip
| Constructor Detail |
|---|
public GuiderStar(Point2D xy,
double mag)
public GuiderStar(Point2D xy,
double mag,
double sharpness,
double elong,
double theta,
double size,
double skypix,
double ff,
double stripness)
public GuiderStar(String raw)
FIELDS.
| Method Detail |
|---|
public Point2D getCenter()
getCenter in interface Guiding.RawStarpublic double getElongation()
getElongation in interface Guiding.RawStarpublic double getAngle()
getAngle in interface Guiding.RawStarpublic double getSharpness()
getSharpness in interface Guiding.RawStarpublic double getSky()
getSky in interface Guiding.RawStarpublic double getArea()
getArea in interface Guiding.RawStarpublic double getStroke()
getStroke in interface Guiding.RawStarpublic double getFullWidthHalfMaximum()
getFullWidthHalfMaximum in interface Guiding.RawStarpublic double getInstrumentalMagnitude()
getInstrumentalMagnitude in interface Guiding.RawStarpublic String toString()
toString in class Objectpublic String toFullString()
public boolean equals(Object other)
equals in class Objectpublic int compareTo(Guiding.RawStar that)
compareTo in interface Comparable<Guiding.RawStar>
private void writeObject(ObjectOutputStream stream)
throws IOException
Point2D is strangely not serializable.
IOException
private void readObject(ObjectInputStream stream)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||