FORTRAN Generation
(/./ftp/cats/J/ApJ/829/L9)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/829/L9 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-19
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/ApJ/829/L9       K2 LC of HD 3167 and Robo-AO image       (Vanderburg+, 2016)
*================================================================================
*Two small planets transiting HD 3167.
*    Vanderburg A., Bieryla A., Duev D.A., Jensen-Clem R., Latham D.W.,
*    Mayo A.W., Baranec C., Berlind P., Kulkarni S., Law N.M., Nieberding M.N.,
*    Riddle R., Maissa S.
*   <Astrophys. J., 829, L9 (2016)>
*   =2016ApJ...829L...9V
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'fig1.dat'	! K2 light curve of HD 3167

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

      real*8        BJD        (nr__) ! (d) [2560.7/2637.8] Barycentric Julian Date;
*                                  BJD-2454833
      real*8        RFlux      (nr__) ! [0.9986/1.0009] Relative flux

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

C  Declarations for 'curve.dat'	! Robo-AO contrast curve

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

      real*4        Sep        (nr__1) ! (arcsec) [0.1/1.6] Angular separation from HD 3167
      real*4        mag        (nr__1) ! (mag) [0.4/6.2] Relative brightness of a nearby star at
*                               Sep which can be excluded at 5{sigma} confidence;
*                               i-band

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

C  Loading file 'fig1.dat'	! K2 light curve of HD 3167

C  Format for file interpretation

    1 format(F9.4,1X,F10.8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig1.dat')
      write(6,*) '....Loading file: fig1.dat'
      do i__=1,3428
        read(1,'(A20)')ar__
        read(ar__,1)BJD(i__),RFlux(i__)
c    ..............Just test output...........
        write(6,1)BJD(i__),RFlux(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'curve.dat'	! Robo-AO contrast curve

C  Format for file interpretation

    2 format(F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'curve.dat')
      write(6,*) '....Loading file: curve.dat'
      do i__=1,81
        read(1,'(A11)')ar__1
        read(ar__1,2)Sep(i__),mag(i__)
c    ..............Just test output...........
        write(6,2)Sep(i__),mag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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