public class AsciiCatalog extends PropertyContainer
The standard fortran format used in most CDS descriptions differ from the normal column assignment. Subtract one from the starting column, leave ending column as-is.
| Modifier and Type | Class and Description |
|---|---|
static class |
AsciiCatalog.BJG2004
Reads the stromgren catalog of NGC 1807 and 1817.
|
static class |
AsciiCatalog.FieldBy
Reads the stromgren catalog of NGC 1807 and 1817.
|
static class |
AsciiCatalog.FieldC1
Reads the stromgren catalog of NGC 1807 and 1817.
|
static class |
AsciiCatalog.FieldM1
Reads the stromgren catalog of NGC 1807 and 1817.
|
static class |
AsciiCatalog.PpmXL
Reads the PPMXL catalog file(s).
|
static class |
AsciiCatalog.TwoMass
Reads the 2mass catalog file(s).
|
| Modifier and Type | Field and Description |
|---|---|
private Map<String,Class<?>> |
addclass
A linkage of additional property names to parsable classes.
|
private Map<String,String> |
addcolumns
A linkage of additional property names to columns as comma strings.
|
static String |
KEY_ADDON
If present, this is additional data for the star as a mapping of names to
columns.
|
static String |
KEY_COLOR
The column number starting at zero that has the magnitude.
|
static String |
KEY_DE
The column number starting at zero that has the de (decimal)e star.
|
static String |
KEY_DEDEG
The column number starting at zero that has the de(deg) of the star.
|
static String |
KEY_DEMIN
The column number starting at zero that has the de(min) of the star.
|
static String |
KEY_DESEC
The column number starting at zero that has the de(sec) of the star.
|
static String |
KEY_ID
The column number starting at zero that has the magnitude.
|
static String |
KEY_INVALID
This key points to data that is marked invalid.
|
static String |
KEY_MAG
The column number starting at zero that has the magnitude.
|
static String |
KEY_NAME
The column number starting at zero that has the magnitude.
|
static String |
KEY_PMDE
Propert motion in ra, mas/year.
|
static String |
KEY_PMRA
Propert motion in ra, mas/year.
|
static String |
KEY_RADEG
The column number starting at zero that has the ra(deg) of the star.
|
static String |
KEY_RAHOUR
The column number starting at zero that has the ra hour of the star.
|
static String |
KEY_RAMIN
The column number starting at zero that has the ra hour of the star.
|
static String |
KEY_RASEC
The column number starting at zero that has the ra hour of the star.
|
static String |
PIPE |
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
AsciiCatalog(Map<String,String> info)
Constructs a new ascii-catalog, no defaults.
|
| Modifier and Type | Method and Description |
|---|---|
private String |
extract(String line,
int[] be)
Extracts a string from a line.
|
private Double |
extractDouble(String line,
String key) |
private Float |
extractFloat(String line,
String key) |
private Object |
extractObject(String valid,
Class<?> template) |
private static int[] |
getColumns(String pair)
Returns an integer of beginning and end index for substring extraction.
|
void |
hugeFile(File f,
StarUtilizer use)
Huge files can be read here
|
void |
init() |
List<Star> |
parseFile(File f)
Reads a file and parses it into a list of star descriptions.
|
private Star |
parseLine(String line)
Parses a single line.
|
static GeneralLinearRegression |
solve(List<VectorG> zxy)
Solver for z = a1*x+a2*y+a3.
|
static GeneralLinearRegression |
solve0(List<VectorG> zxy)
Solver for z = a1*x+a2*y+a3.
|
static GeneralLinearRegression |
solve2(List<VectorG> zxy)
Solver for z = a1*x+a2*y+a3*y^2+a4.
|
static GeneralLinearRegression |
solvefull2(List<VectorG> zxy)
Solver for z = a1*x+a2*y+a3*x^2+a4*x*y+a5*y^2+a6.
|
static boolean |
wcsExport(List<Star> asc,
File f)
Exports the catalog as a tab column file suitable for WCS tools.
|
augment, 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 PIPE
public static final String KEY_NAME
public static final String KEY_ID
public static final String KEY_RADEG
public static final String KEY_RAHOUR
public static final String KEY_RAMIN
public static final String KEY_RASEC
public static final String KEY_DE
public static final String KEY_DEDEG
public static final String KEY_DEMIN
public static final String KEY_DESEC
public static final String KEY_MAG
public static final String KEY_COLOR
public static final String KEY_PMRA
public static final String KEY_PMDE
public static final String KEY_INVALID
public static final String KEY_ADDON
private Map<String,Class<?>> addclass
public void init()
public List<Star> parseFile(File f)
public void hugeFile(File f, StarUtilizer use)
private static int[] getColumns(String pair)
private String extract(String line, int[] be)
public static boolean wcsExport(List<Star> asc, File f) throws IOException
IOExceptionpublic static GeneralLinearRegression solve0(List<VectorG> zxy)
public static GeneralLinearRegression solve(List<VectorG> zxy)
public static GeneralLinearRegression solve2(List<VectorG> zxy)
public static GeneralLinearRegression solvefull2(List<VectorG> zxy)