net.aerith.misao.catalog.io
Class NewvarReader

java.lang.Object
  |
  +--net.aerith.misao.catalog.io.CatalogReader
        |
        +--net.aerith.misao.catalog.io.FileReader
              |
              +--net.aerith.misao.catalog.io.NewvarReader

public class NewvarReader
extends FileReader

The NewvarReader is a class to read the newvar.cat.

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.

How to parse the record:

Variable Star Catalogues

NovaStar

   Name := .*nova\d\d\d\d.*
Name [Data]

AgprsStar

   Name := AGPRS_J.*
     Name Rmag"R" "var"
 

AsasStar

   Name := ASAS_J.*
     Name Imag"I" "("Range")" [Data]
 

Asas3Star

   Name := ASAS3_J.*
     Name Vmag"V" "("Range")" [Data]
 

BrhVStar

   Name := (BeV|BrhV)\d+
     Name Max Min+System Type [Period] [Epoch]
 

BnVStar

   Name := BnV\d+
     Name Max+System Min+System Type
     Name Type
 

ChsmStar

   Name := CHSM\d+
     Name "J="Jmag "H="Hmag "K="Kmag "Index="Index
 

CsakVStar

   Name := Csak_V.*
     Name Max Min+System Type [Spectrum] IBVS
     Name Mag+System Type IBVS
 

DenisBulgeStar

   Name := DENIS_Bulge.*
     Name [Mag+System] "("Range+System")"
 

DirectVStar

   Name := DIRECT_V.*
     Name Vmag"V" Type "P="Period
     Name Vmag"V" Type [Data]
 

Eros2GsaStar

   Name := EROS2\_GSA\_J.*
     Name Rmag"R" "("Rrange"R)" Vmag"V" "("Vrange"V)" Type ["P="Period]
 

ErosStar

   Name := EROS1.*
     Name Max Min+System Type
   Name := EROS2.*
     Name Mag+System Type "P="Period
 
Fastt2Star
   Name := FASTT2\-.*
     Name Rmag "("Range")R" [Data]
 

GrbStar

   Name := GRB.*[^var]
     Name Mag+System [Data]
     Name "GRB"
 

Fastt1Star

   Name := HS\d+
     Name Rmag "("Range")R" [Data]
 

HadVStar

   Name := HadV.*
     Name Max+System Min+System [Type [Period [Epoch]]]
 

HassfortherVStar

   Name := HassfortherV.*
     Name Max (Min+System | "-") Type "P="Period
     Name Max (Min+System | "-") [Type [Period]]
     Name Max "("Range")"System Type "P="Period
     Name Max "("Range")"System [Type [Period]]
 

HrmVStar

   Name := HrmV_J.*
     Name Max Min+System Type Period
 

IsogalPStar

   Name := ISOGALP_J.*
     Name Vmag"V" "("Range")" [Type] "logP="logP
 

IsvStar

   Name := ISV.*
     Name "var?"
 

LdStar

   Name := LD\d+
     Name Max Min[+System] Type [Period [Epoch]]
 

MoaStar

   Name := MOA\-.*
     Name [Data]
 

MisVStar

   Name := MisV.*
     Name Max Min+System Type Period Epoch
 

NgStar

   Name := Ng_var.*
     Name Rmag"R" Type [Period]
 

OgleLtStar

   Name := OGLE-LT.*
     Name Imag"I" Type
 

OgleTrStar

   Name := OGLE-TR\-\d+
     Name Imag"I" "("Range")" Type Period Epoch ["V-I="V-I]
 

OgleEwsStar

   Name := OGLE\-\d\d\d\d.*
     Name Imag"I" "("Dmag")" Tmax "tau="tau "Amax="Amax
 

OglePeriodicStar

   Name := OGLE\-.*
     Name Imag"I" "("Range")" Type Period Epoch "V-I="V-I
 

PejStar

   Name := Pej\d+
     Name Max Min+System Type
     Name Mag+System "("Range")" Type
 

TaQStar

   Name := Q\d\d\d\d\/\d+
     Name Max Min [Type [Period]]
     Name [Data]
 

Rotse1Star

   Name := ROTSE1_J.*
     Name Mag "("Range")" [Data]
 

RosatStar

   Name := RXJ.*
     Name Max Min Type
     Name Mag Type
 

StareStar

   Name := STARE_.*
     Name [Mag] "("Range")" Type Period
 

TassStar

   Name := TASS_J.*
     Name Max Min+System [Type [Data]]
     Name "var"
   Name := TASS_Var.*
     Name Max Min+System Type Period
     Name Mag "("Range")" Type Period
   Name := .*
     Name Max Min+System Type [Period [Epoch]] "TASS(".*")"
     Name Mag "("Range")"+System Type [Period [Epoch]] "TASS(".*")"
     Name Mag+System "("Range")" Type [Period [Epoch]] "TASS(".*")"
 

TaVStar

   Name := TAV.*
     Name Max Min [Type [Period]]
     Name [Data]
 

TaSVStar

   Name := TASV.*
     Name Max Min [Type [Period]]
     Name [Data]
 

TerzVStar

   Name := TerzV.*
     Name Max Min+System
 

TmzVStar

   Name := TmzV.*
     Name Max Min+System Type [Period [Epoch]]
 

ToaVStar

   Name := ToaV.*
     Name Max Min+System Type
 

TbrVStar

   Name := TbrV.*
     Name Max Min+System Type Period
 

WakudaStar

   Name := Wakuda_new.*
     Name Max Min Type
 

Aaa97bStar

   Name := [AAA97b]J.*
     Name Max Min+System Type
 

Cks91Star

   Name := [CKS91].*
     Name Imag"I" "var" [Type]
     Name Imag "("Range")I" "var" [Type]
     Name "var" [Type]
 

D75Star

   Name := [D75].*
     Name Spectrum
 

Dhm99Star

   Name := [DHM99].*
     Name Vmag "("Range")V" [Data]
 

Gmc2001Star

   Name := [GMC2001].*
     Name Kmag"K" "("Range")" "P="Period
 

Ogle2BulgeStar

   Name := OGLE2\-BUL\-SC\d+\-V\d+
     Name Imag"I" "("Range")" Type
 

SdssCvStar

   Name := SDSSp_J.*
     Name Type Mag
 

SdssQuasarStar

   Name := SDSS_J.*
     Name "g="Gmag "z="z
 

TychoVarStar

   Name := TYC\d+\.\d+
     Name Status Vmag"V" "("Range")" "P="Period
 

AfaStar

   Name := AFASV.*
     Name Max Min+System
 

Ngc6712VStar

   Name := NGC6712_V\d+
     Name
 

Other Catalogues

Qz2Star

   Name := 2QZ_J.*
     Name Type "B="Bmag "z="z
 

BisStar

   Name := BIS\d+
     Name [Mag [Spectrum]]
 

BpsStar

   Name := BPS_.*
     Name [Data]
   Name := BS\d\d\d\d\d.\d\d\d\d
     Name "V="Vmag "B-V="B-V [Data]
   Name := CS\d\d\d\d\d.\d\d\d\d
     Name "V="Vmag "B-V="B-V [Data]
 

CeStar

   Name := CE\-.*
     Name Rmag"R" "mu="mu
 

CghaStar

   Name := CGHA\d+
     Name Mag [Data]
 

ClsStar

   Name := CLS\d.*
     Name Rmag"R" "Sp="Spectrum [Data]
 

CaseAFStar

   Name := CaseA\-F.*
     Name Bmag"B" [Data]
 

EdinburghStar

   Name := Edinburgh\d\-.*
     Name Imag"I" Spectrum
 

EcStar

   Name := EC\d\d\d\d\d.\d\d\d\d
     Name "V="Vmag "B-V="B-V [Data]
 

Zhm99Star

   Name := EIS_.*
     Name "I="Imag
 

EsoHaStar

   Name := ESO-HA.*
     Name Mag [Data]
 

EuveStar

   Name := EUVE_J.*
     Name Mag ID Spectrum
 

FbqsStar

   Name := FBQS_J.*
     Name Type "r="rmag ["z="z]
 

FbsStar

   Name := FBS.*
     Name pgmag"pg" [Data]
   Name := FBS.*
     Name rmag"r" Spectrum
 

FocapStar

   Name := FOCAP_.*
     Name Type Bmag"B" "U-B="U-B ["z="z]
 

LowellGStar

   Name := G\d+\-\d+(\S)?
     Name pgmag"pg" "mu="mu
 

HaroChaviraStar

   Name := HaroChavira\d*
     Name Imag"I" Spectrum
 

HbcStar

   Name := HBC.*
     Name "PMS" "V="Vmag Spectrum [Data]
 

HbhaStar

   Name := HBH.*
     Name "em" "V="Vmag Spectrum
 

HeStar

   Name := HE\d\d\d\d.\d\d\d\d
     Name Bmag"B" "z="z
     Name Bmag"B" Type [Data]
 

HhStar

   Name := HH\d+
     Name [Data]
 

HmxbStar

   Name := HMXB_
     Name "HMXB("Type")" "V="Vmag [Data]
 

HsStar

   Name := HS\d\d\d\d.\d\d\d\d
     Name Bmag"B" Type ["z="z]
 

IfmStar

   Name := IFM\-.*
     Name "V="Vmag "B-V="B-V
 

JlStar

   Name := JL\d+
     Name Mag
 

KuvStar

   Name := KUV.*
     Name Mag U-B
 

KisoAStar

   Name := Kiso_A\-.*
     Name "em" "V="Vmag
     Name "em" "-"
 

KisoCStar

   Name := Kiso_C\d\-.*
     Name Vmag"V"
 

LbqsStar

   Name := LBQS.*
     Name Bmag"B" "z="z
   Name := LBQS_B.*
     Name Bmag"B" "z="z
 

Lf1Star

   Name := LF1[ABC]\d+
     Name [Imag"I"] Spectrum
 

LhsStar

   Name := LHS.*
     Name rmag"r" Spectrum "mu="mu
 

LmcStar

   Name := LMC_.*
     Name [Data]
 

LmxbStar

   Name := LMXB_
     Name "LMXB("Type")" "V="Vmag [Data]
 

LsStar

   Name := LS(I|II|III|IV|V|VI)(\+|\-).*
     Name pmag"p" [Type]
 

LssStar

   Name := LSS.*
     Name pmag"p" Type
 

LwdStar

   Name := LWD.*
     Name pgmag"pg" Type
 

LanningStar

   Name := Lanning.*
     Name ["B="Bmag] ["U-B="U-B] [Data]
 

MlaStar

   Name := MLA.*
     Name "em" [Data]
 

KwbbeStar

   Name := NGC(1818|1948|2004|2100|330|346):KWBBe.*
     Name "em" "V="Vmag [Data]
 

OmhrStar

   Name := OMHR_J.*
     Name "U="Umag "V="Vmag [Data]
 

PbStar

   Name := PB\d+
     Name Bmag"B" [Data]
 

PhlStar

   Name := PHL.*
     Name Pmag"p"
 

RjhaStar

   Name := RJHA.*
     Name [Data]
 

SandStar

   Name := Sand.*
     Name ["V="Vmag] ["B-V="B-V] ["pmA="mu(R.A.)] ["pmD="mu(Decl.)]
 

SbsStar

   Name := SBS.*
     Name Mag (gal|stellar) [Data]
 

Mbh96Star

   Name := UIT.*
     Name "V="Vmag "U-B="U-B [Data]
 

UmStar

   Name := UM\d.*
     Name [Data]
 

UsStar

   Name := US\d.*
     Name Bmag"B" "col="col [Data]
 

VdbhStar

   Name := VDBH.*
     Name [Data]
 

WdStar

   Name := WD\d\d\d\d\.\d\d\d.*
     Name [Mag] [Data]
 

WgStar

   Name := Wg\d+
     Name Vmag"V" [Data]
 

A64Star

   Name := [A64].*
     Name [bmag"b"] Spectrum
 

A72cStar

   Name := [A72c].*
     Name Spectrum [Data]
 

B86Star

   Name := [B86].*
     Name [Data]
 

Bbe90Star

   Name := [BBE90].*
     Name Jmag"J" Type [Data]
 

Bfa97Star

   Name := [BFA97].*
     Name FUVmag"FUV" [Data]
 

Cbb98Star

   Name := [CBB98].*
     Name Vmag"V" [Data]
 

Ctt83Star

   Name := [CTT83].*
     Name [rmag"r"]
 

Di91Star

   Name := [DI91].*
     Name "V="Vmag "B-V="B-V
 

Hpj88Star

   Name := [HPJ88].*
     Name "V="Vmag "B-V="B-V
 

Kp2001Star

   Name := [KP2001].*
     Name Bmag"B" Spectrum
 

Ma93Star

   Name := [MA93].*
     Name "em"
 

Mh95Star

   Name := [MH95].*
     Name "C-star"
 

Mt91Star

   Name := [MT91].*
     Name "V="Vmag "B-V="B-V [Data]
 

Ow94Star

   Name := [OW94].*
     Name [Data]
 

Rrw93Star

   Name := [RRW93].*
     Name "V="Vmag Spectrum
 

Mfl2000Star

   Name := [MFL2000].*
     Name
 

W59Star

   Name := [W59].*
     Name Imag"I" Spectrum
 

CfrsStar

   Name := CFRS.*
     Name "I="Imag "V-I="V-I "z="z
 

Cgcs3Star

   Name := CGCS_J.*
     Name "("Alias")" Bmag Vmag IRmag [Data]
 

UhaStar

   Name := UHA\d+
     Name Vmag"V" Bmag"B"
 

DoStar

   Name := DO\d+
     Name [Vmag] Spectrum
 

Nebulae and Clusters Catalogues

KugStar

   Name := KUG.*
     Name "B="Bmag
 

MrkStar

   Name := Mrk.*
     Name Mag "z="z
 

PnGStar

   Name := PN_G.*
     Name [Data]
 

Bdf99Star

   Name := [BDF99].*
     Name "PN"
 

X-ray Catalogues

Axg1Star

   Name := 1AXG_J.*
     Name Value"ct/ks" "hard="Hard
 

Rxs1Star

   Name := 1RXSJ.*
     Name Mag Type [Data]
   Name := 1RXS_J.*
     Name "V="[Vmag] Type [Data]
 

RxStar

   Name := RXJ.*
     Name "V="Vmag "B-V="B-V [Data]
     Name [Data]
 

Sax1Star

   Name := 1SAX_J.*
     Name "Xray="Intensity Type(including spaces)
 

E2Star

   Name := 2E_IPC.*
     Name "ultrasoft-X" [Data]
 

Re2Star

   Name := 2RE_J.*
     Name S1"cts(s1)" S2"cts(s2)" [Data]
 

FaustStar

   Name := FAUST.*
     Name "FUV="Intensity [Mag] Spectrum
 


Fields inherited from class net.aerith.misao.catalog.io.FileReader
circum_area, current_block, current_index, reader
 
Fields inherited from class net.aerith.misao.catalog.io.CatalogReader
center_coor, date, limiting_mag, url_set
 
Constructor Summary
NewvarReader()
          Constructs an empty NewvarReader.
NewvarReader(java.net.URL url)
          Constructs a NewvarReader with URL of the catalog file.
 
Method Summary
 CatalogStar createStar(java.lang.String record)
          Creates a CatalogStar object from the specified one line record in the file.
private static java.lang.String getData(java.util.StringTokenizer st)
          Gets the data.
 java.lang.String getHelpMessage()
          Gets the help message.
private static java.lang.String getMagnitude(java.lang.String string)
          Gets the magnitude or magnitude range.
private static java.lang.String getMagnitudeSystem(java.lang.String string)
          Gets the magnitude system.
 java.lang.String getName()
          Gets the catalog name.
private static java.lang.String getValue(java.lang.String string)
          Gets the value after the key name and "=".
private static java.lang.String nextToken(java.util.StringTokenizer st)
          Gets the next token.
 
Methods inherited from class net.aerith.misao.catalog.io.FileReader
close, getBlockCount, getBlockSize, getRecordSize, isFile, open, overlapsBlock, readNext
 
Methods inherited from class net.aerith.misao.catalog.io.CatalogReader
addURL, getDateLimit, getDateLimitMessage, getFovLimit, getFovLimitMessage, getMaximumPositionErrorInArcsec, hasDateLimit, hasFovLimit, isDateDependent, isInDirectory, open, read, setDate, setDefaultURL, setLimitingMagnitude, supportsExamination
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

NewvarReader

public NewvarReader()
Constructs an empty NewvarReader.

NewvarReader

public NewvarReader(java.net.URL url)
Constructs a NewvarReader with URL of the catalog file.
Parameters:
url - the URL of the catalog file.
Method Detail

getName

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

nextToken

private static java.lang.String nextToken(java.util.StringTokenizer st)
Gets the next token. When the token equals "-", it returns "".
Parameters:
st - the tokenizer.
Returns:
the next token.

getMagnitude

private static java.lang.String getMagnitude(java.lang.String string)
Gets the magnitude or magnitude range.
Parameters:
string - the string indicating the magnitude or magnitude range.
Returns:
the magnitude or magnitude range.

getMagnitudeSystem

private static java.lang.String getMagnitudeSystem(java.lang.String string)
Gets the magnitude system.
Parameters:
string - the string indicating the magnitude or magnitude range.
Returns:
the magnitude system.

getValue

private static java.lang.String getValue(java.lang.String string)
Gets the value after the key name and "=".
Parameters:
string - the string indicating the key and value.
Returns:
the value after the key name and "=".

getData

private static java.lang.String getData(java.util.StringTokenizer st)
Gets the data.
Parameters:
st - the StringTokenizer object.
Returns:
the data.

createStar

public CatalogStar createStar(java.lang.String record)
Creates a CatalogStar object from the specified one line record in the file. If some more records are required to create a star object, it returns null. This method must be overrided in the subclasses.
Overrides:
createStar in class FileReader
Parameters:
record - the one line record in the file.
Returns:
the star object.

getHelpMessage

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