FORTRAN Generation
(/./ftp/cats/J/A_A/604/L6)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/604/L6 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 2017-Dec-17
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/604/L6       EBLM J0555-57 photometry and RV       (von Boetticher+, 2017)
*================================================================================
*The EBLM Project.
*III. A Saturn-size low-mass star at the hydrogen-burning limit.
*    von Boetticher A., Triaud A.H.M.J, Queloz D., Gill S., Lendl M., Delrez L.,
*    Anderson D.R., Collier Cameron A., Faedi F., Gillon M.,
*    Gomez Maqueo Chew Y., Hebb L., Hellier C., Jehin E., Maxted P.F.L.,
*    Martin D.V., Pepe F., Pollacco D., Segransan D., Smalley B., Udry S.,
*    West R.
*    <Astron. Astrophys. 604, L6 (2017)>
*    =2017A&A...604L...6V        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'coralie1.dat'	! CORALIE radial velocities I

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

      real*8        BJD        (nr__) ! (d) Barycentric Julian date (BJD-2400000)
      real*8        RV         (nr__) ! (km/s) Radial velocity
      real*8        e_RV       (nr__) ! (km/s) 1 sigma photon noise error bars on RV
      real*8        FWHM       (nr__) ! (km/s) Full-width at half-maximum of
*                                   cross-correlation function
      real*4        Cont       (nr__) ! Contrast of cross-correlation function
      real*8        BisSpan    (nr__) ! (km/s) Span of the bisector inverse slope
      real*4        pclean     (nr__) ! ?=- Probability that spectrum is NOT
*                                   contaminated by blend
      integer*4     Rej        (nr__) ! [0/1] Spectrum rejected:
*                                    1: rejected, 0: accepted (if pclean<0.01)
      character*23  Com        (nr__) ! Comments

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

C  Declarations for 'coralie2.dat'	! CORALIE radial velocities II

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

      real*8        BJD_1      (nr__1) ! (d) Barycentric Julian date (BJD-2400000)
      real*8        RV_1       (nr__1) ! (km/s) Radial velocity
      real*8        e_RV_1     (nr__1) ! (km/s) 1 sigma photon noise error bars on RV
      real*8        FWHM_1     (nr__1) ! (km/s) Full-width at half-maximum of
*                                   cross-correlation function
      real*4        Cont_1     (nr__1) ! Contrast of cross-correlation function
      real*8        BisSpan_1  (nr__1) ! (km/s) Span of the bisector inverse slope
      real*4        pclean_1   (nr__1) ! ?=- Probability that spectrum is NOT
*                                   contaminated by blend
      integer*4     Rej_1      (nr__1) ! [0/1] Spectrum rejected:
*                                    1: rejected, 0: accepted (if pclean<0.01)
      character*23  Com_1      (nr__1) ! Comments

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

C  Declarations for 'eulerl.dat'	! Euler z band photometry, large aperture
                                 including A and B components

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

      real*8        HJD        (nr__2) ! (d) Heliocentric Julian Date (HJD-2450000) UTC
      real*8        Flux       (nr__2) ! Normalised flux
      real*8        e_Flux     (nr__2) ! 1 sigma error bar on the flux
      real*4        xshift     (nr__2) ! (pix) Centroid shift on detector
      real*4        yshift     (nr__2) ! (pix) Centroid shift on detector
      real*4        AM         (nr__2) ! Airmass
      real*4        FWHM_2     (nr__2) ! (pix) Full-width at half-maximum of centroid
      real*4        Sky        (nr__2) ! Sky background flux
      real*4        ExpTime    (nr__2) ! (s) Exposure times

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

C  Declarations for 'eulers.dat'	! Euler z band photometry, small aperture
                                 on A component

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

      real*8        HJD_1      (nr__3) ! (d) Heliocentric Julian Date (HJD-2450000) UTC
      real*8        Flux_1     (nr__3) ! Normalised flux
      real*8        e_Flux_1   (nr__3) ! 1 sigma error bar on the flux
      real*4        xshift_1   (nr__3) ! (pix) Centroid shift on detector
      real*4        yshift_1   (nr__3) ! (pix) Centroid shift on detector
      real*4        AM_1       (nr__3) ! Airmass
      real*4        FWHM_3     (nr__3) ! (pix) Full-width at half-maximum of centroid
      real*4        Sky_1      (nr__3) ! Sky background flux
      real*4        ExpTime_1  (nr__3) ! (s) Exposure times

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

C  Declarations for 'trappist.dat'	! TRAPPIST z band photometry, aperture including
                                 A and B components

      integer*4 nr__4
      parameter (nr__4=1188)	! Number of records
      character*230 ar__4  	! Full-size record

      real*8        BJD_2      (nr__4) ! (d) Barycentric Julian Date (BJD-2450000) UTC
      real*8        Flux_2     (nr__4) ! Normalised flux
      real*4        e_Flux_2   (nr__4) ! 1 sigma error bar on the flux
      real*4        xshift_2   (nr__4) ! (pix) Centroid shift on detector
      real*4        yshift_2   (nr__4) ! (pix) Centroid shift on detector
      real*8        FWHMx      (nr__4) ! (pix) Centroid FWHM in x
      real*8        FWHMy      (nr__4) ! (pix) Centroid FWHM in y
      real*8        FWHM_4     (nr__4) ! (pix) Centroid FWHM
      real*8        Sky_2      (nr__4) ! Sky background flux
      real*8        AM_2       (nr__4) ! Airmass
      real*8        ExpTime_2  (nr__4) ! (s) Exposure time

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

C  Loading file 'coralie1.dat'	! CORALIE radial velocities I

C  Format for file interpretation

    1 format(
     +  F12.6,1X,F8.5,1X,F7.5,1X,F8.5,1X,F6.3,1X,F8.5,1X,F5.3,1X,I1,
     +  1X,A23)

C  Effective file loading

      open(unit=1,status='old',file=
     +'coralie1.dat')
      write(6,*) '....Loading file: coralie1.dat'
      do i__=1,20
        read(1,'(A86)')ar__
        read(ar__,1)
     +  BJD(i__),RV(i__),e_RV(i__),FWHM(i__),Cont(i__),BisSpan(i__),
     +  pclean(i__),Rej(i__),Com(i__)
        if (idig(ar__(56:60)).EQ.0) pclean(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  BJD(i__),RV(i__),e_RV(i__),FWHM(i__),Cont(i__),BisSpan(i__),
     +  pclean(i__),Rej(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'coralie2.dat'	! CORALIE radial velocities II

C  Format for file interpretation

    2 format(
     +  F12.6,1X,F8.5,1X,F7.5,1X,F8.5,1X,F6.3,1X,F8.5,1X,F5.3,1X,I1,
     +  1X,A23)

C  Effective file loading

      open(unit=1,status='old',file=
     +'coralie2.dat')
      write(6,*) '....Loading file: coralie2.dat'
      do i__=1,11
        read(1,'(A86)')ar__1
        read(ar__1,2)
     +  BJD_1(i__),RV_1(i__),e_RV_1(i__),FWHM_1(i__),Cont_1(i__),
     +  BisSpan_1(i__),pclean_1(i__),Rej_1(i__),Com_1(i__)
        if (idig(ar__1(56:60)).EQ.0) pclean_1(i__) =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  BJD_1(i__),RV_1(i__),e_RV_1(i__),FWHM_1(i__),Cont_1(i__),
     +  BisSpan_1(i__),pclean_1(i__),Rej_1(i__),Com_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'eulerl.dat'	! Euler z band photometry, large aperture
*                                 including A and B components

C  Format for file interpretation

    3 format(
     +  F11.6,1X,F8.6,1X,F8.6,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F5.2,
     +  1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'eulerl.dat')
      write(6,*) '....Loading file: eulerl.dat'
      do i__=1,526
        read(1,'(A64)')ar__2
        read(ar__2,3)
     +  HJD(i__),Flux(i__),e_Flux(i__),xshift(i__),yshift(i__),
     +  AM(i__),FWHM_2(i__),Sky(i__),ExpTime(i__)
c    ..............Just test output...........
        write(6,3)
     +  HJD(i__),Flux(i__),e_Flux(i__),xshift(i__),yshift(i__),
     +  AM(i__),FWHM_2(i__),Sky(i__),ExpTime(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'eulers.dat'	! Euler z band photometry, small aperture
*                                 on A component

C  Format for file interpretation

    4 format(
     +  F11.6,1X,F8.6,1X,F8.6,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F5.2,
     +  1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'eulers.dat')
      write(6,*) '....Loading file: eulers.dat'
      do i__=1,526
        read(1,'(A64)')ar__3
        read(ar__3,4)
     +  HJD_1(i__),Flux_1(i__),e_Flux_1(i__),xshift_1(i__),
     +  yshift_1(i__),AM_1(i__),FWHM_3(i__),Sky_1(i__),ExpTime_1(i__)
c    ..............Just test output...........
        write(6,4)
     +  HJD_1(i__),Flux_1(i__),e_Flux_1(i__),xshift_1(i__),
     +  yshift_1(i__),AM_1(i__),FWHM_3(i__),Sky_1(i__),ExpTime_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'trappist.dat'	! TRAPPIST z band photometry, aperture including
*                                 A and B components

C  Format for file interpretation

    5 format(
     +  F18.13,1X,F19.17,1X,E23.18,1X,E24.17,1X,E26.19,1X,F18.16,1X,
     +  F19.16,1X,F18.16,1X,F19.15,1X,F18.16,1X,F18.16)

C  Effective file loading

      open(unit=1,status='old',file=
     +'trappist.dat')
      write(6,*) '....Loading file: trappist.dat'
      do i__=1,1188
        read(1,'(A230)')ar__4
        read(ar__4,5)
     +  BJD_2(i__),Flux_2(i__),e_Flux_2(i__),xshift_2(i__),
     +  yshift_2(i__),FWHMx(i__),FWHMy(i__),FWHM_4(i__),Sky_2(i__),
     +  AM_2(i__),ExpTime_2(i__)
c    ..............Just test output...........
        write(6,5)
     +  BJD_2(i__),Flux_2(i__),e_Flux_2(i__),xshift_2(i__),
     +  yshift_2(i__),FWHMx(i__),FWHMy(i__),FWHM_4(i__),Sky_2(i__),
     +  AM_2(i__),ExpTime_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end