FORTRAN Generation
(/./ftp/cats/J/ApJ/738/170)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/738/170 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-Sep-12
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/738/170     False positive Kepler planet candidates        (Morton+, 2011)
*================================================================================
*On the low false positive probabilities of Kepler planet candidates.
*    Morton T.D., Johnson J.A.
*   <Astrophys. J., 738, 170 (2011)>
*   =2011ApJ...738..170M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! False positive probabilities for Kepler planet
                              candidates

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

      real*8        KOI         ! [1.01/1609.01] Kepler identifier from Borucki
*                                et al. 2011, Cat. J/ApJ/736/19
      real*4        d           ! (mag) Transit depth {delta}
      real*4        Det         ! Detection threshold (1)
      real*4        Kpmag       ! (mag) [8.22/16.42] Kepler magnitude
      integer*4     Ap          ! (pix) [1/84]? Size of photometric aperture (2)
      real*4        GLAT        ! (deg) [5.87/21.14] Galactic latitude of target star
      real*8        Per         ! (d) [0.4/10389] Candidate period
      real*4        M_          ! (Msun) [0.21/1.84] Stellar mass (3)
      real*4        R_          ! (Rsun) [0.27/6.16] Stellar radius (3)
      real*4        LBB         ! Likelihood{times}prior for blended binary
      real*4        LHT         ! Likelihood{times}prior for eclipsing
*                                 hierarchical triple scenario
      real*4        Lpl         ! Likelihood{times}prior for transiting planet
      character*1   l_FPP       ! Limit flag on FPP
      real*4        FPP         ! [0/1] False positive probability (4)
*Note (1): detectability threshold with S/N=3, according to Borucki et al.
*     (2011, Cat. J/ApJ/736/19).
*Note (2): According to the publicly available pixel data. Pixels are
*     4" square each.
*Note (3): According to the Kepler Input Catalog (Cat. V/133).
*Note (4): FPP=1-L_pl_/(L_pl_+L_BB_+L_HT_) where L_BB_ and L_HT_ are
*     the corresponding terms for the two false positive scenarios. 
*     See section 4.2 for further explanations.

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

C  Loading file 'table2.dat'	! False positive probabilities for Kepler planet
*                              candidates

C  Format for file interpretation

    1 format(
     +  F7.2,1X,E8.3,1X,E8.3,1X,F5.2,1X,I2,1X,F5.2,1X,F7.1,1X,F4.2,1X,
     +  F4.2,1X,E8.3,1X,E8.3,1X,E8.3,1X,A1,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1235
        read(1,'(A91)')ar__
        read(ar__,1)
     +  KOI,d,Det,Kpmag,Ap,GLAT,Per,M_,R_,LBB,LHT,Lpl,l_FPP,FPP
        if(ar__(33:34) .EQ. '') Ap = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  KOI,d,Det,Kpmag,Ap,GLAT,Per,M_,R_,LBB,LHT,Lpl,l_FPP,FPP
c    .......End.of.Just test output...........
      end do
      close(1)

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