FORTRAN Generation
(/./ftp/cats/J/ApJ/634/1319)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/634/1319 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-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/ApJ/634/1319  Synthetic Lick indices of alpha-enhanced stars (Franchini+ 2005)
*================================================================================
*Synthetic Lick indices and detection of {alpha}-enhanced stars.
*III. F, G, and K stars with [Fe/H]>0.00.
*    Franchini M., Morossi C., Di Marcantonio P., Castelli F., Malagnini M.L.,
*    Chavez M.
*   <Astrophys. J., 634, 1319-1335 (2005)>
*   =2005ApJ...634.1319F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! The program stars

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

      character*28  Class      (nr__) ! Classification (1)
      integer*4     HD         (nr__) ! HD number
      character*1   f_HD       (nr__) ! [+*] Flag on HD (2)
      character*10  SpType     (nr__) ! MK spectral type
      real*4        v_Fe_H_    (nr__) ! ([Sun]) Average log Fe/H number abundance from the
*                                   Taylor catalog
      real*4        e__Fe_H_   (nr__) ! ([Sun]) Error in [Fe/H]
      character*1   LC         (nr__) ! [gd] Luminosity class: giant (g) or dwarf (d)
      character*1   W94        (nr__) ! [y-] In the Worthey et al. catalog? (G1)
      character*1   C02        (nr__) ! [y-] In the Cananea collection data set? (G2)
      character*1   STE        (nr__) ! [y-] In the STELIB library data set? (G3)
      character*1   ELO        (nr__) ! [y-] In the ELODIE library data set? (G4)
      character*1   NBP        (nr__) ! [y-] In the Nearby Stars Project library data
*                                   set? (G5)
      character*1   NSt        (nr__) ! [y-] In the NStars library data set? (G6)
      character*1   I_US       (nr__) ! [y-] In the Indo-US library data set? (G7)
      character*1   S4N        (nr__) ! [y-] In the Spectroscopic Survey of Stars in
*                                   the Solar Neighborhood database? (G8)
*Note (1): SSA stands for solar scaled abundances, and NSSA for non solar scaled
*          abundances (i.e. {alpha}-enhanced stars).
*Note (2): Flag on HD, defined as follows:
*    + = NSSA classification from Na D vs Ca4227 diagram only.
*    * = SSA classification from Na D vs Mg2 diagram only.

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

C  Declarations for 'table4.dat'	! *Classification of supersolar stars from the literature

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

      integer*4     HD_1       (nr__1) ! The HD number
      real*4        v_Fe_H_T   (nr__1) ! ([Sun]) ? [Fe/H] value from Taylor catalog
      real*4        e__Fe_H_T  (nr__1) ! ([Sun]) ? The RMS error in [Fe/H]_T
      real*4        dFeT       (nr__1) ! ([Sun]) ? Level of supersolar metallicity (1)
      real*4        v_Fe_H_1   (nr__1) ! ([Sun]) ? Allende Prieto et al (2004, Cat.
*                                    <J/A+A/420/183>) [Fe/H] value
      real*4        e__Fe_H_1  (nr__1) ! ([Sun]) ? The RMS error in [Fe/H]_1
      real*4        dFe1       (nr__1) ! ([Sun]) ? Difference if >0 (1)
      real*4        v_Fe_H_2   (nr__1) ! ([Sun]) ? Fuhrmann (2004AN....325....3F)
*                                    [Fe/H] value
      real*4        e__Fe_H_2  (nr__1) ! ([Sun]) ? The RMS error in [Fe/H]2
      real*4        dFe2       (nr__1) ! ([Sun]) ? Difference if >0 (1)
      real*4        v_Fe_H_3   (nr__1) ! ([Sun]) ? Bensby et al. (2005, Cat. <J/A+A/433/185>)
*                                    [Fe/H] value
      real*4        e__Fe_H_3  (nr__1) ! ([Sun]) ? The RMS error in [Fe/H]3
      real*4        dFe3       (nr__1) ! ([Sun]) ? Difference if >0 (1)
      real*4        v_Fe_H_4   (nr__1) ! ([Sun]) ? Luck & Heiter (2005AJ....129.1063L)
*                                    [Fe/H] value
      real*4        e__Fe_H_4  (nr__1) ! ([Sun]) ? The RMS error in [Fe/H]4
      real*4        dFe4       (nr__1) ! ([Sun]) ? Level of supersolar metallicity (1)
      real*4        v_Mg_Fe_1  (nr__1) ! ([Sun]) ? Allende Prieto et al (2004, Cat.
*                                    <J/A+A/420/183>) [Mg/Fe] value
      real*4        e__Mg_Fe_1 (nr__1) ! ([Sun]) ? The RMS error in [Mg/Fe]1
      real*4        dMg1       (nr__1) ! ([Sun]) ? Difference if >0 (1)
      real*4        v_Mg_Fe_2  (nr__1) ! ([Sun]) ? Fuhrmann (2004AN....325....3F)
*                                    [Mg/Fe] value
      real*4        e__Mg_Fe_2 (nr__1) ! ([Sun]) ? The RMS error in [Mg/Fe]2
      real*4        dMg2       (nr__1) ! ([Sun]) ? Difference if >0 (1)
      real*4        v_Mg_Fe_3  (nr__1) ! ([Sun]) ? Bensby et al. (2005, Cat.
*                                    <J/A+A/433/185>) [Mg/Fe] value
      real*4        e__Mg_Fe_3 (nr__1) ! ([Sun]) ? The RMS error in [Mg/Fe]3
      real*4        dMg3       (nr__1) ! ([Sun]) ? Difference if >0 (1)
      real*4        v_Mg_Fe_4  (nr__1) ! ([Sun]) ? Luck & Heiter (2005AJ....129.1063L)
*                                    [Mg/Fe] value
      real*4        e__Mg_Fe_4 (nr__1) ! ([Sun]) ? The RMS error in [Mg/Fe]4
      real*4        dMg4       (nr__1) ! ([Sun]) ? Difference if >0 (1)
      character*5   Class_1    (nr__1) ! Star classification (2)
*Note (1): Selected stars have abundance determinations satisfying:
*            Diff_Fe_=[Fe/H]-e_[Fe/H]_>0.0dex, with [Fe/H]>0.0dex
*            Diff_Mg_=[Mg/Fe]-e_[Mg/Fe]_>0.0dex, with [Mg/Fe]>0.0dex
*Note (2): Possible classification abbreviated as follows:
*    SSA   = high probability solar-scaled abundance
*    SSA:  = possible solar-scaled abundance
*    NSSA: = possible non-solar-scaled abundance

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

C  Loading file 'table2.dat'	! The program stars

C  Format for file interpretation

    1 format(
     +  A28,1X,I6,A1,1X,A10,1X,F4.2,1X,F4.2,1X,A1,1X,A1,1X,A1,1X,A1,
     +  1X,A1,1X,A1,1X,A1,1X,A1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,119
        read(1,'(A75)')ar__
        read(ar__,1)
     +  Class(i__),HD(i__),f_HD(i__),SpType(i__),v_Fe_H_(i__),
     +  e__Fe_H_(i__),LC(i__),W94(i__),C02(i__),STE(i__),ELO(i__),
     +  NBP(i__),NSt(i__),I_US(i__),S4N(i__)
c    ..............Just test output...........
        write(6,1)
     +  Class(i__),HD(i__),f_HD(i__),SpType(i__),v_Fe_H_(i__),
     +  e__Fe_H_(i__),LC(i__),W94(i__),C02(i__),STE(i__),ELO(i__),
     +  NBP(i__),NSt(i__),I_US(i__),S4N(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! *Classification of supersolar stars from the literature

C  Format for file interpretation

    2 format(
     +  I6,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,
     +  1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,33
        read(1,'(A174)')ar__1
        read(ar__1,2)
     +  HD_1(i__),v_Fe_H_T(i__),e__Fe_H_T(i__),dFeT(i__),
     +  v_Fe_H_1(i__),e__Fe_H_1(i__),dFe1(i__),v_Fe_H_2(i__),
     +  e__Fe_H_2(i__),dFe2(i__),v_Fe_H_3(i__),e__Fe_H_3(i__),
     +  dFe3(i__),v_Fe_H_4(i__),e__Fe_H_4(i__),dFe4(i__),
     +  v_Mg_Fe_1(i__),e__Mg_Fe_1(i__),dMg1(i__),v_Mg_Fe_2(i__),
     +  e__Mg_Fe_2(i__),dMg2(i__),v_Mg_Fe_3(i__),e__Mg_Fe_3(i__),
     +  dMg3(i__),v_Mg_Fe_4(i__),e__Mg_Fe_4(i__),dMg4(i__),
     +  Class_1(i__)
        if(ar__1(8:12) .EQ. '') v_Fe_H_T(i__) = rNULL__
        if(ar__1(14:18) .EQ. '') e__Fe_H_T(i__) = rNULL__
        if(ar__1(20:24) .EQ. '') dFeT(i__) = rNULL__
        if(ar__1(26:30) .EQ. '') v_Fe_H_1(i__) = rNULL__
        if(ar__1(32:36) .EQ. '') e__Fe_H_1(i__) = rNULL__
        if(ar__1(38:42) .EQ. '') dFe1(i__) = rNULL__
        if(ar__1(44:48) .EQ. '') v_Fe_H_2(i__) = rNULL__
        if(ar__1(50:54) .EQ. '') e__Fe_H_2(i__) = rNULL__
        if(ar__1(56:60) .EQ. '') dFe2(i__) = rNULL__
        if(ar__1(62:66) .EQ. '') v_Fe_H_3(i__) = rNULL__
        if(ar__1(68:72) .EQ. '') e__Fe_H_3(i__) = rNULL__
        if(ar__1(74:78) .EQ. '') dFe3(i__) = rNULL__
        if(ar__1(80:84) .EQ. '') v_Fe_H_4(i__) = rNULL__
        if(ar__1(86:90) .EQ. '') e__Fe_H_4(i__) = rNULL__
        if(ar__1(92:96) .EQ. '') dFe4(i__) = rNULL__
        if(ar__1(98:102) .EQ. '') v_Mg_Fe_1(i__) = rNULL__
        if(ar__1(104:108) .EQ. '') e__Mg_Fe_1(i__) = rNULL__
        if(ar__1(110:114) .EQ. '') dMg1(i__) = rNULL__
        if(ar__1(116:120) .EQ. '') v_Mg_Fe_2(i__) = rNULL__
        if(ar__1(122:126) .EQ. '') e__Mg_Fe_2(i__) = rNULL__
        if(ar__1(128:132) .EQ. '') dMg2(i__) = rNULL__
        if(ar__1(134:138) .EQ. '') v_Mg_Fe_3(i__) = rNULL__
        if(ar__1(140:144) .EQ. '') e__Mg_Fe_3(i__) = rNULL__
        if(ar__1(146:150) .EQ. '') dMg3(i__) = rNULL__
        if(ar__1(152:156) .EQ. '') v_Mg_Fe_4(i__) = rNULL__
        if(ar__1(158:162) .EQ. '') e__Mg_Fe_4(i__) = rNULL__
        if(ar__1(164:168) .EQ. '') dMg4(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  HD_1(i__),v_Fe_H_T(i__),e__Fe_H_T(i__),dFeT(i__),
     +  v_Fe_H_1(i__),e__Fe_H_1(i__),dFe1(i__),v_Fe_H_2(i__),
     +  e__Fe_H_2(i__),dFe2(i__),v_Fe_H_3(i__),e__Fe_H_3(i__),
     +  dFe3(i__),v_Fe_H_4(i__),e__Fe_H_4(i__),dFe4(i__),
     +  v_Mg_Fe_1(i__),e__Mg_Fe_1(i__),dMg1(i__),v_Mg_Fe_2(i__),
     +  e__Mg_Fe_2(i__),dMg2(i__),v_Mg_Fe_3(i__),e__Mg_Fe_3(i__),
     +  dMg3(i__),v_Mg_Fe_4(i__),e__Mg_Fe_4(i__),dMg4(i__),
     +  Class_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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