FORTRAN Generation
(/./ftp/cats/J/A_A/626/A38)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/626/A38 into FORTRAN code for reading data files line by line.

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-13
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/626/A38          Kepler-17 long-term photometry             (Lanza+, 2019)
*================================================================================
*Stellar activity and rotation of the planet host Kepler-17 from long-term
*space-borne photometry.
*    Lanza A.F., Netto Y., Bonomo A.S., Parviainen H., Valio A., Aigrain S.
*    <Astron. Astrophys. 626, A38 (2019)>
*    =2019A&A...626A..38L        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'k17bola.dat'	! Kepler-17 light curve obtained by applying the
                                 de-trending as in Bonomo & Lanza
                                 (2012A&A...547A..37B)

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

      real*8        Time        ! (d) Time in BJD starting at 2454900.0 (BJD-2454900.0)
      real*8        Flux        ! Normalized flux
      real*8        e_Flux      ! Standard deviation of flux normalized as flux

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

C  Declarations for 'k17arc2.dat'	! Kepler-17 ARC2 pipeline ligth curve

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

      real*8        Time_1      ! (d) Time in BJD starting at 2454833.0 (BJD-2454833.0)
      real*8        Flux_1      ! Normalized flux
      real*8        e_Flux_1    ! ?=- Standard deviation of flux normalized as flux

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

C  Loading file 'k17bola.dat'	! Kepler-17 light curve obtained by applying the
*                                 de-trending as in Bonomo & Lanza
*                                 (2012A&A...547A..37B)

C  Format for file interpretation

    1 format(10X,F11.6,13X,F8.6,13X,F8.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'k17bola.dat')
      write(6,*) '....Loading file: k17bola.dat'
      do i__=1,47376
        read(1,'(A63)')ar__
        read(ar__,1)Time,Flux,e_Flux
c    ..............Just test output...........
        write(6,1)Time,Flux,e_Flux
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'k17arc2.dat'	! Kepler-17 ARC2 pipeline ligth curve

C  Format for file interpretation

    2 format(10X,F11.6,12X,F10.8,12X,F10.8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'k17arc2.dat')
      write(6,*) '....Loading file: k17arc2.dat'
      do i__=1,40653
        read(1,'(A65)')ar__1
        read(ar__1,2)Time_1,Flux_1,e_Flux_1
        if (idig(ar__1(56:65)).EQ.0) e_Flux_1 =  rNULL__
c    ..............Just test output...........
        write(6,2)Time_1,Flux_1,e_Flux_1
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