JEphem site
tig API
Build classes

jephem.astro.sky
Class BSC5

java.lang.Object
  |
  +--jephem.astro.sky.BSC5
All Implemented Interfaces:
GeneralConstants

public abstract class BSC5
extends java.lang.Object
implements GeneralConstants

Low-level class to access to BSC5 (Bright Star Catalog, version 5) data.
Header of readMe of the present version :

 ================================================================================
 The Bright Star Catalogue,  5th Revised Ed. (Preliminary Version)
      Hoffleit E.D., Warren Jr. W.H.
 ================================================================================
 


Field Summary
static int BSC
          Constant to access to BSC number (= Harvard Revised Number).
static int DEC
          Constant to access to dec. 2000.
static int HD
          Constant to access to HD catalog number.
static int MAG
          Constant to access to visual magnitude.
static int NB_STARS
          Number of stars in the catalog.
static int PAR
          Constant to access to parallax.
static int RA
          Constant to access to r.a. 2000.
static int SAO
          Constant to access to SAO catalog number.
static int TYP
          Constant to access to spectral type.
 
Fields inherited from interface tig.GeneralConstants
BLANK, FS, LS, NO_SPECIF, SPACE
 
Constructor Summary
BSC5()
           
 
Method Summary
static java.lang.String getDataLabel(int dataCode)
          Returns the English label of the specified data.
static double getDoubleData(int starIdx, int dataCode)
          Returns a String data for a particular star.
static java.lang.String getStringData(int starIdx, int dataCode)
          Returns a String data for a particular star.
static void setDataPath(java.lang.String dataPath)
          Sets the path where the BSC5 data are located ; MUST be called before calling any other method of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BSC

public static final int BSC
Constant to access to BSC number (= Harvard Revised Number).

See Also:
Constant Field Values

DEC

public static final int DEC
Constant to access to dec. 2000.

See Also:
Constant Field Values

HD

public static final int HD
Constant to access to HD catalog number.

See Also:
Constant Field Values

MAG

public static final int MAG
Constant to access to visual magnitude.

See Also:
Constant Field Values

NB_STARS

public static final int NB_STARS
Number of stars in the catalog.

See Also:
Constant Field Values

PAR

public static final int PAR
Constant to access to parallax.

See Also:
Constant Field Values

RA

public static final int RA
Constant to access to r.a. 2000.

See Also:
Constant Field Values

SAO

public static final int SAO
Constant to access to SAO catalog number.

See Also:
Constant Field Values

TYP

public static final int TYP
Constant to access to spectral type.

See Also:
Constant Field Values
Constructor Detail

BSC5

public BSC5()
Method Detail

getDataLabel

public static java.lang.String getDataLabel(int dataCode)
Returns the English label of the specified data.

Parameters:
dataCode - constant of this class designating one of the BSC5 data.

getDoubleData

public static double getDoubleData(int starIdx,
                                   int dataCode)
Returns a String data for a particular star.

Parameters:
dataCode - constant of this class designating one of the BSC5 double data.

getStringData

public static java.lang.String getStringData(int starIdx,
                                             int dataCode)
Returns a String data for a particular star.

Parameters:
dataCode - constant of this class designating one of the BSC5 String data.

setDataPath

public static void setDataPath(java.lang.String dataPath)
Sets the path where the BSC5 data are located ; MUST be called before calling any other method of this class.


JEphem site
tig API
Build classes