FORTRAN Generation
(/./ftp/cats/J/ApJ/704/531)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/704/531 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 2024-Mar-28
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/ApJ/704/531        The coevality of young binary systems        (Kraus+, 2009)
*================================================================================
*The coevality of young binary systems.
*    Kraus A.L., Hillenbrand L.A.
*   <Astrophys. J., 704, 531-547 (2009)>
*   =2009ApJ...704..531K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Binary sample: observed and inferred properties

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

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

      character*12  Name       (nr__) ! Name
      integer*4     RAh        (nr__) ! (h) Hour of right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Minute of right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Second of right ascension (J2000)
      character*1   DE_        (nr__) ! Sign of declination (J2000)
      integer*4     DEd        (nr__) ! (deg) Degree of declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Arcsecond of declination (J2000)
      character*2   SB         (nr__) ! Spectroscopic binary ("Sep" is null)
      real*8        Sep        (nr__) ! (mas) ? Separation
      real*4        e_Sep      (nr__) ! (mas) ? Uncertainty in Sep
      character*1   n_Flux     (nr__) ! [JHK] Band in which "Flux" is measured
      real*4        Flux       (nr__) ! (mag) 2MASS magnitude in "Band"
      character*5   SpT        (nr__) ! MK spectral type
      real*4        e_SpT      (nr__) ! Spectral type uncertainty
      real*4        Av         (nr__) ! (mag) Extinction
      integer*4     Teff       (nr__) ! (K) Effective temperature
      integer*4     e_Teff     (nr__) ! (K) Teff uncertainty
      real*4        Mbol       (nr__) ! (mag) Bolometric magnitude
      character*2   Warm       (nr__) ! [Y/N? ] Warm disk?
      character*14  Ref        (nr__) ! References (see refs.dat file)

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

C  Declarations for 'table2.dat'	! Derived ages and masses

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

      character*12  Name_1     (nr__1) ! Name
      real*4        Mass       (nr__1) ! (Msun) ? Adopted inferred mass from our hybrid system
      real*4        E_Mass     (nr__1) ! (Msun) ? Positive error in Mass
      real*4        e_Mass_1   (nr__1) ! (Msun) ? Negative error in Mass
      character*1   l_logtau   (nr__1) ! Limit flag on logtau
      real*4        logtau     (nr__1) ! ([yr]) Adopted inferred age from our hybrid system
      real*4        E_logtau   (nr__1) ! ([yr]) ? Positive error in logtau
      real*4        e_logtau_1 (nr__1) ! ([yr]) ? Negative error in logtau
      real*4        MassL      (nr__1) ! (Msun) ? Mass from the Lyon models (1)
      real*4        E_MassL    (nr__1) ! (Msun) ? Positive error in MassL
      real*4        e_MassL_1  (nr__1) ! (Msun) ? Negative error in MassL
      character*1   l_logtauL  (nr__1) ! Limit flag on logtauL
      real*4        logtauL    (nr__1) ! ([yr]) Age from the Lyon models (1)
      real*4        E_logtauL  (nr__1) ! ([yr]) ? Positive error in logtauL
      real*4        e_logtauL_1(nr__1) ! ([yr]) ? Negative error in logtauL
      real*4        MassD      (nr__1) ! (Msun) ? Mass from the DM97 model (2)
      real*4        E_MassD    (nr__1) ! (Msun) ? Positive error in MassD
      real*4        e_MassD_1  (nr__1) ! (Msun) ? Negative error in MassD
      character*1   l_logtauD  (nr__1) ! Limit flag on logtauD
      real*4        logtauD    (nr__1) ! ([yr]) Age from the DM97 model (2)
      real*4        E_logtauD  (nr__1) ! ([yr]) ? Positive error in logtauD
      real*4        e_logtauD_1(nr__1) ! ([yr]) ? Negative error in logtauD
*Note (1): (Baraffe et al. 1998, Cat. J/A+A/337/403; Chabrier et al.
*          2000ApJ...542..464C)
*Note (2): D'Antona & Mazzitelli (1997MmSAI..68..807D)

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

C  Declarations for 'tablea1.dat'	! Single-star sample: observed properties

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

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

      character*22  Name_2     (nr__2) ! Star name
      integer*4     RAh_1      (nr__2) ! (h) Hour of right ascension (J2000)
      integer*4     RAm_1      (nr__2) ! (min) Minute of right ascension (J2000)
      real*4        RAs_1      (nr__2) ! (s) Second of right ascension (J2000)
      character*1   DE__1      (nr__2) ! Sign of declination (J2000)
      integer*4     DEd_1      (nr__2) ! (deg) Degree of declination (J2000)
      integer*4     DEm_1      (nr__2) ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs_1      (nr__2) ! (arcsec) Arcsecond of declination (J2000)
      real*4        Jmag       (nr__2) ! (mag) 2MASS J-band magnitude
      character*5   SpT_1      (nr__2) ! MK spectral type
      real*4        e_SpT_1    (nr__2) ! SpT uncertainty
      real*4        Av_1       (nr__2) ! (mag) Extinction
      integer*4     Teff_1     (nr__2) ! (K) Effective temperature
      integer*4     e_Teff_1   (nr__2) ! (K) Teff uncertainty
      real*4        Mbol_1     (nr__2) ! (mag) Bolometric mass
      character*1   l_Mass     (nr__2) ! [-] Nonphysical mass (1)
      real*4        Mass_1     (nr__2) ! (Msun) Mass
      real*4        E_Mass_2   (nr__2) ! (Msun) Positive error in Mass
      real*4        e_Mass_3   (nr__2) ! (Msun) Negative error in Mass
      character*1   l_logtau_1 (nr__2) ! [-] Nonphysical age (1)
      real*4        logtau_1   (nr__2) ! ([yr]) Age
      real*4        E_logtau_2 (nr__2) ! ([yr]) Positive error in Age
      real*4        e_logtau_3 (nr__2) ! ([yr]) Negative error in Age
      character*10  Ref_1      (nr__2) ! References (see refs.dat file)
*Note (1): Some systems that sit extremely high or low in the HR diagram exceed
*          the limits of the models and have nonphysical derived quantities
*          (i.e., negative masses).

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

C  Declarations for 'refs.dat'	! References

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

      integer*4     Ref_2      (nr__3) ! Reference number
      character*19  BibCode    (nr__3) ! Bibcode
      character*21  Aut        (nr__3) ! Authors
      character*20  Comm       (nr__3) ! Comment

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

C  Loading file 'table1.dat'	! Binary sample: observed and inferred properties

C  Format for file interpretation

    1 format(
     +  A12,1X,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A2,1X,F7.1,
     +  1X,F4.1,1X,A1,1X,F5.2,1X,A5,1X,F4.2,1X,F4.1,1X,I4,1X,I3,1X,
     +  F5.2,1X,A2,1X,A14)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,73
        read(1,'(A108)')ar__
        read(ar__,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),SB(i__),Sep(i__),e_Sep(i__),n_Flux(i__),
     +  Flux(i__),SpT(i__),e_SpT(i__),Av(i__),Teff(i__),e_Teff(i__),
     +  Mbol(i__),Warm(i__),Ref(i__)
        if(ar__(40:46) .EQ. '') Sep(i__) = rNULL__
        if(ar__(48:51) .EQ. '') e_Sep(i__) = rNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),SB(i__),Sep(i__),e_Sep(i__),n_Flux(i__),
     +  Flux(i__),SpT(i__),e_SpT(i__),Av(i__),Teff(i__),e_Teff(i__),
     +  Mbol(i__),Warm(i__),Ref(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Derived ages and masses

C  Format for file interpretation

    2 format(
     +  A12,1X,F5.3,1X,F5.3,1X,F5.3,1X,A1,F4.2,1X,F4.2,1X,F4.2,1X,
     +  F5.3,1X,F5.3,1X,F5.3,1X,A1,F4.2,1X,F4.2,1X,F4.2,1X,F5.3,1X,
     +  F5.3,1X,F5.3,1X,A1,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,73
        read(1,'(A114)')ar__1
        read(ar__1,2)
     +  Name_1(i__),Mass(i__),E_Mass(i__),e_Mass_1(i__),l_logtau(i__),
     +  logtau(i__),E_logtau(i__),e_logtau_1(i__),MassL(i__),
     +  E_MassL(i__),e_MassL_1(i__),l_logtauL(i__),logtauL(i__),
     +  E_logtauL(i__),e_logtauL_1(i__),MassD(i__),E_MassD(i__),
     +  e_MassD_1(i__),l_logtauD(i__),logtauD(i__),E_logtauD(i__),
     +  e_logtauD_1(i__)
        if(ar__1(14:18) .EQ. '') Mass(i__) = rNULL__
        if(ar__1(20:24) .EQ. '') E_Mass(i__) = rNULL__
        if(ar__1(26:30) .EQ. '') e_Mass_1(i__) = rNULL__
        if(ar__1(38:41) .EQ. '') E_logtau(i__) = rNULL__
        if(ar__1(43:46) .EQ. '') e_logtau_1(i__) = rNULL__
        if(ar__1(48:52) .EQ. '') MassL(i__) = rNULL__
        if(ar__1(54:58) .EQ. '') E_MassL(i__) = rNULL__
        if(ar__1(60:64) .EQ. '') e_MassL_1(i__) = rNULL__
        if(ar__1(72:75) .EQ. '') E_logtauL(i__) = rNULL__
        if(ar__1(77:80) .EQ. '') e_logtauL_1(i__) = rNULL__
        if(ar__1(82:86) .EQ. '') MassD(i__) = rNULL__
        if(ar__1(88:92) .EQ. '') E_MassD(i__) = rNULL__
        if(ar__1(94:98) .EQ. '') e_MassD_1(i__) = rNULL__
        if(ar__1(106:109) .EQ. '') E_logtauD(i__) = rNULL__
        if(ar__1(111:114) .EQ. '') e_logtauD_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),Mass(i__),E_Mass(i__),e_Mass_1(i__),l_logtau(i__),
     +  logtau(i__),E_logtau(i__),e_logtau_1(i__),MassL(i__),
     +  E_MassL(i__),e_MassL_1(i__),l_logtauL(i__),logtauL(i__),
     +  E_logtauL(i__),e_logtauL_1(i__),MassD(i__),E_MassD(i__),
     +  e_MassD_1(i__),l_logtauD(i__),logtauD(i__),E_logtauD(i__),
     +  e_logtauD_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea1.dat'	! Single-star sample: observed properties

C  Format for file interpretation

    3 format(
     +  A22,2X,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,1X,A5,
     +  1X,F4.2,1X,F4.1,1X,I4,1X,I3,1X,F5.2,1X,A1,F5.3,1X,F5.3,1X,
     +  F5.3,1X,A1,F4.2,1X,F5.2,1X,F5.2,1X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,121
        read(1,'(A131)')ar__2
        read(ar__2,3)
     +  Name_2(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),Jmag(i__),SpT_1(i__),
     +  e_SpT_1(i__),Av_1(i__),Teff_1(i__),e_Teff_1(i__),Mbol_1(i__),
     +  l_Mass(i__),Mass_1(i__),E_Mass_2(i__),e_Mass_3(i__),
     +  l_logtau_1(i__),logtau_1(i__),E_logtau_2(i__),e_logtau_3(i__),
     +  Ref_1(i__)
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  Name_2(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),Jmag(i__),SpT_1(i__),
     +  e_SpT_1(i__),Av_1(i__),Teff_1(i__),e_Teff_1(i__),Mbol_1(i__),
     +  l_Mass(i__),Mass_1(i__),E_Mass_2(i__),e_Mass_3(i__),
     +  l_logtau_1(i__),logtau_1(i__),E_logtau_2(i__),e_logtau_3(i__),
     +  Ref_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    4 format(I2,1X,A19,1X,A21,1X,A20)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,51
        read(1,'(A65)')ar__3
        read(ar__3,4)Ref_2(i__),BibCode(i__),Aut(i__),Comm(i__)
c    ..............Just test output...........
        write(6,4)Ref_2(i__),BibCode(i__),Aut(i__),Comm(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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