net.aerith.misao.catalog.io
Class UsnoA10Reader

java.lang.Object
  |
  +--net.aerith.misao.catalog.io.CatalogReader
        |
        +--net.aerith.misao.catalog.io.UsnoAReader
              |
              +--net.aerith.misao.catalog.io.UsnoA10Reader

public class UsnoA10Reader
extends UsnoAReader

The UsnoA10Reader is a class to read USNO-A1.0 CD-ROMs.

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
private static int USNOA10_cat_N
          The number of files.
private static int[] USNOA10_disc
          The list of disc numbers.
private static int[] USNOA10_file
          The list of file numbers.
 
Fields inherited from class net.aerith.misao.catalog.io.UsnoAReader
buffer_size, circum_area, current_block_index, current_block_size, current_buffer_count, current_buffer_index, current_data_index, current_end_coor, current_file_index, current_star_index, current_start_coor, current_stream_acc, current_stream_cat, data_buffer
 
Fields inherited from class net.aerith.misao.catalog.io.CatalogReader
center_coor, date, limiting_mag, url_set
 
Constructor Summary
UsnoA10Reader()
          Constructs an empty UsnoA10Reader.
UsnoA10Reader(java.net.URL url)
          Constructs a UsnoA10Reader with URL of directory containing USNO-A1.0 CD-ROMs data.
 
Method Summary
protected  UsnoAStar createStar(short file_number, int star_number, Coor coor, boolean valid_R_mag, short R_mag10, boolean valid_B_mag, short B_mag10, double V_mag)
          Creates s UsnoAStar object based on the specified parameters.
protected  int getDiscNumber(int index)
          Gets the disc number of the specified index.
protected  int getFileNumber(int index)
          Gets the file number of the specified index.
 java.lang.String getHelpMessage()
          Gets the help message.
 java.lang.String getName()
          Gets the catalog name.
protected  int getNumberOfFiles()
          Gets the number of files.
 boolean isInDirectory()
          Checks if the catalog data is in a directory.
 boolean supportsExamination()
          Checks if the catalog supports the use in PIXY examination.
 
Methods inherited from class net.aerith.misao.catalog.io.UsnoAReader
close, getMaximumPositionErrorInArcsec, open, readNext
 
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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

USNOA10_cat_N

private static final int USNOA10_cat_N
The number of files.

USNOA10_file

private static final int[] USNOA10_file
The list of file numbers.

USNOA10_disc

private static final int[] USNOA10_disc
The list of disc numbers.
Constructor Detail

UsnoA10Reader

public UsnoA10Reader()
Constructs an empty UsnoA10Reader.

UsnoA10Reader

public UsnoA10Reader(java.net.URL url)
Constructs a UsnoA10Reader with URL of directory containing USNO-A1.0 CD-ROMs data.
Parameters:
url - the URL of directory containing CD-ROMs data.
Method Detail

getNumberOfFiles

protected int getNumberOfFiles()
Gets the number of files.
Overrides:
getNumberOfFiles in class UsnoAReader
Returns:
the number of files.

getFileNumber

protected int getFileNumber(int index)
Gets the file number of the specified index.
Overrides:
getFileNumber in class UsnoAReader
Parameters:
index - the index.
Returns:
the file number.

getDiscNumber

protected int getDiscNumber(int index)
Gets the disc number of the specified index.
Overrides:
getDiscNumber in class UsnoAReader
Parameters:
index - the index.
Returns:
the disc number.

getName

public java.lang.String getName()
Gets the catalog name. It must be unique among all subclasses.
Overrides:
getName in class CatalogReader
Returns:
the catalog name.

isInDirectory

public boolean isInDirectory()
Checks if the catalog data is in a directory.
Overrides:
isInDirectory in class CatalogReader
Returns:
true if the catalog data is in a directory.

supportsExamination

public boolean supportsExamination()
Checks if the catalog supports the use in PIXY examination.
Overrides:
supportsExamination in class CatalogReader
Returns:
true if the catalog can be used in PIXY examination.

createStar

protected UsnoAStar createStar(short file_number,
                               int star_number,
                               Coor coor,
                               boolean valid_R_mag,
                               short R_mag10,
                               boolean valid_B_mag,
                               short B_mag10,
                               double V_mag)
Creates s UsnoAStar object based on the specified parameters.
Overrides:
createStar in class UsnoAReader
Parameters:
file_numer - the file number.
star_number - the star number in the area.
coor - the R.A. and Decl.
valid_R_mag - true if R magnitude is recorded.
R_mag10 - the R magnitude in 0.1 mag unit.
valid_B_mag - true if B magnitude is recorded.
B_mag10 - the B magnitude in 0.1 mag unit.
V_mag - the V magnitude.
Returns:
the UsnoAStar object

getHelpMessage

public java.lang.String getHelpMessage()
Gets the help message.
Overrides:
getHelpMessage in class CatalogReader
Returns:
the help message.