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 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-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       (nr__) ! Name of the system
      real*8        Per        (nr__) ! (d) Period
      real*8        e_Per      (nr__) ! (d) ? Period uncertainty
      real*8        T          (nr__) ! (d) Time of periastron passage (JD)
      real*8        e_T        (nr__) ! (d) ? Time of periastron passage uncertainty
      real*4        e          (nr__) ! ? Eccentricity
      real*4        e_e        (nr__) ! ? Eccentricity uncertainty
      real*4        w          (nr__) ! (deg) ? Argument of the periastron
      real*4        e_w        (nr__) ! (deg) ? Argument of the periastron uncertainty
      real*4        K1         (nr__) ! (km/s) Primary component radial velocity semi-amplitude
      real*4        e_K1       (nr__) ! (km/s) ? Uncertainty on K1
      real*4        K2         (nr__) ! (km/s) Secondary component radial velocity semi-amplitude
      real*4        e_K2       (nr__) ! (km/s) ? Uncertainty on K2
      real*4        q          (nr__) ! Mass ratio
      real*4        e_q        (nr__) ! ? Mass ratio uncertainty
      character*5   Ref        (nr__) ! Bibliographic reference of the system,
*                               in refs.dat file
      integer*4     Flag       (nr__) ! [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      (nr__1) ! Reference code
      character*19  BibCode    (nr__1) ! BibCode
      character*24  Aut        (nr__1) ! 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(i__),Per(i__),e_Per(i__),T(i__),e_T(i__),e(i__),e_e(i__),
     +  w(i__),e_w(i__),K1(i__),e_K1(i__),K2(i__),e_K2(i__),q(i__),
     +  e_q(i__),Ref(i__),Flag(i__)
        if(ar__(40:52) .EQ. '') e_Per(i__) = rNULL__
        if(ar__(71:78) .EQ. '') e_T(i__) = rNULL__
        if(ar__(80:85) .EQ. '') e(i__) = rNULL__
        if(ar__(87:92) .EQ. '') e_e(i__) = rNULL__
        if(ar__(94:99) .EQ. '') w(i__) = rNULL__
        if(ar__(101:106) .EQ. '') e_w(i__) = rNULL__
        if(ar__(115:120) .EQ. '') e_K1(i__) = rNULL__
        if(ar__(129:134) .EQ. '') e_K2(i__) = rNULL__
        if(ar__(143:148) .EQ. '') e_q(i__) = rNULL__
        if(ar__(156:156) .EQ. '') Flag(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),Per(i__),e_Per(i__),T(i__),e_T(i__),e(i__),e_e(i__),
     +  w(i__),e_w(i__),K1(i__),e_K1(i__),K2(i__),e_K2(i__),q(i__),
     +  e_q(i__),Ref(i__),Flag(i__)
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(i__),BibCode(i__),Aut(i__)
c    ..............Just test output...........
        write(6,2)Ref_1(i__),BibCode(i__),Aut(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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