public class SextractorRegions extends SextractorRead
| Modifier and Type | Class and Description |
|---|---|
static class |
SextractorRegions.toCanvas
Reads the file on the first command line argument and converts it to a
canvas shape list, file name given as the second argument.
|
static class |
SextractorRegions.toDs9
Reads the file on the first command line argument and converts it to a
ds9-region list, file name given as the second argument.
|
SextractorRead.Wcs| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFDENYFLAGS
Default value.
|
private static boolean |
DEFFWHMFILTER
Default value.
|
private static double |
DEFFWHMHIGH
Default value.
|
private static double |
DEFFWHMLOW
Default value.
|
private static Color |
DEFGREENCOLOR
Default value.
|
private static Color |
DEFREDCOLOR
Default value.
|
private static String |
DEFREDFLAGS
Default value.
|
private static String |
DEFSQUAREFLAGS
Default value.
|
private static Color |
DEFYELLOWCOLOR
Default value.
|
private static String |
DEFYELLOWFLAGS
Default value.
|
private List<SextractorStar.Flag> |
deny
List of deny flags as int masks.
|
static String |
KEY_DENYFLAGS
If any of these flags are set, don't convert.
|
static String |
KEY_FWHMFILTER
If true, we apply an fwhm median-filter.
|
static String |
KEY_FWHMHIGH
If fwhm filtering is active, this is the higher-sigma multiplier.
|
static String |
KEY_FWHMLOW
If fwhm filtering is active, this is the lower-sigma multiplier.
|
static String |
KEY_GREENCOLOR
Stars not flagged are drawn in this color.
|
static String |
KEY_REDCOLOR
Stars flagged red are drawn in this color.
|
static String |
KEY_REDFLAGS
Any of these flags present, we draw in red.
|
static String |
KEY_SQUAREFLAGS
If any of these flags is present, we use a squre instead of a circle.
|
static String |
KEY_YELLOWCOLOR
Stars flagged yellow are drawn in this color.
|
static String |
KEY_YELLOWFLAGS
Any of these flags present, we draw in yellow (overruled by red).
|
private List<SextractorStar.Flag> |
red
List of deny flags as int masks.
|
private List<SextractorStar.Flag> |
square
List of deny flags as int masks.
|
private List<SextractorStar.Flag> |
yellow
List of deny flags as int masks.
|
KEY_DECOLUMN, KEY_DESEXAGESIMAL, KEY_ELLIPSECOLUMN, KEY_EPOCHCOLUMN, KEY_FLAGCOLUMN, KEY_FWHMCOLUMN, KEY_MAGCOLUMN, KEY_MAGERRCOLUMN, KEY_RACOLUMN, KEY_RASEXAGESIMAL, KEY_SEXAGESIMALCHAR, KEY_XCOLUMN, KEY_YCOLUMNKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
SextractorRegions(Map<String,String> prop)
Defaults all values.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
canvas(List<SextractorStar> read,
Dimension size)
Converts a sectractor list to a JNormalizedCanvas shape list.
|
static String |
canvasLine(Dimension size,
double x,
double y,
ShapeFactory.Paths s,
double fwhm,
double ell,
Color c) |
List<String> |
ds9(List<SextractorStar> read)
Converts a sextractor list to a ds9-region list.
|
static String |
ds9Line(double x,
double y,
Shape s,
double fwhm,
Color c) |
List<SextractorStar> |
filter(List<SextractorStar> read)
After reading an input sextractor file, filter out all the denied stars.
|
Color |
getColor(SextractorStar ss)
Returns the color that should be used for this star.
|
static ShapeDraw |
getEllipticStar(double x,
double y,
double fwhm,
double ell,
Dimension size) |
static ShapeDraw |
getEllipticStar(SextractorStar ss,
Dimension size) |
private static Vector2D |
getNormalizedFromFits(double x,
double y,
Dimension size) |
private static Vector2D |
getNormalizedSize(double fwhm,
double ell,
Dimension size) |
daoFindExport, parse, parseaugment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String KEY_DENYFLAGS
public static final String KEY_SQUAREFLAGS
public static final String KEY_YELLOWFLAGS
public static final String KEY_REDFLAGS
public static final String KEY_FWHMFILTER
public static final String KEY_FWHMLOW
public static final String KEY_FWHMHIGH
public static final String KEY_GREENCOLOR
public static final String KEY_YELLOWCOLOR
public static final String KEY_REDCOLOR
private static final boolean DEFFWHMFILTER
private static final double DEFFWHMLOW
private static final double DEFFWHMHIGH
private static final Color DEFGREENCOLOR
private static final Color DEFYELLOWCOLOR
private static final Color DEFREDCOLOR
private static final String DEFDENYFLAGS
private static final String DEFSQUAREFLAGS
private static final String DEFYELLOWFLAGS
private static final String DEFREDFLAGS
private final List<SextractorStar.Flag> deny
private final List<SextractorStar.Flag> square
private final List<SextractorStar.Flag> yellow
private final List<SextractorStar.Flag> red
public List<SextractorStar> filter(List<SextractorStar> read)
public Color getColor(SextractorStar ss)
public List<String> ds9(List<SextractorStar> read)
public static ShapeDraw getEllipticStar(SextractorStar ss, Dimension size)
public static ShapeDraw getEllipticStar(double x, double y, double fwhm, double ell, Dimension size)
private static Vector2D getNormalizedSize(double fwhm, double ell, Dimension size)
private static Vector2D getNormalizedFromFits(double x, double y, Dimension size)
public static String canvasLine(Dimension size, double x, double y, ShapeFactory.Paths s, double fwhm, double ell, Color c)
public List<String> canvas(List<SextractorStar> read, Dimension size)