FORTRAN Generation
(/./ftp/cats/J/A_A/619/A32)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/619/A32 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-14
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/619/A32          CARMENES SB2 orbital parameters           (Baroch+, 2018)
*================================================================================
*The CARMENES search for exoplanets around M dwarfs.
*Nine new double-line spectroscopic binary stars.
*    Baroch D., Morales J.C., Ribas I., Tal-Or L., Zechmeister M., Reiners A.,
*    Caballero J.A., Quirrenbach A., Amado P.J., Dreizler S., Lalitha S.,
*    Jeers S.V., Lafarga M., Bejar V.J.S., Colome J., Cortes-Contreras M.,
*    Diez-Alonso E., Galadi-Enriquez D., Guenther E.W., Hagen H.-J., Henning T.,
*    Herrero E., Kuerster M., Montes D., Nagel E., Passegger V.M., Perger M.,
*    Rosich A., Schweitzer A., Seifert W.
*    <Astron. Astrophys. 619, A32 (2018)>
*    =2018A&A...619A..32B        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tabled1.dat'	! M-dwarf SB2s orbital parameters

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

      character*24  Name        ! Name of the system
      real*8        Per         ! (d) Period
      real*8        e_Per       ! (d) ? Period uncertainty
      real*8        T           ! (d) Time of periastron passage (JD)
      real*8        e_T         ! (d) ? Time of periastron passage uncertainty
      real*4        e           ! ? Eccentricity
      real*4        e_e         ! ? Eccentricity uncertainty
      real*4        w           ! (deg) ? Argument of the periastron
      real*4        e_w         ! (deg) ? Argument of the periastron uncertainty
      real*4        K1          ! (km/s) Primary component radial velocity semi-amplitude
      real*4        e_K1        ! (km/s) ? Uncertainty on K1
      real*4        K2          ! (km/s) Secondary component radial velocity semi-amplitude
      real*4        e_K2        ! (km/s) ? Uncertainty on K2
      real*4        q           ! Mass ratio
      real*4        e_q         ! ? Mass ratio uncertainty
      character*5   Ref         ! Bibliographic reference of the system,
*                               in refs.dat file
      integer*4     Flag        ! [0/1]? Eclipsing binary system flag (1)
*Note (1): Eclipsing binary system flag as follows:
*           1 = Eclipsing system
*           0 = Non eclipsing system

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

C  Declarations for 'refs.dat'	! References

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

      character*5   Ref_1       ! Reference code
      character*19  BibCode     ! BibCode
      character*24  Aut         ! Author's name

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

C  Loading file 'tabled1.dat'	! M-dwarf SB2s orbital parameters

C  Format for file interpretation

    1 format(
     +  A24,1X,F13.7,1X,F13.7,1X,F13.5,4X,F8.5,1X,F6.4,1X,F6.4,1X,
     +  F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.4,1X,F6.4,
     +  1X,A5,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tabled1.dat')
      write(6,*) '....Loading file: tabled1.dat'
      do i__=1,67
        read(1,'(A156)')ar__
        read(ar__,1)
     +  Name,Per,e_Per,T,e_T,e,e_e,w,e_w,K1,e_K1,K2,e_K2,q,e_q,Ref,
     +  Flag
        if(ar__(40:52) .EQ. '') e_Per = rNULL__
        if(ar__(71:78) .EQ. '') e_T = rNULL__
        if(ar__(80:85) .EQ. '') e = rNULL__
        if(ar__(87:92) .EQ. '') e_e = rNULL__
        if(ar__(94:99) .EQ. '') w = rNULL__
        if(ar__(101:106) .EQ. '') e_w = rNULL__
        if(ar__(115:120) .EQ. '') e_K1 = rNULL__
        if(ar__(129:134) .EQ. '') e_K2 = rNULL__
        if(ar__(143:148) .EQ. '') e_q = rNULL__
        if(ar__(156:156) .EQ. '') Flag = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,Per,e_Per,T,e_T,e,e_e,w,e_w,K1,e_K1,K2,e_K2,q,e_q,Ref,
     +  Flag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    2 format(A5,1X,A19,1X,A24)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,41
        read(1,'(A50)')ar__1
        read(ar__1,2)Ref_1,BibCode,Aut
c    ..............Just test output...........
        write(6,2)Ref_1,BibCode,Aut
c    .......End.of.Just test output...........
      end do
      close(1)

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