FORTRAN Generation
(/./ftp/cats/J/A_A/597/A12)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/597/A12 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-Apr-23
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/A+A/597/A12         LMC X-3 formation history                (Sorensen+, 2017)
*================================================================================
*Unraveling the formation history of the black hole X-ray binary LMC X-3 from the
*ZAMS to the present.
*    Sorensen M., Fragos T., Steiner J. F., Antoniou V., Meynet G., Dosopoulou F.
*    <Astron. Astrophys. 597, A12 (2017)>
*    =2017A&A...597A..12S        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Selected parameters of mass transfer sequences
                                 matching LMC X-3

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

      integer*4     MTseq      (nr__) ! Mass transfer sequence number
      real*4        beta       (nr__) ! Mass transfer efficiency
      real*4        MbhRLO     (nr__) ! (Msun) Black hole mass at RLO initiation
      real*4        M2RLO      (nr__) ! (Msun) Donor star mass at RLO initiation
      real*4        PRLO       (nr__) ! (d) Orbital period at RLO initiation
      real*4        XcRLO      (nr__) ! Core fraction of Hydrogen at RLO initiation
      real*4        tauRLO     (nr__) ! (Myr) Donor star age at RLO initiation
      real*4        Mbh        (nr__) ! (Msun) Black hole mass at crossing of orbital period
      real*4        a          (nr__) ! Black hole spin at crossing of orbital period
      real*4        M2         (nr__) ! (Msun) Donor star mass at crossing of orbital period
      real*4        logL       (nr__) ! ([Lsun]) Donor star Luminosity in log at crossing of
*                                   orbital period
      real*4        Xc         (nr__) ! Core fraction of Hydrogen at crossing of
*                                   orbital period
      real*4        tau        (nr__) ! (Myr) Donor star age at crossing of orbital period
      real*4        p          (nr__) ! Relative likelihood at crossing of orbital
*                                   period
      real*4        dT         (nr__) ! (Myr) Time spent around crossing of orbital period

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

C  Loading file 'table2.dat'	! Selected parameters of mass transfer sequences
*                                 matching LMC X-3

C  Format for file interpretation

    1 format(
     +  I4,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.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,395
        read(1,'(A77)')ar__
        read(ar__,1)
     +  MTseq(i__),beta(i__),MbhRLO(i__),M2RLO(i__),PRLO(i__),
     +  XcRLO(i__),tauRLO(i__),Mbh(i__),a(i__),M2(i__),logL(i__),
     +  Xc(i__),tau(i__),p(i__),dT(i__)
c    ..............Just test output...........
        write(6,1)
     +  MTseq(i__),beta(i__),MbhRLO(i__),M2RLO(i__),PRLO(i__),
     +  XcRLO(i__),tauRLO(i__),Mbh(i__),a(i__),M2(i__),logL(i__),
     +  Xc(i__),tau(i__),p(i__),dT(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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