FORTRAN Generation
(/./ftp/cats/J/A_A/680/A84)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/680/A84 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-Jun-08
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/680/A84       TOI-1736 and TOI-2141 SOPHIE observations  (Martioli+, 2023)
*================================================================================
*TOI-1736 and TOI-2141: Two systems including sub-Neptunes around solar analogs
*revealed by TESS and SOPHIE.
*    Martioli E., Hebrard G., de Almeida L., Heidari N., Lorenzo-Oliveira D.,
*    Kiefer F., Almenara J.M., Bieryla A., Boisse I., Bonfils X., Briceno C.,
*    Collins K.A., Cortes-Zuleta P., Dalal S., Deleuil M., Delfosse X.,
*    Demangeon O., Eastman J.D., Forveille T., Furlan E., Howell S.B.,
*    Hoyer S., Jenkins J.M., Latham D.W., Law N., Mann A.W., Moutou C.,
*    Santos N.C., Sousa S.G., Stassun K.G., Stockdale C., Torres G.,
*    Twicken J.D., Winn J.N., Ziegler C.
*    <Astron. Astrophys. 680, A84 (2023)>
*    =2023A&A...680A..84M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'toi1736.dat'	! SOPHIE data for TOI-1736 (table A1)

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

      integer*4     ObsID      (nr__) ! Observation index
      real*8        BJD        (nr__) ! (d) Barycentric Julian date
      real*8        RV         (nr__) ! (km/s) Radial velocity
      real*4        e_RV       (nr__) ! (km/s) 1-sigma uncertainty in the radial velocity
      real*8        BERV       (nr__) ! (km/s) Barycentric Earth radial velocity
      integer*4     ExpTime    (nr__) ! (s) Exposure time
      integer*4     S_N        (nr__) ! Signal-to-noise ratio measured at 649nm
      real*4        FWHM       (nr__) ! (km/s) Full width at half maximum of CCF
      real*4        e_FWHM     (nr__) ! (km/s) 1-sigma uncertainty in the FWHM of CCF
      real*4        Bis        (nr__) ! (km/s) Bisector span
      real*4        e_Bis      (nr__) ! (km/s) 1-sigma uncertainty in the bisector span
      real*4        SMW        (nr__) ! S-index calibrated to the Mount Wilson
*                                   Observatory system
      real*4        e_SMW      (nr__) ! 1-sigma uncertainty in the SMW
      real*4        Halpha     (nr__) ! H-alpha index
      real*4        e_Halpha   (nr__) ! 1-sigma uncertainty in the H-alpha index

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

C  Declarations for 'toi2141.dat'	! SOPHIE data for TOI-2141 (table A2)

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

      integer*4     ObsID_1    (nr__1) ! Observation index
      real*8        BJD_1      (nr__1) ! (d) Barycentric Julian date
      real*8        RV_1       (nr__1) ! (km/s) Radial velocity
      real*4        e_RV_1     (nr__1) ! (km/s) 1-sigma uncertainty in the radial velocity
      real*8        BERV_1     (nr__1) ! (km/s) Barycentric Earth radial velocity
      integer*4     ExpTime_1  (nr__1) ! (s) Exposure time
      integer*4     S_N_1      (nr__1) ! Signal-to-noise ratio measured at 649nm
      real*4        FWHM_1     (nr__1) ! (km/s) Full width at half maximum of CCF
      real*4        e_FWHM_1   (nr__1) ! (km/s) 1-sigma uncertainty in the FWHM of CCF
      real*4        Bis_1      (nr__1) ! (km/s) Bisector span
      real*4        e_Bis_1    (nr__1) ! (km/s) 1-sigma uncertainty in the bisector span
      real*4        SMW_1      (nr__1) ! S-index calibrated to the Mount Wilson
*                                   Observatory system
      real*4        e_SMW_1    (nr__1) ! 1-sigma uncertainty in the SMW
      real*4        Halpha_1   (nr__1) ! H-alpha index
      real*4        e_Halpha_1 (nr__1) ! 1-sigma uncertainty in the H-alpha index

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

C  Loading file 'toi1736.dat'	! SOPHIE data for TOI-1736 (table A1)

C  Format for file interpretation

    1 format(
     +  I3,1X,F13.5,1X,F8.4,1X,F6.4,1X,F8.4,1X,I4,1X,I3,1X,F5.3,1X,
     +  F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F6.4,1X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'toi1736.dat')
      write(6,*) '....Loading file: toi1736.dat'
      do i__=1,152
        read(1,'(A102)')ar__
        read(ar__,1)
     +  ObsID(i__),BJD(i__),RV(i__),e_RV(i__),BERV(i__),ExpTime(i__),
     +  S_N(i__),FWHM(i__),e_FWHM(i__),Bis(i__),e_Bis(i__),SMW(i__),
     +  e_SMW(i__),Halpha(i__),e_Halpha(i__)
c    ..............Just test output...........
        write(6,1)
     +  ObsID(i__),BJD(i__),RV(i__),e_RV(i__),BERV(i__),ExpTime(i__),
     +  S_N(i__),FWHM(i__),e_FWHM(i__),Bis(i__),e_Bis(i__),SMW(i__),
     +  e_SMW(i__),Halpha(i__),e_Halpha(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'toi2141.dat'	! SOPHIE data for TOI-2141 (table A2)

C  Format for file interpretation

    2 format(
     +  I3,1X,F13.5,1X,F8.4,1X,F6.4,1X,F8.4,1X,I4,1X,I3,1X,F5.3,1X,
     +  F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F6.4,1X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'toi2141.dat')
      write(6,*) '....Loading file: toi2141.dat'
      do i__=1,90
        read(1,'(A102)')ar__1
        read(ar__1,2)
     +  ObsID_1(i__),BJD_1(i__),RV_1(i__),e_RV_1(i__),BERV_1(i__),
     +  ExpTime_1(i__),S_N_1(i__),FWHM_1(i__),e_FWHM_1(i__),
     +  Bis_1(i__),e_Bis_1(i__),SMW_1(i__),e_SMW_1(i__),Halpha_1(i__),
     +  e_Halpha_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  ObsID_1(i__),BJD_1(i__),RV_1(i__),e_RV_1(i__),BERV_1(i__),
     +  ExpTime_1(i__),S_N_1(i__),FWHM_1(i__),e_FWHM_1(i__),
     +  Bis_1(i__),e_Bis_1(i__),SMW_1(i__),e_SMW_1(i__),Halpha_1(i__),
     +  e_Halpha_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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