FORTRAN Generation
(/./ftp/cats/J/A_A/503/541)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/503/541 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/A+A/503/541  Neutral Li in late-type stars non-LTE calculations  (Lind+, 2009)
*================================================================================
*Departures from LTE for neutral Li in late-type stars.
*    Lind K., Asplund M., Barklem P.S.
*    <Astron. Astrophys. 503, 541 (2009)>
*    =2009A&A...503..541L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Non-LTE abundance corrections and equivalent
                              widths for the 670.7nm line

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

      integer*4     Teff        ! (K) Effective temperature
      real*4        logg        ! ([cm/s2]) Surface gravity
      real*4        v_Fe_H_     ! ([Sun]) Metallicity
      real*4        Vturb       ! (km/s) Microturbulence velocity
      real*4        A_Li        ! ([Sun]) LTE lithium abundance
      real*4        Delta       ! ([Sun]) Non-LTE abundance correction (1)
      real*4        W_LTE       ! (pm) LTE equivalent width
      real*4        W_NLTE      ! (pm) Non-LTE equivalent width
*Note (1): Corrections are given for equivalent widths in the range 0.01-100pm.

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

C  Declarations for 'table3.dat'	! Non-LTE abundance corrections and equivalent
                              widths for the 610.3nm line

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

      integer*4     Teff_1      ! (K) Effective temperature
      real*4        logg_1      ! ([cm/s2]) Surface gravity
      real*4        v_Fe_H__1   ! ([Sun]) Metallicity
      real*4        Vturb_1     ! (km/s) Microturbulence velocity
      real*4        A_Li_1      ! ([Sun]) LTE lithium abundance
      real*4        Delta_1     ! ([Sun]) Non-LTE abundance correction (1)
      real*4        W_LTE_1     ! (pm) LTE equivalent width
      real*4        W_NLTE_1    ! (pm) Non-LTE equivalent width
*Note (1): Corrections are given for equivalent widths in the range 0.01-100pm.

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

C  Loading file 'table2.dat'	! Non-LTE abundance corrections and equivalent
*                              widths for the 670.7nm line

C  Format for file interpretation

    1 format(
     +  I4,2X,F3.1,2X,F4.1,2X,F3.1,2X,F4.1,2X,F5.2,2X,F5.2,2X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,5431
        read(1,'(A47)')ar__
        read(ar__,1)Teff,logg,v_Fe_H_,Vturb,A_Li,Delta,W_LTE,W_NLTE
c    ..............Just test output...........
        write(6,1)Teff,logg,v_Fe_H_,Vturb,A_Li,Delta,W_LTE,W_NLTE
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Non-LTE abundance corrections and equivalent
*                              widths for the 610.3nm line

C  Format for file interpretation

    2 format(
     +  I4,2X,F3.1,2X,F4.1,2X,F3.1,2X,F4.1,2X,F5.2,2X,F5.2,2X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,4388
        read(1,'(A47)')ar__1
        read(ar__1,2)
     +  Teff_1,logg_1,v_Fe_H__1,Vturb_1,A_Li_1,Delta_1,W_LTE_1,
     +  W_NLTE_1
c    ..............Just test output...........
        write(6,2)
     +  Teff_1,logg_1,v_Fe_H__1,Vturb_1,A_Li_1,Delta_1,W_LTE_1,
     +  W_NLTE_1
c    .......End.of.Just test output...........
      end do
      close(1)

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