FORTRAN Generation
(/./ftp/cats/J/ApJ/649/1010)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/649/1010 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-16
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/649/1010      Habitability of known exoplanetary systems    (Jones+, 2006)
*================================================================================
*Habitability of known exoplanetary systems based on measured stellar properties.
*    Jones B.W., Sleep P.N., Underwood D.R.
*   <Astrophys. J., 649, 1010-1019 (2006)>
*   =2006ApJ...649.1010J
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Habitability Outcomes

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

      character*12  Name       (nr__) ! Star Name
      character*1   n_Name     (nr__) ! [*] Note for systems with known inclination (1)
      real*4        Mstar      (nr__) ! (solMass) Star mass
      character*8   SpType     (nr__) ! MK spectral type and class
      real*4        BC         (nr__) ! (mag) Bolometric correction
      character*1   l_Dist     (nr__) ! Limit flag on Dist
      real*8        Dist       (nr__) ! (pc) Distance of the star
      real*4        Vmag       (nr__) ! (mag) V magnitude (2)
      character*1   l_HZin     (nr__) ! Limit flag on HZinner
      real*4        HZin       (nr__) ! (AU) ? Inner distance of habitable zone
      character*1   l_HZout    (nr__) ! Limit flag on HZouter
      real*8        HZout      (nr__) ! (AU) ? Outer distance of habitable zone
      character*1   Pl         (nr__) ! Planet designation
      real*4        Mpl        (nr__) ! (jovMass) Minimum Mass in Jupiter mass (1)
      real*8        a          (nr__) ! (AU) Semi-major axis (1)
      real*4        e          (nr__) ! Ellipticity (1)
      integer*4     Conf       (nr__) ! [1,6]? Configuration (3)
      integer*4     Hab        (nr__) ! (%) ? System Habitability Today (%)
      character*1   n_Hab      (nr__) ! [Y/N] (Y)es or (N)o when no percentage
*                                       probability
      character*9   SusHab     (nr__) ! Sustained Habitability?
*Note (1): The appropriate magnitude has been used to calculate L.
*     A multiplier of 1.3 has been used to obtain the final three columns,
*     except for planets with stars, denoted with *, for which i0 is known,
*     always >81{deg}, so the minimum mass is used.
*Note (2): The observed magnitudes of the OGLEs are I, not V, except for
*     OGLE-TR-56.
*Note (3): There are 6 types of configuration of the habitability zone (HZ)
*     due to the presence of a giant planet:
*     1,2 = an Earth-like planet could be confined throughout the HZ
*     3,4,5 = a fraction of the HZ offers confinement
*     6 = no possibility of confinement in the HZ

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

C  Loading file 'table1.dat'	! Habitability Outcomes

C  Format for file interpretation

    1 format(
     +  A12,1X,A1,1X,F5.3,1X,A8,1X,F6.3,A1,F8.3,1X,F5.2,2X,A1,F6.3,1X,
     +  A1,F8.5,1X,A1,3X,F6.3,1X,F7.5,1X,F6.4,1X,I1,1X,I2,A1,1X,A9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,176
        read(1,'(A112)')ar__
        read(ar__,1)
     +  Name(i__),n_Name(i__),Mstar(i__),SpType(i__),BC(i__),
     +  l_Dist(i__),Dist(i__),Vmag(i__),l_HZin(i__),HZin(i__),
     +  l_HZout(i__),HZout(i__),Pl(i__),Mpl(i__),a(i__),e(i__),
     +  Conf(i__),Hab(i__),n_Hab(i__),SusHab(i__)
        if(ar__(55:60) .EQ. '') HZin(i__) = rNULL__
        if(ar__(63:70) .EQ. '') HZout(i__) = rNULL__
        if(ar__(98:98) .EQ. '') Conf(i__) = iNULL__
        if(ar__(100:101) .EQ. '') Hab(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),n_Name(i__),Mstar(i__),SpType(i__),BC(i__),
     +  l_Dist(i__),Dist(i__),Vmag(i__),l_HZin(i__),HZin(i__),
     +  l_HZout(i__),HZout(i__),Pl(i__),Mpl(i__),a(i__),e(i__),
     +  Conf(i__),Hab(i__),n_Hab(i__),SusHab(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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