|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.catalog.io.CatalogReader | +--net.aerith.misao.catalog.io.StarListReader
The StarListReader
is a class to keep the list of
catalog stars and read stars from the list.
The (x,y) position is also set properly so that (0,0) represents the specified R.A. and Decl. to open method and (1,1) represents the position 1 deg to the west and 1 deg to the north.
Note that it does not clone the star objects. So the star object obtained by the read() or readNext() method should not be modified.
Field Summary | |
protected int |
current_index
The current index. |
protected double |
fov_in_degree
The field of view in degree. |
protected java.util.Vector |
list
The list of stars. |
protected double |
maximum_error_in_arcsec
The maximum error of position in arcsec. |
Fields inherited from class net.aerith.misao.catalog.io.CatalogReader |
center_coor,
date,
limiting_mag,
url_set |
Constructor Summary | |
StarListReader()
Constructs a StarListReader . |
Method Summary | |
void |
addStar(CatalogStar star)
Adds a star. |
void |
close()
Closes a catalog. |
double |
getMaximumPositionErrorInArcsec()
Gets the maximum error of position in arcsec. |
java.lang.String |
getName()
Gets the catalog name. |
void |
open(Coor coor,
double fov)
Opens a catalog. |
CatalogStar |
readNext()
Reads one star from the opened catalog. |
Methods inherited from class net.aerith.misao.catalog.io.CatalogReader |
addURL,
getDateLimit,
getDateLimitMessage,
getFovLimit,
getFovLimitMessage,
getHelpMessage,
hasDateLimit,
hasFovLimit,
isDateDependent,
isFile,
isInDirectory,
open,
read,
setDate,
setDefaultURL,
setLimitingMagnitude,
supportsExamination |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.util.Vector list
protected double maximum_error_in_arcsec
protected double fov_in_degree
protected int current_index
Constructor Detail |
public StarListReader()
StarListReader
.Method Detail |
public void addStar(CatalogStar star)
star
- the star to add.public java.lang.String getName()
public double getMaximumPositionErrorInArcsec()
public void open(Coor coor, double fov) throws java.io.IOException, java.io.FileNotFoundException, CdromNotFoundException
coor
- the R.A. and Decl. of the center.fov
- the field of view to read in degree.public CatalogStar readNext() throws java.io.IOException, java.io.FileNotFoundException, CdromNotFoundException, QueryFailException
public void close() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |