|
|||||||||
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.TychoSeparatedReader
The TychoReader
is a class to read the separated Tycho
Catalogue files.
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.
Field Summary | |
protected CircumArea |
circum_area
The circum area to read stars. |
protected int |
current_block_index
The index of current block. |
protected int |
current_file_index
The index of current file. |
protected int |
current_star_index
The index of current star. |
protected int |
read_star_index
The index of already read star. |
protected java.io.DataInputStream |
stream
The input stream to read stars. |
Fields inherited from class net.aerith.misao.catalog.io.CatalogReader |
center_coor,
date,
limiting_mag,
url_set |
Constructor Summary | |
TychoSeparatedReader()
Constructs an empty TychoSeparatedReader . |
|
TychoSeparatedReader(java.net.URL url)
Constructs a TychoSeparatedReader with URL of the catalog
file. |
Method Summary | |
void |
close()
Closes a catalog. |
CatalogStar |
createStar(java.lang.String record)
Creates a CatalogStar object from the specified
one line record in the file. |
java.lang.String |
getHelpMessage()
Gets the help message. |
double |
getMaximumPositionErrorInArcsec()
Gets the maximum error of position in arcsec. |
java.lang.String |
getName()
Gets the catalog name. |
boolean |
isInDirectory()
Checks if the catalog data is in a directory. |
void |
open(Coor coor,
double fov)
Opens a catalog. |
private java.io.DataInputStream |
openDataFile(int file_number)
Opens the star data file. |
CatalogStar |
readNext()
Reads one star from the opened catalog. |
boolean |
supportsExamination()
Checks if the catalog supports the use in PIXY examination. |
Methods inherited from class net.aerith.misao.catalog.io.CatalogReader |
addURL,
getDateLimit,
getDateLimitMessage,
getFovLimit,
getFovLimitMessage,
hasDateLimit,
hasFovLimit,
isDateDependent,
isFile,
open,
read,
setDate,
setDefaultURL,
setLimitingMagnitude |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected CircumArea circum_area
protected java.io.DataInputStream stream
protected int current_file_index
protected int current_block_index
protected int current_star_index
protected int read_star_index
Constructor Detail |
public TychoSeparatedReader()
TychoSeparatedReader
.public TychoSeparatedReader(java.net.URL url)
TychoSeparatedReader
with URL of the catalog
file.url
- the URL of the catalog file.Method Detail |
public java.lang.String getName()
public boolean isInDirectory()
public boolean supportsExamination()
public double getMaximumPositionErrorInArcsec()
public java.lang.String getHelpMessage()
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
private java.io.DataInputStream openDataFile(int file_number) throws java.io.IOException
file_number
- the file number.public CatalogStar createStar(java.lang.String record)
CatalogStar
object from the specified
one line record in the file.record
- the one line record in the file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |