FORTRAN Generation
(/./ftp/cats/J/A_A/503/601)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/503/601 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 2024-Apr-18
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/503/601  HD 17156 transit photometry & radial velocities (Barbieri+, 2009)
*================================================================================
*Characterization of the HD 17156 planetary system.
*    Barbieri M., Alonso R., Desidera S., Sozzetti A., Martinez  Fiorenzano A.F.,
*    Almenara J.M., Cecconi M., Claudi R.U., Charbonneau D., Endl M., Granata V.,
*    Gratton R., Laughlin G., Loeillet B., Exoplanet Amateur Consortium
*   <Astron. Astrophys. 503, 601 (2009)>
*   =2009A&A...503..601B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Differential radial velocities and bisector velocity
                            span of HD 17156 obtained with SARG at TNG

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

      real*8        BJD        (nr__) ! (d) Barycentric Julian date
      real*4        RV         (nr__) ! (m/s) Radial velocity
      real*4        e_RV       (nr__) ! (m/s) rms uncertainty on RV
      real*4        Span       (nr__) ! (m/s) ? Bisector velocity span
      real*4        e_Span     (nr__) ! (m/s) ? rms uncertainty on Span

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

C  Declarations for 'hd17156.dat'	! HD 17156 transit photometry

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

      real*8        BJD_1      (nr__1) ! (d) Barycentric Julian Date
      real*8        Flux       (nr__1) ! Normalized flux
      integer*4     oID        (nr__1) ! Observer ID (1)
*Note (1): The following numerical code correspond to the Observer ID
*          in a specified date (dd/mm/yyyy):
*      1 = Almenara    10/09/2007
*      2 = Gasparri    10/09/2007
*      3 = Lopresti    10/09/2007
*      4 = Barbieri    03/12/2007
*      5 = Almenara    03/12/2007
*      6 = Castellani  03/12/2007
*      7 = Claudi      03/12/2007
*      8 = Lopresti    03/12/2007
*      9 = Marchini    03/12/2007
*     10 = Nicolini    03/12/2007
*     11 = Papini      03/12/2007
*     12 = Vallerani   03/12/2007
*     14 = Gary        25/12/2007
*     15 = Gary        17/10/2008
*     16 = Gregorio    25/09/2008

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

C  Loading file 'table1.dat'	! Differential radial velocities and bisector velocity
*                            span of HD 17156 obtained with SARG at TNG

C  Format for file interpretation

    1 format(F13.5,1X,F6.2,1X,F4.2,1X,F6.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,29
        read(1,'(A38)')ar__
        read(ar__,1)BJD(i__),RV(i__),e_RV(i__),Span(i__),e_Span(i__)
        if(ar__(27:32) .EQ. '') Span(i__) = rNULL__
        if(ar__(34:38) .EQ. '') e_Span(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)BJD(i__),RV(i__),e_RV(i__),Span(i__),e_Span(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'hd17156.dat'	! HD 17156 transit photometry

C  Format for file interpretation

    2 format(F14.6,1X,F8.6,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'hd17156.dat')
      write(6,*) '....Loading file: hd17156.dat'
      do i__=1,6960
        read(1,'(A26)')ar__1
        read(ar__1,2)BJD_1(i__),Flux(i__),oID(i__)
c    ..............Just test output...........
        write(6,2)BJD_1(i__),Flux(i__),oID(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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