public class Glint extends Object implements Serializable, Cloneable, Comparable<Glint>
| Modifier and Type | Field and Description |
|---|---|
private Point2D |
center
Location on the CCD where star was detected.
|
private boolean |
detector
Detector coordinates or read-out coordinates.
|
private double |
mag
Instrumental magnitude, decimal logarithm time 2.5 of flux.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
Glint(Point2D c,
boolean offset,
double m) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Glint that)
Compares two raw stars.
|
boolean |
equals(Object other)
Returns true if coordinates and magnitude are the same.
|
Point2D |
getCenter()
Returns the pixel coordinates of the star center.
|
double |
getInstrumentalMagnitude()
Returns the instrumental magnitude, a logarithmic measure of the
brightness.
|
boolean |
isDetectorPosition()
If true, the position of the center is in unbinned and offsetted position
rather than readout.
|
String |
magnitudeString()
Prints the magnitude.
|
String |
positionString()
Prints the coordinates, separated by a single space
|
private void |
readObject(ObjectInputStream stream)
On deserialization, first read the hidden object definitions, then the
Position of the center.
|
String |
toString()
Prints the coordinates in brackets followed by the magnitude, separated
by spaces.
|
private void |
writeObject(ObjectOutputStream stream)
We customize object serialization.
|
private static final long serialVersionUID
private transient Point2D center
private final boolean detector
private final double mag
public Glint(Point2D c, boolean offset, double m)
public Point2D getCenter()
Point2D object to support non-integer positions.public boolean isDetectorPosition()
public double getInstrumentalMagnitude()
public String toString()
public String positionString()
public String magnitudeString()
public boolean equals(Object other)
public int compareTo(Glint that)
compareTo in interface Comparable<Glint>private void writeObject(ObjectOutputStream stream) throws IOException
Point2D is strangely not serializable.IOExceptionprivate void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundException