FORTRAN Generation
(/./ftp/cats/J/AJ/119/1448)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/119/1448 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-20
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/AJ/119/1448   Improved properties for cool stars       (Houdashelt+, 2000)
*================================================================================
*Improved color-temperature relations and bolometric corrections for cool stars
*     Houdashelt M.L., Bell R.A., Sweigart A.V.
*    <Astron. J. 119, 1448 (2000)>
*    =2000AJ....119.1448H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Field star sample

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

      integer*4     HR          ! HR number of star
      integer*4     HD          ! HD number of star
      character*13  ID          ! Other identification of star
      character*13  SpType      ! MK Spectral type of star from SIMBAD
      integer*4     Teff        ! (K) Effective temperature (1)
      real*4        log_g       ! ([cm/s2]) Log of the surface gravity (1)
      character*1   f_log_g     ! [fhi] Estimated value of log(g) (2)
      real*4        v_Fe_H_     ! ([Sun]) Log of the iron to hydrogen abundance
*                                   relative to solar (1)
      character*1   f__Fe_H_    ! [e] Indicates solar metallicity has been
*                                   assumed
      integer*4     r_UBV       ! ? The UBV reference code (3)
      integer*4     r_VRI       ! ? The VRI reference code (3)
      integer*4     r_VJHK      ! ? The VJHK reference code (3)
      character*1   f_VJHK      ! [g] No H band photometry was given
      character*10  Notes       ! Further notes on the star (4)
*Note (1): Stellar parameters were taken from
*     Bell & Gustafsson (1978A&AS...34..229B) or 
*     Saxner & Hammarback (1985A&A...151..372S), unless otherwise noted
*Note (2): the flag has the following meaning:
*    f = Isochrones were used to estimate log(g) from the effective temperature,
*        luminosity class, and metallicity.
*    h = This log g was taken from Bonnell & Bell (1993MNRAS.264..319B),
*        (1993MNRAS.264..334B)
*    i = This log(g) was estimated from stars of similar effective temperature
*        and luminosity class
*Note (3): the reference is coded as follows:
*    1 = Mermilliod 1991, Cat. II/168
*    2 = Glass (1974MNSSA..33...53G)
*    3 = Cousins (1980SAAOC...1..234C)
*    4 = Johnson et al. (1966CoLPL...4...99J)
*    5 = Johnson et al. (1968ApJ...152..465J)
*    6 = Lee (1970ApJ...162..217L)
*    7 = Engels et al. (1981A&AS...45....5E)
*Note (4): Keys are as follows:
*    D = Double/multiple system
*    SB = spectroscopic binary
*    V = variable (as indicated by SIMBAD and/or Mermilliod 1991

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

C  Declarations for 'table5.dat'	! Calibrated color-temperature relations

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

      integer*4     Teff_1      ! (K) Effective temperature
      real*4        log_g_1     ! ([cm/s2]) Log of the surface gravity
      real*4        v_Fe_H__1   ! ([Sun]) Log of the iron to hydrogen abundance
*                                 relative to solar
      real*4        v_U_B       ! (mag) ? The Johnson-Cousins U-B color
*                                  (Bessel 1990PASP..102.1181B)
      real*4        v_U_B_CD    ! (mag) ? The U-B color from cool-dwarf color
*                                  calibrations (see section 3.2.2)
      real*4        v_B_V       ! (mag) ? The Johnson-Cousins B-V color
*                                  (Bessel 1990PASP..102.1181B)
      real*4        v_B_V_CD    ! (mag) ? The B-V color from cool-dwarf color
*                                  calibrations (see section 3.2.2)
      real*4        v_V_R       ! (mag) ? The Johnson-Cousins V-R color
*                                  (Bessel 1990PASP..102.1181B)
      real*4        v_V_R_CD    ! (mag) ? The V-R color from cool-dwarf color
*                                  calibrations (see section 3.2.2)
      real*4        v_V_I       ! (mag) ? The Johnson-Cousins V-I color
*                                  (Bessel 1990PASP..102.1181B)
      real*4        v_V_I_CD    ! (mag) ? The V-I color from cool-dwarf color
*                                  calibrations (see section 3.2.2)
      real*4        v_V_K       ! (mag) ? The Johnson-Glass V-K color
*                                  (Bessel & Brett 1988PASP..100.1134B)
      real*4        v_J_K       ! (mag) ? The Johnson-Glass J-K color
*                                  (Bessel & Brett 1988PASP..100.1134B)
      real*4        v_H_K       ! (mag) ? The Johnson-Glass H-K color
*                                  (Bessel & Brett 1988PASP..100.1134B)
      real*4        v_V_K_c     ! (mag) ? The CIT-CTIO V-K color
      real*4        v_J_K_c     ! (mag) ? The CIT-CTIO V-K color
      real*4        v_H_K_c     ! (mag) ? The CIT-CTIO V-K color
      real*4        CO          ! (mag) ? The CIT-CTIO CO filter magnitude without
*                                   color correction
*                                  (Frogel+ 1978ApJ...220...75F)
      real*4        BC_K        ! (mag) ? K band bolometric correction (1)
*Note (1): BC(V) = BC - (V-K)

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

C  Loading file 'table2.dat'	! Field star sample

C  Format for file interpretation

    1 format(
     +  I4,1X,I6,1X,A13,1X,A13,1X,I4,1X,F4.2,1X,A1,2X,F5.2,1X,A1,2X,
     +  I1,1X,I1,3X,I1,1X,A1,2X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,101
        read(1,'(A83)')ar__
        read(ar__,1)
     +  HR,HD,ID,SpType,Teff,log_g,f_log_g,v_Fe_H_,f__Fe_H_,r_UBV,
     +  r_VRI,r_VJHK,f_VJHK,Notes
        if(ar__(63:63) .EQ. '') r_UBV = iNULL__
        if(ar__(65:65) .EQ. '') r_VRI = iNULL__
        if(ar__(69:69) .EQ. '') r_VJHK = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  HR,HD,ID,SpType,Teff,log_g,f_log_g,v_Fe_H_,f__Fe_H_,r_UBV,
     +  r_VRI,r_VJHK,f_VJHK,Notes
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Calibrated color-temperature relations

C  Format for file interpretation

    2 format(
     +  I4,3X,F4.2,3X,F5.2,2X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,
     +  F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,
     +  3X,F5.3,2X,F6.3,3X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,550
        read(1,'(A148)')ar__1
        read(ar__1,2)
     +  Teff_1,log_g_1,v_Fe_H__1,v_U_B,v_U_B_CD,v_B_V,v_B_V_CD,v_V_R,
     +  v_V_R_CD,v_V_I,v_V_I_CD,v_V_K,v_J_K,v_H_K,v_V_K_c,v_J_K_c,
     +  v_H_K_c,CO,BC_K
        if(ar__1(22:26) .EQ. '') v_U_B = rNULL__
        if(ar__1(30:34) .EQ. '') v_U_B_CD = rNULL__
        if(ar__1(38:42) .EQ. '') v_B_V = rNULL__
        if(ar__1(46:50) .EQ. '') v_B_V_CD = rNULL__
        if(ar__1(54:58) .EQ. '') v_V_R = rNULL__
        if(ar__1(62:66) .EQ. '') v_V_R_CD = rNULL__
        if(ar__1(70:74) .EQ. '') v_V_I = rNULL__
        if(ar__1(78:82) .EQ. '') v_V_I_CD = rNULL__
        if(ar__1(86:90) .EQ. '') v_V_K = rNULL__
        if(ar__1(94:98) .EQ. '') v_J_K = rNULL__
        if(ar__1(102:106) .EQ. '') v_H_K = rNULL__
        if(ar__1(110:114) .EQ. '') v_V_K_c = rNULL__
        if(ar__1(118:122) .EQ. '') v_J_K_c = rNULL__
        if(ar__1(126:130) .EQ. '') v_H_K_c = rNULL__
        if(ar__1(133:138) .EQ. '') CO = rNULL__
        if(ar__1(142:146) .EQ. '') BC_K = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Teff_1,log_g_1,v_Fe_H__1,v_U_B,v_U_B_CD,v_B_V,v_B_V_CD,v_V_R,
     +  v_V_R_CD,v_V_I,v_V_I_CD,v_V_K,v_J_K,v_H_K,v_V_K_c,v_J_K_c,
     +  v_H_K_c,CO,BC_K
c    .......End.of.Just test output...........
      end do
      close(1)

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