|
|||||||||
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.database.CatalogDBReader
The CatalogDBReader
is a class to read catalog
database. The open, readNext, close
methods and the read method are available. This is for
access to the catalog database as it were a catalog file.
The reader must return the stars within the square area represented
by the specified field of view in definition. However, the
CatalogDBReader
returns the stars within the circular
area, because it invokes the CatalogDBManager#getAccessor
with a radius.
So in principle, the circular area must be the circumcircle of the
square represented by the specified field of view. But actually,
this is only used in identification to read stars on the image.
Considering the rotation of the image, the field of view represents
the square area which covers the circumcircle of the image.
Therefore, in order to read all stars overlapping on the image, the
radius for CatalogDBManager#getAccessor
is the half of
the specified field of view. That is, this returns the stars within
the incscribed circle, not the circumcircle, of the square area
represented by the specified field of view.
Field Summary | |
protected CatalogDBAccessor |
accessor
The accessor to the catalog database. |
protected boolean |
first_flag
The first flag. |
protected CatalogDBManager |
manager
The catalog database manager. |
Fields inherited from class net.aerith.misao.catalog.io.CatalogReader |
center_coor,
date,
limiting_mag,
url_set |
Constructor Summary | |
CatalogDBReader(CatalogDBManager manager)
Construct a CatalogDBReader . |
Method Summary | |
void |
close()
Closes a catalog. |
java.lang.String |
getName()
Gets the catalog name. |
void |
open()
Opens a catalog to read all star data. |
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,
getMaximumPositionErrorInArcsec,
hasDateLimit,
hasFovLimit,
isDateDependent,
isFile,
isInDirectory,
read,
setDate,
setDefaultURL,
setLimitingMagnitude,
supportsExamination |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected CatalogDBManager manager
protected CatalogDBAccessor accessor
protected boolean first_flag
Constructor Detail |
public CatalogDBReader(CatalogDBManager manager)
CatalogDBReader
.manager
- the catalog database manager.Method Detail |
public java.lang.String getName()
public void open() throws java.io.IOException, java.io.FileNotFoundException, CdromNotFoundException
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |