Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/138/466 into FORTRAN code for reading data files line by line.
Note that special values are assigned to unknown or unspecified
numbers (also called NULL numbers);
when necessary, the coordinate components making up the right ascension
and declination are converted into floating-point numbers
representing these angles in degrees.
program load_ReadMe
C=============================================================================
C F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2026-Oct-11
C=============================================================================
* This code was generated from the ReadMe file documenting a catalogue
* according to the "Standard for Documentation of Astronomical Catalogues"
* currently in use by the Astronomical Data Centers (CDS, ADC, A&A)
* (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx)
* Please report problems or questions to
C=============================================================================
implicit none
* Unspecified or NULL values, generally corresponding to blank columns,
* are assigned one of the following special values:
* rNULL__ for unknown or NULL floating-point values
* iNULL__ for unknown or NULL integer values
real*4 rNULL__
integer*4 iNULL__
parameter (rNULL__=--2147483648.) ! NULL real number
parameter (iNULL__=(-2147483647-1)) ! NULL int number
integer idig ! testing NULL number
C=============================================================================
Cat. J/AJ/138/466 NSVS variables automated classification (Hoffman+, 2009)
*================================================================================
*Automated variable star classification using the Northern Sky Variability
*Survey.
* Hoffman D.I., Harrison T.E., McNamara B.J.
* <Astron. J., 138, 466-477 (2009)>
* =2009AJ....138..466H
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Algol/{beta}Lyrae Candidates
integer*4 nr__
parameter (nr__=551) ! Number of records
character*128 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
real*8 RAdeg ! (deg) Right Ascension in decimal degrees (J2000)
real*8 DEdeg ! (deg) Declination in decimal degrees (J2000)
integer*4 Obj ! NSVS Object identification number
real*8 Per ! (d) Period
real*4 J_H ! (mag) ? 2MASS (J-H) color index
real*4 H_K ! (mag) ? 2MASS (H-K) color index
real*4 Kmag ! (mag) ? 2MASS K_S_ band magnitude
real*4 mROTSE ! (mag) Mean ROTSE unfiltered magnitude
real*4 Amp ! (mag) Fourier fit amplitude of oscillation
character*26 ID ! Previous identification from Simbad
character*24 Class ! Prior classification from Simbad
character*3 Note ! Object flag (1)
*Note (1): Notes as follows:
* Yes = In Fourier region where {beta} Lyr are expected
* No = Not in Fourier region where {beta} Lyr are expected
* 1 = RR Lyr candidate identified by Kinemuchi et al. 2006
* (Cat. J/AJ/132/1202)
* 2 = Possible W UMa candidate misidentified as an RR Lyr variable
* because it has a period in overlap region (see text)
* 5 = Possible false period, as discussed in the text
* 6 = Candidate exibits irregular photometric variations
* 7 = Candidate exibits semi-regular photometric variations
* 8 = Candidate does not contain sufficient data for classification,
* but is variable
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! RR Lyr Candidates
integer*4 nr__1
parameter (nr__1=522) ! Number of records
character*128 ar__1 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
real*8 RAdeg_1 ! (deg) Right Ascension in decimal degrees (J2000)
real*8 DEdeg_1 ! (deg) Declination in decimal degrees (J2000)
integer*4 Obj_1 ! NSVS Object identification number
real*8 Per_1 ! (d) Period
real*4 J_H_1 ! (mag) ? 2MASS (J-H) color index
real*4 H_K_1 ! (mag) ? 2MASS (H-K) color index
real*4 Kmag_1 ! (mag) ? 2MASS K_S_ band magnitude
real*4 mROTSE_1 ! (mag) Mean ROTSE unfiltered magnitude
real*4 Amp_1 ! (mag) Fourier fit amplitude of oscillation
character*26 ID_1 ! Previous identification from Simbad
character*24 Class_1 ! Prior classification from Simbad
character*3 Note_1 ! Object flag (1)
*Note (1): Notes as follows:
* Yes = In Fourier region where {beta} Lyr are expected
* No = Not in Fourier region where {beta} Lyr are expected
* 1 = RR Lyr candidate identified by Kinemuchi et al. 2006
* (Cat. J/AJ/132/1202)
* 2 = Possible W UMa candidate misidentified as an RR Lyr variable
* because it has a period in overlap region (see text)
* 5 = Possible false period, as discussed in the text
* 6 = Candidate exibits irregular photometric variations
* 7 = Candidate exibits semi-regular photometric variations
* 8 = Candidate does not contain sufficient data for classification,
* but is variable
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Cepheid/Long Period Variable Candidates
integer*4 nr__2
parameter (nr__2=672) ! Number of records
character*128 ar__2 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
real*8 RAdeg_2 ! (deg) Right Ascension in decimal degrees (J2000)
real*8 DEdeg_2 ! (deg) Declination in decimal degrees (J2000)
integer*4 Obj_2 ! NSVS Object identification number
real*8 Per_2 ! (d) Period
real*4 J_H_2 ! (mag) ? 2MASS (J-H) color index
real*4 H_K_2 ! (mag) ? 2MASS (H-K) color index
real*4 Kmag_2 ! (mag) ? 2MASS K_S_ band magnitude
real*4 mROTSE_2 ! (mag) Mean ROTSE unfiltered magnitude
real*4 Amp_2 ! (mag) Fourier fit amplitude of oscillation
character*26 ID_2 ! Previous identification from Simbad
character*24 Class_2 ! Prior classification from Simbad
character*3 Note_2 ! Object flag (1)
*Note (1): Notes as follows:
* Yes = In Fourier region where {beta} Lyr are expected
* No = Not in Fourier region where {beta} Lyr are expected
* 1 = RR Lyr candidate identified by Kinemuchi et al. 2006
* (Cat. J/AJ/132/1202)
* 2 = Possible W UMa candidate misidentified as an RR Lyr variable
* because it has a period in overlap region (see text)
* 5 = Possible false period, as discussed in the text
* 6 = Candidate exibits irregular photometric variations
* 7 = Candidate exibits semi-regular photometric variations
* 8 = Candidate does not contain sufficient data for classification,
* but is variable
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! W UMa Candidates
integer*4 nr__3
parameter (nr__3=2332) ! Number of records
character*128 ar__3 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
real*8 RAdeg_3 ! (deg) Right Ascension in decimal degrees (J2000)
real*8 DEdeg_3 ! (deg) Declination in decimal degrees (J2000)
integer*4 Obj_3 ! NSVS Object identification number
real*8 Per_3 ! (d) Period
real*4 J_H_3 ! (mag) ? 2MASS (J-H) color index
real*4 H_K_3 ! (mag) ? 2MASS (H-K) color index
real*4 Kmag_3 ! (mag) ? 2MASS K_S_ band magnitude
real*4 mROTSE_3 ! (mag) Mean ROTSE unfiltered magnitude
real*4 Amp_3 ! (mag) Fourier fit amplitude of oscillation
character*26 ID_3 ! Previous identification from Simbad
character*24 Class_3 ! Prior classification from Simbad
character*3 Note_3 ! Object flag (1)
*Note (1): Notes as follows:
* Yes = In Fourier region where {beta} Lyr are expected
* No = Not in Fourier region where {beta} Lyr are expected
* 1 = RR Lyr candidate identified by Kinemuchi et al. 2006
* (Cat. J/AJ/132/1202)
* 2 = Possible W UMa candidate misidentified as an RR Lyr variable
* because it has a period in overlap region (see text)
* 5 = Possible false period, as discussed in the text
* 6 = Candidate exibits irregular photometric variations
* 7 = Candidate exibits semi-regular photometric variations
* 8 = Candidate does not contain sufficient data for classification,
* but is variable
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Short Period/{delta}Scuti Candidates
integer*4 nr__4
parameter (nr__4=57) ! Number of records
character*128 ar__4 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
real*8 RAdeg_4 ! (deg) Right Ascension in decimal degrees (J2000)
real*8 DEdeg_4 ! (deg) Declination in decimal degrees (J2000)
integer*4 Obj_4 ! NSVS Object identification number
real*8 Per_4 ! (d) Period
real*4 J_H_4 ! (mag) ? 2MASS (J-H) color index
real*4 H_K_4 ! (mag) ? 2MASS (H-K) color index
real*4 Kmag_4 ! (mag) ? 2MASS K_S_ band magnitude
real*4 mROTSE_4 ! (mag) Mean ROTSE unfiltered magnitude
real*4 Amp_4 ! (mag) Fourier fit amplitude of oscillation
character*26 ID_4 ! Previous identification from Simbad
character*24 Class_4 ! Prior classification from Simbad
character*3 Note_4 ! Object flag (1)
*Note (1): Notes as follows:
* Yes = In Fourier region where {beta} Lyr are expected
* No = Not in Fourier region where {beta} Lyr are expected
* 1 = RR Lyr candidate identified by Kinemuchi et al. 2006
* (Cat. J/AJ/132/1202)
* 2 = Possible W UMa candidate misidentified as an RR Lyr variable
* because it has a period in overlap region (see text)
* 5 = Possible false period, as discussed in the text
* 6 = Candidate exibits irregular photometric variations
* 7 = Candidate exibits semi-regular photometric variations
* 8 = Candidate does not contain sufficient data for classification,
* but is variable
C=============================================================================
C Loading file 'table1.dat' ! Algol/{beta}Lyrae Candidates
C Format for file interpretation
1 format(
+ F9.5,1X,F9.5,1X,I8,1X,F9.5,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
+ F5.3,1X,A26,1X,A24,1X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,551
read(1,'(A128)')ar__
read(ar__,1)
+ RAdeg,DEdeg,Obj,Per,J_H,H_K,Kmag,mROTSE,Amp,ID,Class,Note
if(ar__(40:45) .EQ. '') J_H = rNULL__
if(ar__(47:52) .EQ. '') H_K = rNULL__
if(ar__(54:59) .EQ. '') Kmag = rNULL__
c ..............Just test output...........
write(6,1)
+ RAdeg,DEdeg,Obj,Per,J_H,H_K,Kmag,mROTSE,Amp,ID,Class,Note
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! RR Lyr Candidates
C Format for file interpretation
2 format(
+ F9.5,1X,F9.5,1X,I8,1X,F9.5,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
+ F5.3,1X,A26,1X,A24,1X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,522
read(1,'(A128)')ar__1
read(ar__1,2)
+ RAdeg_1,DEdeg_1,Obj_1,Per_1,J_H_1,H_K_1,Kmag_1,mROTSE_1,Amp_1,
+ ID_1,Class_1,Note_1
if(ar__1(40:45) .EQ. '') J_H_1 = rNULL__
if(ar__1(47:52) .EQ. '') H_K_1 = rNULL__
if(ar__1(54:59) .EQ. '') Kmag_1 = rNULL__
c ..............Just test output...........
write(6,2)
+ RAdeg_1,DEdeg_1,Obj_1,Per_1,J_H_1,H_K_1,Kmag_1,mROTSE_1,Amp_1,
+ ID_1,Class_1,Note_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Cepheid/Long Period Variable Candidates
C Format for file interpretation
3 format(
+ F9.5,1X,F9.5,1X,I8,1X,F9.5,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
+ F5.3,1X,A26,1X,A24,1X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,672
read(1,'(A128)')ar__2
read(ar__2,3)
+ RAdeg_2,DEdeg_2,Obj_2,Per_2,J_H_2,H_K_2,Kmag_2,mROTSE_2,Amp_2,
+ ID_2,Class_2,Note_2
if(ar__2(40:45) .EQ. '') J_H_2 = rNULL__
if(ar__2(47:52) .EQ. '') H_K_2 = rNULL__
if(ar__2(54:59) .EQ. '') Kmag_2 = rNULL__
c ..............Just test output...........
write(6,3)
+ RAdeg_2,DEdeg_2,Obj_2,Per_2,J_H_2,H_K_2,Kmag_2,mROTSE_2,Amp_2,
+ ID_2,Class_2,Note_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! W UMa Candidates
C Format for file interpretation
4 format(
+ F9.5,1X,F9.5,1X,I8,1X,F9.5,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
+ F5.3,1X,A26,1X,A24,1X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,2332
read(1,'(A128)')ar__3
read(ar__3,4)
+ RAdeg_3,DEdeg_3,Obj_3,Per_3,J_H_3,H_K_3,Kmag_3,mROTSE_3,Amp_3,
+ ID_3,Class_3,Note_3
if(ar__3(40:45) .EQ. '') J_H_3 = rNULL__
if(ar__3(47:52) .EQ. '') H_K_3 = rNULL__
if(ar__3(54:59) .EQ. '') Kmag_3 = rNULL__
c ..............Just test output...........
write(6,4)
+ RAdeg_3,DEdeg_3,Obj_3,Per_3,J_H_3,H_K_3,Kmag_3,mROTSE_3,Amp_3,
+ ID_3,Class_3,Note_3
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! Short Period/{delta}Scuti Candidates
C Format for file interpretation
5 format(
+ F9.5,1X,F9.5,1X,I8,1X,F9.5,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
+ F5.3,1X,A26,1X,A24,1X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,57
read(1,'(A128)')ar__4
read(ar__4,5)
+ RAdeg_4,DEdeg_4,Obj_4,Per_4,J_H_4,H_K_4,Kmag_4,mROTSE_4,Amp_4,
+ ID_4,Class_4,Note_4
if(ar__4(40:45) .EQ. '') J_H_4 = rNULL__
if(ar__4(47:52) .EQ. '') H_K_4 = rNULL__
if(ar__4(54:59) .EQ. '') Kmag_4 = rNULL__
c ..............Just test output...........
write(6,5)
+ RAdeg_4,DEdeg_4,Obj_4,Per_4,J_H_4,H_K_4,Kmag_4,mROTSE_4,Amp_4,
+ ID_4,Class_4,Note_4
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end