FORTRAN Generation
(/./ftp/cats/J/AJ/123/1570)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/123/1570 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 2024-Apr-16
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/123/1570       alpha Persei and Praesepe Clusters       (Patience+, 2002)
*================================================================================
*A high angular resolution multiplicity survey of the open clusters
*{alpha} Persei and Praesepe.
*    Patience J., Ghez A.M., Reid I.N., Matthews K.
*   <Astron. J. 123, 1570 (2002)>
*   =2002AJ....123.1570P
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table1.dat'	! alpha Persei sample

      integer*4 nr__
      parameter (nr__=142)	! Number of records
      character*104 ar__   	! Full-size record

C  J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000.0
      real*8        DEdeg       ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*8   Name        ! Name (G1)
      character*9   BD          ! BD designation
      integer*4     HD          ! ? HD designation
      integer*4     RAh         ! (h) Right ascension (J2000.0) (1)
      integer*4     RAm         ! (min) Right ascension (J2000.0) (1)
      real*4        RAs         ! (s) Right ascension (J2000.0) (1)
      character*1   DE_         ! Declination sign (J2000.0) (1)
      integer*4     DEd         ! (deg) Declination (J2000.0) (1)
      integer*4     DEm         ! (arcmin) Declination (J2000.0) (1)
      real*4        DEs         ! (arcsec) Declination (J2000.0) (1)
      real*4        Vmag        ! (mag) V magnitude (1)
      real*4        B_V         ! (mag) ? B-V colour index (1)
      character*10  SpType      ! Spectral type (1)
      real*4        Kmag        ! (mag) ? 2MASS K magnitude
      character*1   n_Kmag      ! [e] e: Not in 2MASS database
      character*1   l_logLX     ! Limit flag on logLX
      real*4        logLX       ! ([10-7W]) ? X-ray luminosity (2)
      character*1   l_logLX2    ! Limit flag on logLX2
      real*4        logLX2      ! ([10-7W]) ? X-ray luminosity from Randich et al.,
*                                  1996A&A...305..785R
      character*1   l_vsini     ! Limit flag on vsini
      integer*4     vsini       ! (km/s) ? Rotational velocity
      character*4   Tel         ! Telescope (3)
*Note (1): From C.F. Prosser (ftp://cfa-ftp.harvard.edu/pub/stauffer/clusters )
*          or SIMBAD
*Note (2): X-ray luminosity from:
*     table1: Prosser et al., 1996AJ....112.1570P
*     table2: Randich & Schmitt, 1995, Cat. <J/A+A/298/115> and
*             Stern et al., 1995, Cat. <J/ApJ/448/683>
*Note (3): Telescopes as follows:
*      I = IRTF
*      P = Palomar
*      K = Keck
*      H = HST

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table2.dat'	! Praesepe sample

      integer*4 nr__1
      parameter (nr__1=100)	! Number of records
      character*104 ar__1  	! Full-size record

C  J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1     ! (deg) Right Ascension J2000.0
      real*8        DEdeg_1     ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*8   Name_1      ! Name (G1)
      character*9   BD_1        ! BD designation
      integer*4     HD_1        ! ? HD designation
      integer*4     RAh_1       ! (h) Right ascension (J2000.0) (1)
      integer*4     RAm_1       ! (min) Right ascension (J2000.0) (1)
      real*4        RAs_1       ! (s) Right ascension (J2000.0) (1)
      character*1   DE__1       ! Declination sign (J2000.0) (1)
      integer*4     DEd_1       ! (deg) Declination (J2000.0) (1)
      integer*4     DEm_1       ! (arcmin) Declination (J2000.0) (1)
      real*4        DEs_1       ! (arcsec) Declination (J2000.0) (1)
      real*4        Vmag_1      ! (mag) V magnitude (1)
      real*4        B_V_1       ! (mag) ? B-V colour index (1)
      character*10  SpType_1    ! Spectral type (1)
      real*4        Kmag_1      ! (mag) ? 2MASS K magnitude
      character*1   n_Kmag_1    ! [e] e: Not in 2MASS database
      character*1   l_logLX_1   ! Limit flag on logLX
      real*4        logLX_1     ! ([10-7W]) ? X-ray luminosity (2)
      character*1   l_logLX2_1  ! Limit flag on logLX2
      real*4        logLX2_1    ! ([10-7W]) ? X-ray luminosity from Randich et al.,
*                                  1996A&A...305..785R
      character*1   l_vsini_1   ! Limit flag on vsini
      integer*4     vsini_1     ! (km/s) ? Rotational velocity
      character*4   Tel_1       ! Telescope (3)
*Note (1): From C.F. Prosser (ftp://cfa-ftp.harvard.edu/pub/stauffer/clusters )
*          or SIMBAD
*Note (2): X-ray luminosity from:
*     table1: Prosser et al., 1996AJ....112.1570P
*     table2: Randich & Schmitt, 1995, Cat. <J/A+A/298/115> and
*             Stern et al., 1995, Cat. <J/ApJ/448/683>
*Note (3): Telescopes as follows:
*      I = IRTF
*      P = Palomar
*      K = Keck
*      H = HST

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table4a.dat'	! alpha Persei stellar binaries

      integer*4 nr__2
      parameter (nr__2=21)	! Number of records
      character*133 ar__2  	! Full-size record

      character*8   Name_2      ! Name (G1)
      character*2   m_Name      ! Multiplicity index on Name
      character*7   Tel_2       ! Telescope
      character*10  Date        ! ("YYYY/MM/DD") Observation date
      real*4        Sep         ! (arcsec) Separation
      real*4        e_Sep       ! (arcsec) rms uncertainty on Sep
      real*8        PA          ! (deg) Position angle
      real*4        e_PA        ! (deg) rms uncertainty on PA
      real*4        DF140W      ! (mag) F140W (1.3{mu}m) detection limit for unseen
*                                      companions for the single stars
      real*4        e_DF140W    ! (mag) rms uncertainty on DF140W
      real*4        M1          ! (solMass) ? Mass of the first component
      character*1   n_M1        ! [G] G: Giant
      real*4        M2          ! (solMass) ? Mass of the second component
      real*4        q           ! ? Mass ratio, M2/M1
      integer*4     NComp       ! ? Number of component
      character*47  Com         ! Comments (G2)

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table4b.dat'	! alpha Persei faint doubles

      integer*4 nr__3
      parameter (nr__3=9)	! Number of records
      character*133 ar__3  	! Full-size record

      character*8   Name_3      ! Name (G1)
      character*2   m_Name_1    ! Multiplicity index on Name
      character*7   Tel_3       ! Telescope
      character*10  Date_1      ! ("YYYY/MM/DD") Observation date
      real*4        Sep_1       ! (arcsec) Separation
      real*4        e_Sep_1     ! (arcsec) rms uncertainty on Sep
      real*8        PA_1        ! (deg) Position angle
      real*4        e_PA_1      ! (deg) rms uncertainty on PA
      real*4        DF140W_1    ! (mag) F140W (1.3{mu}m) detection limit for unseen
*                                      companions for the single stars
      real*4        e_DF140W_1  ! (mag) rms uncertainty on DF140W
      real*4        M1_1        ! (solMass) ? Mass of the first component
      character*1   n_M1_1      ! [G] G: Giant
      real*4        M2_1        ! (solMass) ? Mass of the second component
      real*4        q_1         ! ? Mass ratio, M2/M1
      integer*4     NComp_1     ! ? Number of component
      character*47  Com_1       ! Comments (G2)

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table5a.dat'	! Praesepe binaries

      integer*4 nr__4
      parameter (nr__4=12)	! Number of records
      character*133 ar__4  	! Full-size record

      character*8   Name_4      ! Name (G1)
      character*2   m_Name_2    ! Multiplicity index on Name
      character*7   Tel_4       ! Telescope
      character*10  Date_2      ! ("YYYY/MM/DD") Observation date
      real*4        Sep_2       ! (arcsec) Separation
      real*4        e_Sep_2     ! (arcsec) rms uncertainty on Sep
      real*8        PA_2        ! (deg) Position angle
      real*4        e_PA_2      ! (deg) rms uncertainty on PA
      real*4        DF140W_2    ! (mag) F140W (1.3{mu}m) detection limit for unseen
*                                      companions for the single stars
      real*4        e_DF140W_2  ! (mag) rms uncertainty on DF140W
      real*4        M1_2        ! (solMass) ? Mass of the first component
      character*1   n_M1_2      ! [G] G: Giant
      real*4        M2_2        ! (solMass) ? Mass of the second component
      real*4        q_2         ! ? Mass ratio, M2/M1
      integer*4     NComp_2     ! ? Number of component
      character*47  Com_2       ! Comments (G2)

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table6.dat'	! alpha Persei single stars

      integer*4 nr__5
      parameter (nr__5=152)	! Number of records
      character*86 ar__5  	! Full-size record

      character*8   Name_5      ! Name (G1)
      character*7   Tel_5       ! Telescope
      character*10  Date_3      ! ("YYYY/MM/DD") Observation date
      real*4        DF140W_3    ! (mag) ? F140W (1.3{mu}m) detection limit for
*                                       companions at a separation of 0.15"
      real*4        q_3         ! ? Mass ratio at 0.15"
      character*1   n_q         ! [G] G: giant
      character*1   qlim        ! Mass ratio limit
      character*45  Com_3       ! Comments  (G2)

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table7.dat'	! Praesepe single stars

      integer*4 nr__6
      parameter (nr__6=111)	! Number of records
      character*86 ar__6  	! Full-size record

      character*8   Name_6      ! Name (G1)
      character*7   Tel_6       ! Telescope
      character*10  Date_4      ! ("YYYY/MM/DD") Observation date
      real*4        DF140W_4    ! (mag) ? F140W (1.3{mu}m) detection limit for
*                                       companions at a separation of 0.15"
      real*4        q_4         ! ? Mass ratio at 0.15"
      character*1   n_q_1       ! [G] G: giant
      character*1   qlim_1      ! Mass ratio limit
      character*45  Com_4       ! Comments  (G2)

C=============================================================================

C  Loading file 'table1.dat'	! alpha Persei sample

C  Format for file interpretation

    1 format(
     +  A8,1X,A9,1X,I5,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,
     +  F6.3,F6.3,A10,1X,F6.3,A1,A1,F5.2,1X,A1,F5.2,1X,A1,I3,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,142
        read(1,'(A104)')ar__
        read(ar__,1)
     +  Name,BD,HD,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,B_V,SpType,Kmag,
     +  n_Kmag,l_logLX,logLX,l_logLX2,logLX2,l_vsini,vsini,Tel
        if(ar__(20:24) .EQ. '') HD = iNULL__
        if(ar__(58:63) .EQ. '') B_V = rNULL__
        if(ar__(75:80) .EQ. '') Kmag = rNULL__
        if(ar__(83:87) .EQ. '') logLX = rNULL__
        if(ar__(90:94) .EQ. '') logLX2 = rNULL__
        if(ar__(97:99) .EQ. '') vsini = iNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Name,BD,HD,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,B_V,SpType,Kmag,
     +  n_Kmag,l_logLX,logLX,l_logLX2,logLX2,l_vsini,vsini,Tel
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table2.dat'	! Praesepe sample

C  Format for file interpretation

    2 format(
     +  A8,1X,A9,1X,I5,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,
     +  F6.3,F6.3,A10,1X,F6.3,A1,A1,F5.2,1X,A1,F5.2,1X,A1,I3,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,100
        read(1,'(A104)')ar__1
        read(ar__1,2)
     +  Name_1,BD_1,HD_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
     +  Vmag_1,B_V_1,SpType_1,Kmag_1,n_Kmag_1,l_logLX_1,logLX_1,
     +  l_logLX2_1,logLX2_1,l_vsini_1,vsini_1,Tel_1
        if(ar__1(20:24) .EQ. '') HD_1 = iNULL__
        if(ar__1(58:63) .EQ. '') B_V_1 = rNULL__
        if(ar__1(75:80) .EQ. '') Kmag_1 = rNULL__
        if(ar__1(83:87) .EQ. '') logLX_1 = rNULL__
        if(ar__1(90:94) .EQ. '') logLX2_1 = rNULL__
        if(ar__1(97:99) .EQ. '') vsini_1 = iNULL__
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  Name_1,BD_1,HD_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
     +  Vmag_1,B_V_1,SpType_1,Kmag_1,n_Kmag_1,l_logLX_1,logLX_1,
     +  l_logLX2_1,logLX2_1,l_vsini_1,vsini_1,Tel_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table4a.dat'	! alpha Persei stellar binaries

C  Format for file interpretation

    3 format(
     +  A8,A2,1X,A7,1X,A10,1X,F5.3,1X,F5.3,1X,F7.3,1X,F5.3,1X,F5.3,1X,
     +  F5.3,1X,F4.2,A1,F4.2,1X,F5.3,1X,I1,1X,A47)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4a.dat')
      write(6,*) '....Loading file: table4a.dat'
      do i__=1,21
        read(1,'(A133)')ar__2
        read(ar__2,3)
     +  Name_2,m_Name,Tel_2,Date,Sep,e_Sep,PA,e_PA,DF140W,e_DF140W,M1,
     +  n_M1,M2,q,NComp,Com
        if(ar__2(69:72) .EQ. '') M1 = rNULL__
        if(ar__2(74:77) .EQ. '') M2 = rNULL__
        if(ar__2(79:83) .EQ. '') q = rNULL__
        if(ar__2(85:85) .EQ. '') NComp = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2,m_Name,Tel_2,Date,Sep,e_Sep,PA,e_PA,DF140W,e_DF140W,M1,
     +  n_M1,M2,q,NComp,Com
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table4b.dat'	! alpha Persei faint doubles

C  Format for file interpretation

    4 format(
     +  A8,A2,1X,A7,1X,A10,1X,F5.3,1X,F5.3,1X,F7.3,1X,F5.3,1X,F5.3,1X,
     +  F5.3,1X,F4.2,A1,F4.2,1X,F5.3,1X,I1,1X,A47)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4b.dat')
      write(6,*) '....Loading file: table4b.dat'
      do i__=1,9
        read(1,'(A133)')ar__3
        read(ar__3,4)
     +  Name_3,m_Name_1,Tel_3,Date_1,Sep_1,e_Sep_1,PA_1,e_PA_1,
     +  DF140W_1,e_DF140W_1,M1_1,n_M1_1,M2_1,q_1,NComp_1,Com_1
        if(ar__3(69:72) .EQ. '') M1_1 = rNULL__
        if(ar__3(74:77) .EQ. '') M2_1 = rNULL__
        if(ar__3(79:83) .EQ. '') q_1 = rNULL__
        if(ar__3(85:85) .EQ. '') NComp_1 = iNULL__
c    ..............Just test output...........
        write(6,4)
     +  Name_3,m_Name_1,Tel_3,Date_1,Sep_1,e_Sep_1,PA_1,e_PA_1,
     +  DF140W_1,e_DF140W_1,M1_1,n_M1_1,M2_1,q_1,NComp_1,Com_1
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table5a.dat'	! Praesepe binaries

C  Format for file interpretation

    5 format(
     +  A8,A2,1X,A7,1X,A10,1X,F5.3,1X,F5.3,1X,F7.3,1X,F5.3,1X,F5.3,1X,
     +  F5.3,1X,F4.2,A1,F4.2,1X,F5.3,1X,I1,1X,A47)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5a.dat')
      write(6,*) '....Loading file: table5a.dat'
      do i__=1,12
        read(1,'(A133)')ar__4
        read(ar__4,5)
     +  Name_4,m_Name_2,Tel_4,Date_2,Sep_2,e_Sep_2,PA_2,e_PA_2,
     +  DF140W_2,e_DF140W_2,M1_2,n_M1_2,M2_2,q_2,NComp_2,Com_2
        if(ar__4(69:72) .EQ. '') M1_2 = rNULL__
        if(ar__4(74:77) .EQ. '') M2_2 = rNULL__
        if(ar__4(79:83) .EQ. '') q_2 = rNULL__
        if(ar__4(85:85) .EQ. '') NComp_2 = iNULL__
c    ..............Just test output...........
        write(6,5)
     +  Name_4,m_Name_2,Tel_4,Date_2,Sep_2,e_Sep_2,PA_2,e_PA_2,
     +  DF140W_2,e_DF140W_2,M1_2,n_M1_2,M2_2,q_2,NComp_2,Com_2
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table6.dat'	! alpha Persei single stars

C  Format for file interpretation

    6 format(A8,1X,A7,1X,A10,1X,F4.2,1X,F4.2,A1,1X,A1,1X,A45)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,152
        read(1,'(A86)')ar__5
        read(ar__5,6)Name_5,Tel_5,Date_3,DF140W_3,q_3,n_q,qlim,Com_3
        if(ar__5(29:32) .EQ. '') DF140W_3 = rNULL__
        if(ar__5(34:37) .EQ. '') q_3 = rNULL__
c    ..............Just test output...........
        write(6,6)Name_5,Tel_5,Date_3,DF140W_3,q_3,n_q,qlim,Com_3
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table7.dat'	! Praesepe single stars

C  Format for file interpretation

    7 format(A8,1X,A7,1X,A10,1X,F4.2,1X,F4.2,A1,1X,A1,1X,A45)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,111
        read(1,'(A86)')ar__6
        read(ar__6,7)
     +  Name_6,Tel_6,Date_4,DF140W_4,q_4,n_q_1,qlim_1,Com_4
        if(ar__6(29:32) .EQ. '') DF140W_4 = rNULL__
        if(ar__6(34:37) .EQ. '') q_4 = rNULL__
c    ..............Just test output...........
        write(6,7)
     +  Name_6,Tel_6,Date_4,DF140W_4,q_4,n_q_1,qlim_1,Com_4
c    .......End.of.Just test output...........
      end do
      close(1)

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