FORTRAN Generation
(/./ftp/cats/J/ApJS/169/430)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/169/430 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-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/ApJS/169/430 Atmospheric parameters of 1907 metal-rich stars (Robinson+, 2007)
*================================================================================
*The N2K consortium. VII. Atmospheric parameters of 1907 metal-rich stars:
*finding planet-search targets.
*    Robinson S.E., Ammons S.M., Kretke K.A., Strader J., Wertheimer J.G.,
*    Fischer D.A., Laughlin G.
*   <Astrophys. J. Suppl. Ser., 169, 430-438 (2007)>
*   =2007ApJS..169..430R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Lick indices for program targets and test stars

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

      integer*4     HIP         ! The Hipparcos number (Cat. I/239/hip_main)
      character*1   VF05        ! [*] Valenti & Fischer (2005,
*                                      Cat. <J/ApJS/159/141>) code (1)
      real*4        Ca4227      ! Lick Ca4227 index
      real*4        G4300       ! (0.1nm) Lick G4300 index in Angstroms
      real*4        HgF         ! (0.1nm) Lick H{gamma}_F_ index (4342{AA}) in Angstroms
      real*4        Fe4383      ! (0.1nm) Lick Fe4383 index in Angstroms
      real*4        Fe4531      ! (0.1nm) Lick Fe4531 index in Angstroms
      real*4        Fe4668      ! (0.1nm) Lick Fe4668 index in Angstroms
      real*4        Hb          ! (0.1nm) Lick H{beta} index (4861{AA}) in Angstroms
      real*4        Fe5015      ! (0.1nm) Lick Fe5015 index in Angstroms
      real*4        Mg2         ! (mag) Lick Mg_2_ index (5184-5196{AA})
      real*4        Mgb         ! (0.1nm) Lick Mg b index (5160-5192{AA}) in Angstroms
      real*4        Fe5270      ! (0.1nm) Lick Fe5270 index in Angstroms
      real*4        NaD         ! (0.1nm) Lick Na D index (5895{AA}) in Angstroms
*Note (1): '*' means that the star is in common with VF05 (Valenti &
*     Fischer <J/ApJS/159/141>), used to test calibrations of Paper 1
*     (Robinson et al., Cat. <J/ApJ/637/1102>).

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

C  Declarations for 'table3.dat'	! Stellar atmospheric parameters

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

      integer*4     HIP_1       ! The Hipparcos (<I/239>) number
      character*11  SpType      ! MK spectral type from SIMBAD
      integer*4     Teff        ! (K) Effective temperature
      character*1   f_Teff      ! [b] Teff out of tested range (1)
      real*4        v_Fe_H_     ! ([Sun]) Metallicity
      character*1   f__Fe_H_    ! [b] [Fe/H] out of tested range (1)
      real*4        log_g       ! ([cm/s2]) Log of the surface gravity
      character*1   f_log_g     ! [b] log(g) out of tested range (1)
      character*1   Kc          ! [*] Known component code (2)
      character*1   Oc          ! [*] Observed component code (3)
      character*47  Comm        ! Additional comment
*Note (1): 'b' means that the atmospheric parameter is out of tested range
*           of Lick Indices calibration: 4100K<Teff<6400K, 
*           -0.95dex<[Fe/H]<0.5dex, 4.0dex<log(g)<5.1dex.
*Note (2): '*' means that the star is known to be a member of a binary
*     or multiple system.  Multiplicity information from SIMBAD database.
*Note (3): '*' means that a possible companion star was observed on the
*     2.1m telescope slit camera. Slit width 1.3", slit length 5.2".

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

C  Loading file 'table2.dat'	! Lick indices for program targets and test stars

C  Format for file interpretation

    1 format(
     +  I6,1X,A1,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  F5.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1964
        read(1,'(A90)')ar__
        read(ar__,1)
     +  HIP,VF05,Ca4227,G4300,HgF,Fe4383,Fe4531,Fe4668,Hb,Fe5015,Mg2,
     +  Mgb,Fe5270,NaD
c    ..............Just test output...........
        write(6,1)
     +  HIP,VF05,Ca4227,G4300,HgF,Fe4383,Fe4531,Fe4668,Hb,Fe5015,Mg2,
     +  Mgb,Fe5270,NaD
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Stellar atmospheric parameters

C  Format for file interpretation

    2 format(
     +  I6,1X,A11,1X,I4,1X,A1,1X,F5.2,1X,A1,1X,F4.2,1X,A1,1X,A1,1X,A1,
     +  1X,A47)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,1907
        read(1,'(A92)')ar__1
        read(ar__1,2)
     +  HIP_1,SpType,Teff,f_Teff,v_Fe_H_,f__Fe_H_,log_g,f_log_g,Kc,Oc,
     +  Comm
c    ..............Just test output...........
        write(6,2)
     +  HIP_1,SpType,Teff,f_Teff,v_Fe_H_,f__Fe_H_,log_g,f_log_g,Kc,Oc,
     +  Comm
c    .......End.of.Just test output...........
      end do
      close(1)

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