FORTRAN Generation
(/./ftp/cats/J/AJ/138/466)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/138/466 into FORTRAN code for loading all data files into arrays.

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      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      integer*4     Obj        (nr__) ! NSVS Object identification number
      real*8        Per        (nr__) ! (d) Period
      real*4        J_H        (nr__) ! (mag) ? 2MASS (J-H) color index
      real*4        H_K        (nr__) ! (mag) ? 2MASS (H-K) color index
      real*4        Kmag       (nr__) ! (mag) ? 2MASS K_S_ band magnitude
      real*4        mROTSE     (nr__) ! (mag) Mean ROTSE unfiltered magnitude
      real*4        Amp        (nr__) ! (mag) Fourier fit amplitude of oscillation
      character*26  ID         (nr__) ! Previous identification from Simbad
      character*24  Class      (nr__) ! Prior classification from Simbad
      character*3   Note       (nr__) ! 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    (nr__1) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination in decimal degrees (J2000)
      integer*4     Obj_1      (nr__1) ! NSVS Object identification number
      real*8        Per_1      (nr__1) ! (d) Period
      real*4        J_H_1      (nr__1) ! (mag) ? 2MASS (J-H) color index
      real*4        H_K_1      (nr__1) ! (mag) ? 2MASS (H-K) color index
      real*4        Kmag_1     (nr__1) ! (mag) ? 2MASS K_S_ band magnitude
      real*4        mROTSE_1   (nr__1) ! (mag) Mean ROTSE unfiltered magnitude
      real*4        Amp_1      (nr__1) ! (mag) Fourier fit amplitude of oscillation
      character*26  ID_1       (nr__1) ! Previous identification from Simbad
      character*24  Class_1    (nr__1) ! Prior classification from Simbad
      character*3   Note_1     (nr__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    (nr__2) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_2    (nr__2) ! (deg) Declination in decimal degrees (J2000)
      integer*4     Obj_2      (nr__2) ! NSVS Object identification number
      real*8        Per_2      (nr__2) ! (d) Period
      real*4        J_H_2      (nr__2) ! (mag) ? 2MASS (J-H) color index
      real*4        H_K_2      (nr__2) ! (mag) ? 2MASS (H-K) color index
      real*4        Kmag_2     (nr__2) ! (mag) ? 2MASS K_S_ band magnitude
      real*4        mROTSE_2   (nr__2) ! (mag) Mean ROTSE unfiltered magnitude
      real*4        Amp_2      (nr__2) ! (mag) Fourier fit amplitude of oscillation
      character*26  ID_2       (nr__2) ! Previous identification from Simbad
      character*24  Class_2    (nr__2) ! Prior classification from Simbad
      character*3   Note_2     (nr__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    (nr__3) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_3    (nr__3) ! (deg) Declination in decimal degrees (J2000)
      integer*4     Obj_3      (nr__3) ! NSVS Object identification number
      real*8        Per_3      (nr__3) ! (d) Period
      real*4        J_H_3      (nr__3) ! (mag) ? 2MASS (J-H) color index
      real*4        H_K_3      (nr__3) ! (mag) ? 2MASS (H-K) color index
      real*4        Kmag_3     (nr__3) ! (mag) ? 2MASS K_S_ band magnitude
      real*4        mROTSE_3   (nr__3) ! (mag) Mean ROTSE unfiltered magnitude
      real*4        Amp_3      (nr__3) ! (mag) Fourier fit amplitude of oscillation
      character*26  ID_3       (nr__3) ! Previous identification from Simbad
      character*24  Class_3    (nr__3) ! Prior classification from Simbad
      character*3   Note_3     (nr__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    (nr__4) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_4    (nr__4) ! (deg) Declination in decimal degrees (J2000)
      integer*4     Obj_4      (nr__4) ! NSVS Object identification number
      real*8        Per_4      (nr__4) ! (d) Period
      real*4        J_H_4      (nr__4) ! (mag) ? 2MASS (J-H) color index
      real*4        H_K_4      (nr__4) ! (mag) ? 2MASS (H-K) color index
      real*4        Kmag_4     (nr__4) ! (mag) ? 2MASS K_S_ band magnitude
      real*4        mROTSE_4   (nr__4) ! (mag) Mean ROTSE unfiltered magnitude
      real*4        Amp_4      (nr__4) ! (mag) Fourier fit amplitude of oscillation
      character*26  ID_4       (nr__4) ! Previous identification from Simbad
      character*24  Class_4    (nr__4) ! Prior classification from Simbad
      character*3   Note_4     (nr__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(i__),DEdeg(i__),Obj(i__),Per(i__),J_H(i__),H_K(i__),
     +  Kmag(i__),mROTSE(i__),Amp(i__),ID(i__),Class(i__),Note(i__)
        if(ar__(40:45) .EQ. '') J_H(i__) = rNULL__
        if(ar__(47:52) .EQ. '') H_K(i__) = rNULL__
        if(ar__(54:59) .EQ. '') Kmag(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  RAdeg(i__),DEdeg(i__),Obj(i__),Per(i__),J_H(i__),H_K(i__),
     +  Kmag(i__),mROTSE(i__),Amp(i__),ID(i__),Class(i__),Note(i__)
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(i__),DEdeg_1(i__),Obj_1(i__),Per_1(i__),J_H_1(i__),
     +  H_K_1(i__),Kmag_1(i__),mROTSE_1(i__),Amp_1(i__),ID_1(i__),
     +  Class_1(i__),Note_1(i__)
        if(ar__1(40:45) .EQ. '') J_H_1(i__) = rNULL__
        if(ar__1(47:52) .EQ. '') H_K_1(i__) = rNULL__
        if(ar__1(54:59) .EQ. '') Kmag_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  RAdeg_1(i__),DEdeg_1(i__),Obj_1(i__),Per_1(i__),J_H_1(i__),
     +  H_K_1(i__),Kmag_1(i__),mROTSE_1(i__),Amp_1(i__),ID_1(i__),
     +  Class_1(i__),Note_1(i__)
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(i__),DEdeg_2(i__),Obj_2(i__),Per_2(i__),J_H_2(i__),
     +  H_K_2(i__),Kmag_2(i__),mROTSE_2(i__),Amp_2(i__),ID_2(i__),
     +  Class_2(i__),Note_2(i__)
        if(ar__2(40:45) .EQ. '') J_H_2(i__) = rNULL__
        if(ar__2(47:52) .EQ. '') H_K_2(i__) = rNULL__
        if(ar__2(54:59) .EQ. '') Kmag_2(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  RAdeg_2(i__),DEdeg_2(i__),Obj_2(i__),Per_2(i__),J_H_2(i__),
     +  H_K_2(i__),Kmag_2(i__),mROTSE_2(i__),Amp_2(i__),ID_2(i__),
     +  Class_2(i__),Note_2(i__)
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(i__),DEdeg_3(i__),Obj_3(i__),Per_3(i__),J_H_3(i__),
     +  H_K_3(i__),Kmag_3(i__),mROTSE_3(i__),Amp_3(i__),ID_3(i__),
     +  Class_3(i__),Note_3(i__)
        if(ar__3(40:45) .EQ. '') J_H_3(i__) = rNULL__
        if(ar__3(47:52) .EQ. '') H_K_3(i__) = rNULL__
        if(ar__3(54:59) .EQ. '') Kmag_3(i__) = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  RAdeg_3(i__),DEdeg_3(i__),Obj_3(i__),Per_3(i__),J_H_3(i__),
     +  H_K_3(i__),Kmag_3(i__),mROTSE_3(i__),Amp_3(i__),ID_3(i__),
     +  Class_3(i__),Note_3(i__)
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(i__),DEdeg_4(i__),Obj_4(i__),Per_4(i__),J_H_4(i__),
     +  H_K_4(i__),Kmag_4(i__),mROTSE_4(i__),Amp_4(i__),ID_4(i__),
     +  Class_4(i__),Note_4(i__)
        if(ar__4(40:45) .EQ. '') J_H_4(i__) = rNULL__
        if(ar__4(47:52) .EQ. '') H_K_4(i__) = rNULL__
        if(ar__4(54:59) .EQ. '') Kmag_4(i__) = rNULL__
c    ..............Just test output...........
        write(6,5)
     +  RAdeg_4(i__),DEdeg_4(i__),Obj_4(i__),Per_4(i__),J_H_4(i__),
     +  H_K_4(i__),Kmag_4(i__),mROTSE_4(i__),Amp_4(i__),ID_4(i__),
     +  Class_4(i__),Note_4(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end