public class GuiderStar extends Object implements Guiding.RawStar, Comparable<Guiding.RawStar>, Serializable
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.| Modifier and Type | Class and Description |
|---|---|
static class |
GuiderStar.Magnitude
Note: This comparator imposes orderings that are inconsistent with
equals.
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
toNormalString()
Prints the coordinates and the magnitude, separated by spaces.
|
String |
toShortString()
Prints the coordinates and the magnitude, separated by spaces.
|
String |
toString() |
private void |
writeObject(ObjectOutputStream stream)
Deprecated.
Since Java 6, Point2D.Double is serializable
|
private static final String[] FIELDS
private transient Point2D center
private final double inst
private double elongation
private double angle
private double sharp
private double area
private double sky
private double fwhm
private double strip
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 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 toNormalString()
public String toShortString()
public String toFullString()
public boolean equals(Object other)
public int compareTo(Guiding.RawStar that)
compareTo in interface Comparable<Guiding.RawStar>@Deprecated private void writeObject(ObjectOutputStream stream) throws IOException
Point2D is strangely not serializable.IOException@Deprecated private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundException