FORTRAN Generation
(/./ftp/cats/J/A_A/610/A38)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/610/A38 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/A+A/610/A38       Li enrichment histories of the thick/thin disc  (Fu+, 2018)
*================================================================================
*The Gaia-ESO Survey:
*Lithium enrichment histories of the Galactic thick and thin disc.
*    Fu X., Romano D., Bragaglia A., Mucciarelli A., Lind K., Delgado Mena E.,
*    Sousa S.G., Randich S., Bressan A., Sbordone L., Martell S., Korn A.J.,
*    Abia C., Smiljanic R., Jofre P., Pancino E., Tautvaisiene G., Tang B.,
*    Lanzafame A.C., Magrini L., Carraro G., Bensby T., Damiani F., Alfaro E.J.,
*    Flaccomio E., Morbidelli L., Zaggia S., Lardo C., Monaco L., Frasca A.,
*    Donati P., Drazdauskas A., Chorniy Y., Bayo A., Kordopatis G.
*    <Astron. Astrophys. 610, A38 (2018)>
*    =2018A&A...610A..38F        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Stellar parameters, the selected chemical
                                 abundances, and their corresponding
                                 uncertainties of stars in our final sample

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

      character*16  CName      (nr__) ! Name derived from the object's equatorial
*                                    coordinate (HHMMSSss+DDMMSSs)
      character*26  Star       (nr__) ! Object name
      real*4        ALiLTE     (nr__) ! ([Sun]) LTE Li abundance from GES iDR4
      real*4        e_ALiLTE   (nr__) ! ([Sun]) ? Uncertainty of LTE Li abundance
      real*4        ALiNLTE    (nr__) ! ([Sun]) NLTE Li abundance
      character*8   CatLi      (nr__) ! Li abundance category (1)
      real*4        v_alpha_Fe_(nr__) ! ([Sun]) Mean value of [alpha/Fe] from MCMC
      real*4        e__alpha_Fe_(nr__) ! ([Sun]) 1sigma uncertainty of [alpha/Fe] from MCMC
      real*4        v_Fe_H_    (nr__) ! ([Sun]) Iron abundance from GES iDR4 catalogue
      real*4        e__Fe_H_   (nr__) ! ([Sun]) Uncertainty of [Fe/H]
      real*4        logg       (nr__) ! ([Sun]) Surface gravity from GES iDR4
      real*4        e_logg     (nr__) ! ([Sun]) Uncertainty of log(g)
      integer*4     Teff       (nr__) ! (K) Effective temperature from GES iDR4
      integer*4     e_Teff     (nr__) ! (K) Uncertainty of Teff
      real*4        v_Ba_Fe_   (nr__) ! ([Sun]) Mean value of [Ba/Fe] from MCMC
      real*4        e__Ba_Fe_  (nr__) ! ([Sun]) 1sigma uncertainty of [Ba/Fe] from MCMC
      real*4        v_Y_Fe_    (nr__) ! ([Sun]) Mean value of [Y/Fe] from MCMC
      real*4        e__Y_Fe_   (nr__) ! ([Sun]) 1sigma uncertainty of [Y/Fe] from MCMC
*Note (1): Li abundance category flag as follows:
*    meas.    = checked Li measurement
*    La.upper = labeled upper limits

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

C  Loading file 'table1.dat'	! Stellar parameters, the selected chemical
*                                 abundances, and their corresponding
*                                 uncertainties of stars in our final sample

C  Format for file interpretation

    1 format(
     +  A16,1X,A26,1X,F4.2,1X,F4.2,1X,F4.2,1X,A8,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,I4,1X,I3,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1399
        read(1,'(A130)')ar__
        read(ar__,1)
     +  CName(i__),Star(i__),ALiLTE(i__),e_ALiLTE(i__),ALiNLTE(i__),
     +  CatLi(i__),v_alpha_Fe_(i__),e__alpha_Fe_(i__),v_Fe_H_(i__),
     +  e__Fe_H_(i__),logg(i__),e_logg(i__),Teff(i__),e_Teff(i__),
     +  v_Ba_Fe_(i__),e__Ba_Fe_(i__),v_Y_Fe_(i__),e__Y_Fe_(i__)
        if(ar__(50:53) .EQ. '') e_ALiLTE(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  CName(i__),Star(i__),ALiLTE(i__),e_ALiLTE(i__),ALiNLTE(i__),
     +  CatLi(i__),v_alpha_Fe_(i__),e__alpha_Fe_(i__),v_Fe_H_(i__),
     +  e__Fe_H_(i__),logg(i__),e_logg(i__),Teff(i__),e_Teff(i__),
     +  v_Ba_Fe_(i__),e__Ba_Fe_(i__),v_Y_Fe_(i__),e__Y_Fe_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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