FORTRAN Generation
(/./ftp/cats/J/ApJ/814/91)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/814/91 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 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/ApJ/814/91  Comparative habitability of transiting exoplanets  (Barnes+, 2015)
*================================================================================
*Comparative habitability of transiting exoplanets.
*    Barnes R., Meadows V.S., Evans N.
*   <Astrophys. J., 814, 91 (2015)>
*   =2015ApJ...814...91B    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observed and derived parameters for potentially
                             habitable KOIs

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

      character*11  Pl          ! Planet identifier (KNNNNN.NN, K2-3d or
*                                 Kepler-NNa)
      real*4        R_          ! (Rsun) [0.1/2] Stellar radius
      integer*4     Teff        ! (K) [2661/6640] Effective stellar temperature
      real*4        log_g__     ! ([cm/s2]) [4/5.3] Log stellar surface gravity
      real*4        M_          ! (Msun) [0.09/1.4] Stellar mass
      real*4        L_          ! (Lsun) [0.001/4.5] Stellar luminosity
      real*8        Per         ! (d) [3.6/651.1] Orbital period
      real*8        Depth       ! (ppm) [52.5/37296] Transit depth
      real*4        Dur         ! (h) [0.8/34.2] Transit duration (D)
      real*4        b           ! [0/0.97] Impact parameter
      real*4        Rp          ! (Rgeo) [0.5/2.5] Planetary radius
      real*4        Mp          ! (Mgeo) [0.1/28.3] Planetary mass
      real*4        log_g_p     ! ([m/s2]) [4.3/44.4] Log planetary surface gravity
      real*4        Fmax        ! (W/m2) [270.4/350] Runaway greenhouse flux
      real*4        a           ! (AU) [0.02/1.5] Semi-major axis
      real*4        Dc          ! (h) [0.3/20.8] Transit duration if orbit is circular
      real*4        TDA         ! [0.1/4] Transit Duration Anomaly (D/Dc)
      real*4        emin        ! Minimum eccentricity
      real*4        emax        ! Maximum eccentricity
      real*4        Scir        ! (Earth) [0.1/21.5] Incident stellar radiation (1)
      real*4        H           ! [0/0.93] "habitability index for transiting
*                                 exoplanets" (HITE)
      real*4        H_          ! [0/0.96] HITE prime
      real*4        Jmag        ! (mag) [9.4/14.7] Apparent J band magnitude
      real*4        Kmag        ! (mag) [8.5/17.2] Apparent K band magnitude
      integer*4     L           ! [0/3]? Flux boundary (2)
      integer*4     Nc          ! [0/2] Number of adjacent planetary companions
*Note (1): If the orbit is circular, in Earth units.
*Note (2): Limit as follows:
*    0 = max;
*    1 = min;
*    2 = both.
*    3 = Not explained in the paper (22 sources)

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

C  Loading file 'table1.dat'	! Observed and derived parameters for potentially
*                             habitable KOIs

C  Format for file interpretation

    1 format(
     +  A11,1X,F5.3,1X,I4,1X,F5.3,1X,F5.3,1X,F5.3,1X,F7.3,1X,F7.1,1X,
     +  F6.3,1X,F5.3,1X,F4.2,1X,F5.2,1X,F5.2,1X,F5.1,1X,F6.4,1X,F6.3,
     +  1X,F5.3,1X,F6.4,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.2,1X,
     +  F5.2,1X,I1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,269
        read(1,'(A160)')ar__
        read(ar__,1)
     +  Pl,R_,Teff,log_g__,M_,L_,Per,Depth,Dur,b,Rp,Mp,log_g_p,Fmax,a,
     +  Dc,TDA,emin,emax,Scir,H,H_,Jmag,Kmag,L,Nc
        if(ar__(158:158) .EQ. '') L = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Pl,R_,Teff,log_g__,M_,L_,Per,Depth,Dur,b,Rp,Mp,log_g_p,Fmax,a,
     +  Dc,TDA,emin,emax,Scir,H,H_,Jmag,Kmag,L,Nc
c    .......End.of.Just test output...........
      end do
      close(1)

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