FORTRAN Generation
(/./ftp/cats/J/A_A/599/A96)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/599/A96 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/A+A/599/A96     [C/H] Chemical abundances of 1110 stars (Suarez-Andres+, 2017)
*================================================================================
*CNO behaviour in planet-harbouring stars.
*II. Carbon abundances in stars with and without planets using the CH band.
*    Suarez-Andres L., Israelian G., Gonzalez Hernandez J.I., Adibekyan V.Zh.,
*    Delgado Mena E., Santos N.C., Sousa S.G.
*    <Astron. Astrophys. 599, A96 (2017)>
*    =2017A&A...599A..96S        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Stellar parameters and [C/H] abundances

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

      character*10  Name        ! Name of the targets
      integer*4     Teff        ! (K) Effective temperature
      real*4        logg        ! ([cm/s2]) Gravity (logg)
      real*4        v_Fe_H_     ! ([-]) Metallicity
      real*4        vtur        ! (km/s) Microturbulence velocity
      real*8        v_C_H_      ! ([-]) Carbon abundance
      real*4        e__C_H_     ! ([-]) Errors in [C/H]
      character*5   popB        ! Population

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

C  Loading file 'table1.dat'	! Stellar parameters and [C/H] abundances

C  Format for file interpretation

    1 format(A10,1X,I4,1X,F4.2,1X,F5.2,1X,F4.2,1X,F7.4,1X,F4.2,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1110
        read(1,'(A50)')ar__
        read(ar__,1)Name,Teff,logg,v_Fe_H_,vtur,v_C_H_,e__C_H_,popB
c    ..............Just test output...........
        write(6,1)Name,Teff,logg,v_Fe_H_,vtur,v_C_H_,e__C_H_,popB
c    .......End.of.Just test output...........
      end do
      close(1)

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