public final class StarParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SHARP
Additional star property sharpness, if filtered.
|
static String |
USED
Indicates matched star was used for zero point estimation.
|
| Constructor and Description |
|---|
StarParser() |
| Modifier and Type | Method and Description |
|---|---|
private static <T extends Star> |
getIDs(List<T> master) |
static <T extends Star> |
getMatchToName(List<T> master,
String name)
From a list of star descriptions extract the one matched to the unique
name.
|
private static <T extends Star> |
getNames(List<T> master) |
private static SextractorStar |
parseFromAdvancedSex(List<String> one) |
static SextractorStar |
parseFromAdvancedSex(String line)
Reverses a sextractor.advancedSex string output.
|
static StarMatchedSextractor |
parseFromMatch(String line)
Reads a single line in a WCS-Tools matched file format.
|
private static SextractorStar |
parseFromSextractor(List<String> one,
int xc,
int xec,
int yc,
int yec,
int mc,
int mec,
int backc,
int fwhmc,
int ellc,
int theatc,
int flagc,
int propc) |
static SextractorStar |
parseFromSextractor(String line,
int xc,
int xec,
int yc,
int yec,
int mc,
int mec,
int backc,
int fwhmc,
int ellc,
int theatc,
int flagc,
int propc)
Parses a single sextractor line specifying all columns, -1 for not
applicable.
|
static Map.Entry<String,SextractorStar> |
parseFromSextractorSharp(String line)
Parses sextractor stars written by wcs external in the three categories
used sharp and fwhm/ell.
|
private static SextractorStar |
parseFromThetaSex(List<String> one) |
static <T extends Star> |
retainMatchesByID(List<T> master,
List<T>... l)
Matches the first list of StarDescription to various others and retains
only stars with identical ID present in all lists.
|
static <T extends Star> |
retainMatchesByName(List<T> master,
List<T>... l)
Matches the first list of StarDescription to various others and retains
only stars with identical names present in all lists.
|
public static final String SHARP
public static final String USED
public static StarMatchedSextractor parseFromMatch(String line) throws ParseException
line - ParseExceptionpublic static Map.Entry<String,SextractorStar> parseFromSextractorSharp(String line) throws ParseException
line - ParseExceptionpublic static SextractorStar parseFromAdvancedSex(String line) throws ParseException
XY.format(getCcdX(), 10)+" "+XY.format(getCcdErrX()) +XY.format(getCcdY(), 10)+" "+XY.format(getCcdErrY()) +" "+MAG.format(getMag(), 8)+" "+MAG.format(getMagErr()) +" "+FWHM.format(getFwhm(), 5)+" " +ELL.format(getEllipticity())+" " +FLAGS.format(getIntegerFlags(), 2) +" "+PROP.format(getProbability());
line - ParseExceptionpublic static SextractorStar parseFromSextractor(String line, int xc, int xec, int yc, int yec, int mc, int mec, int backc, int fwhmc, int ellc, int theatc, int flagc, int propc) throws ParseException
line - xc - xec - yc - yec - mc - mec - backc - fwhmc - ellc - theatc - flagc - propc - ParseExceptionprivate static SextractorStar parseFromAdvancedSex(List<String> one) throws ParseException
ParseExceptionprivate static SextractorStar parseFromThetaSex(List<String> one) throws ParseException
ParseExceptionprivate static SextractorStar parseFromSextractor(List<String> one, int xc, int xec, int yc, int yec, int mc, int mec, int backc, int fwhmc, int ellc, int theatc, int flagc, int propc) throws ParseException
ParseExceptionpublic static <T extends Star> List<T> retainMatchesByID(List<T> master, List<T>... l)
master - From this list the all-present stars are copied.l - Secondary lists, star ID's have to be present in master.public static <T extends Star> List<T> retainMatchesByName(List<T> master, List<T>... l)
master - From this list the omnipresent stars are copied.l - Secondary lists, star ID's have to be present in master.