public class SextractorStar extends SimpleStar
getCcdX() and getCcdY() and a magnitude error. via
getMagErr(). Usually, also the flags are retrievable getFlags()
, the FWHM of the stellar image on the CCD in pixel ($getFwhm), and
the ellipticity of the image getEllipticity().
A helper application that reads sextractor output files and parses them into
a list of StarSextractor is SextractorRead, additional comparators
for sorting are inner classes to this class.
| Modifier and Type | Class and Description |
|---|---|
static class |
SextractorStar.Flag |
static class |
SextractorStar.PixelPosition
Returns a comparator that sorts sextractor stars depending on pixel
distance from a certain central pixel, stated at construct.
|
SimpleStar.Distance, SimpleStar.StarComparator| Modifier and Type | Field and Description |
|---|---|
private Double |
background
The background in ADUs.
|
private Double |
ccdx
The x-pixel coordinate on the CCD.
|
private Double |
ccdy
The y-pixel coordinate on the CCD.
|
static MyDecimalFormat |
ELL |
private Float |
ellipticity
The ellipticity of the star.
|
private Double |
errccdx
The x-pixel coordinate error on the CCD.
|
private Double |
errccdy
The y-pixel coordinate error on the CCD.
|
private Integer |
flags
For memory reasons, the flags are stored as a bitmask.
|
static MyDecimalFormat |
FLAGS |
private Float |
fwhm
The fwhm of the star.
|
static MyDecimalFormat |
FWHM |
static float |
INVALID
Works also with error in ccd coordinates I hope.
|
private Float |
magerr
The magnitude error.
|
static MyDecimalFormat |
MMAG |
private Float |
probability
The star-galaxy probability.
|
static MyDecimalFormat |
PROP |
private static long |
serialVersionUID |
private Float |
theta
The angle of the large-axis to x-axis, degrees, counter-clockwise.
|
static MyDecimalFormat |
THETA |
static MyDecimalFormat |
XY |
DEFCOLOR, DEFID, DEFPROPDEC, DEFPROPRA, HTM, SKYMAG, SOL, UNKNOWN| Constructor and Description |
|---|
SextractorStar()
Constructs a new empty sextractor star.
|
SextractorStar(String name)
Constructs a new sextractor star using a sepcified name.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
addFlag(SextractorStar.Flag f)
Adds an extraction flag.
|
static String |
advancedDescription() |
String |
advancedSex()
Returns the whole information as provided by a sextractor setup including
position errors.
|
String |
daoFind()
Returns the x/y position of the star on the CCD puls the instrumental
magnitude.
|
static String |
fullDescription() |
String |
fullSex()
Returns the whole information as provided by a sextractor setup including
position errors.
|
double |
getBackground() |
double |
getCcdErrX()
Gets the position on the CCD, x coordinate in pixel.
|
double |
getCcdErrY()
Gets the position on the CCD, x coordinate in pixel.
|
double |
getCcdX()
Gets the position on the CCD, x coordinate in pixel.
|
double |
getCcdY()
Gets the position on the CCD, x coordinate in pixel.
|
float |
getEllipticity()
Returns the ellipticity.
|
List<SextractorStar.Flag> |
getFlags()
Gets all the flags.
|
float |
getFwhm()
Gets the pixel fwhm.
|
int |
getIntegerFlags()
Gets the integer flags.
|
float |
getMagErr()
Gets the mag error.
|
Point2D |
getPixelPosition()
Returns the position on the CCD as a point2d object.
|
float |
getProbability()
Returns the star/galaxy probability.
|
float |
getTheta() |
boolean |
isCoordinateValid()
Returns true if coordinates on the CCD are both set.
|
boolean |
isFlagSet(int mask)
Returns true, if any of these flags is set.
|
boolean |
isFlagSet(List<SextractorStar.Flag> mask)
Returns true, if any of these flags is set.
|
boolean |
isInstrumentalValid()
Returns true if coordinates on the CCD are both set and the instrumental
magnitude is1G valid.
|
static boolean |
removeAll(List<SextractorStar> list,
int mask)
Removes all sextractor stars from this list that have one of the
specified flags set.
|
static boolean |
removeAll(List<SextractorStar> list,
List<SextractorStar.Flag> mask)
Removes all sextractor stars from this list that have one of the
specified flags set.
|
static boolean |
retainAll(List<SextractorStar> list,
int mask)
Retains only those stars, which flag is set according to the query
bitmask.
|
static boolean |
retainAll(List<SextractorStar> list,
List<SextractorStar.Flag> mask)
Retains only those stars, which flag is set according to the query
bitmask.
|
Object |
setBackground(double background) |
Object |
setCcdErrX(double xerr)
Sets the CCD position, x.
|
Object |
setCcdErrY(double yerr)
Sets the CCD position, y.
|
Object |
setCcdX(double x)
Sets the CCD position, x.
|
Object |
setCcdY(double y)
Sets the CCD position, y.
|
Object |
setEllipticity(float ell)
Sets the mag error.
|
Object |
setFlags(List<SextractorStar.Flag> f)
Sets a list of flags for this star.
|
Object |
setFwhm(float fwhm)
Sets the pixel fwhm.
|
Object |
setIntegerFlags(int flags)
Sets the extraction flags as an integer bitmask.
|
Object |
setMagErr(float magerr)
Sets the mag error.
|
Object |
setProbability(float p)
Sets the mag error.
|
Object |
setTheta(float theta) |
String |
standardSex()
Returns the whole information as provided by a standard sextractor setup.
|
String |
toString()
Converts the star description name, ra, dec, mag and color into a string.
|
equals, exportIdMap, exportNameMap, fillMissing, get, getColor, getDe, getEpoch, getEquinox, getHtmName, getHtmName, getID, getMag, getMagComparator, getName, getPropDe, getProperty, getPropRa, getRa, getSeparation, getSeparation, getSeparation, getSeparation, getSeparation, isFullyValid, isMarginallyValid, isSexagesimal, isValid, isVeryValid, matches, matches, parseSexagesimal, raDeString, raDeString, raDeString, raDeString, set, setColor, setDe, setEpoch, setEquinox, setID, setMag, setName, setPropDe, setProperty, setPropRa, setRa, sexagesimal, sexagesimal, sexagesimal, sexagesimal, toBasicString, toBasicString, toDegreeString, toDegreeStringprivate static final long serialVersionUID
public static final float INVALID
public static final MyDecimalFormat XY
public static final MyDecimalFormat MMAG
public static final MyDecimalFormat FWHM
public static final MyDecimalFormat THETA
public static final MyDecimalFormat ELL
public static final MyDecimalFormat FLAGS
public static final MyDecimalFormat PROP
private Double ccdx
private Double errccdx
private Double ccdy
private Double errccdy
private Double background
private Float magerr
private Float fwhm
private Float ellipticity
private Float theta
private Float probability
private Integer flags
public SextractorStar()
public SextractorStar(String name)
public Object setCcdErrX(double xerr)
public Object setCcdErrY(double yerr)
public Object setCcdX(double x)
public Object setCcdY(double y)
public Object setBackground(double background)
background - the background to setpublic Object setMagErr(float magerr)
public Object setFwhm(float fwhm)
public Object setEllipticity(float ell)
public Object setTheta(float theta)
theta - the theta to setpublic Object setIntegerFlags(int flags)
public Object setProbability(float p)
public Object addFlag(SextractorStar.Flag f)
public Object setFlags(List<SextractorStar.Flag> f)
public int getIntegerFlags()
public List<SextractorStar.Flag> getFlags()
public boolean isFlagSet(List<SextractorStar.Flag> mask)
public boolean isFlagSet(int mask)
public Point2D getPixelPosition()
public double getCcdX()
public double getCcdY()
public double getCcdErrX()
public double getCcdErrY()
public double getBackground()
public float getMagErr()
public float getFwhm()
public float getEllipticity()
public float getTheta()
public float getProbability()
public boolean isCoordinateValid()
public boolean isInstrumentalValid()
public String toString()
SimpleStartoString in class SimpleStarpublic String daoFind()
public String standardSex()
public String advancedSex()
public static String advancedDescription()
public String fullSex()
public static String fullDescription()
public static boolean removeAll(List<SextractorStar> list, List<SextractorStar.Flag> mask)
public static boolean removeAll(List<SextractorStar> list, int mask)
public static boolean retainAll(List<SextractorStar> list, List<SextractorStar.Flag> mask)
public static boolean retainAll(List<SextractorStar> list, int mask)