Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/615/A151 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-18 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/615/A151 Lithium abundances in 714 F and G dwarf stars (Bensby+, 2018) *================================================================================ *Exploring the production and depletion of lithium in the Milky Way stellar disk. * Bensby T., Lind K. * <Astron. Astrophys. 615, A151 (2018)> * =2018A&A...615A.151B (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! *Li abundances and uncertainties. integer*4 nr__ parameter (nr__=714) ! Number of records character*127 ar__ ! Full-size record integer*4 HIP (nr__) ! Hipparcos number integer*4 Teff (nr__) ! (K) Effective temperature integer*4 e_Teff (nr__) ! (K) Effective temperature uncertainty real*4 logg (nr__) ! ([cm/s2]) Surface gravity real*4 e_logg (nr__) ! ([cm/s2]) Surface gravity uncertainty real*4 v_Fe_H_ (nr__) ! (Sun) Iron abundance normalised to Sun real*4 e__Fe_H_ (nr__) ! (Sun) Iron abundance uncertainty real*4 M (nr__) ! (Msun) Stellar mass real*4 b_M (nr__) ! (Msun) Lower limit on stellar mass real*4 B_M_1 (nr__) ! (Msun) Upper limit on stellar mass real*4 Age (nr__) ! (Gyr) Stellar age real*4 b_Age (nr__) ! (Gyr) Lower limit on stellar age real*4 B_Age_1 (nr__) ! (Gyr) Upper limit on stellar age real*4 ALi (nr__) ! ([-]) ? NLTE corrected Li abundance real*4 b_ALi (nr__) ! ([-]) ? NLTE corrected lower Li abundance real*4 B_ALi_1 (nr__) ! ([-]) ? NLTE corrected upper Li abundance real*4 NLTE (nr__) ! ([-]) ? NLTE correction that were applied integer*4 l_ALi (nr__) ! [0/1]? Limit flag on ALi (1) *Note (1): Limit flag on ALi as follows: * 1 = upper limit * 0 = well-detected Li line C============================================================================= C Loading file 'table2.dat' ! *Li abundances and uncertainties. C Format for file interpretation 1 format( + 2X,I6,3X,I4,2X,I4,3X,F4.2,3X,F4.2,3X,F5.2,3X,F4.2,3X,F4.2,3X, + F4.2,3X,F4.2,3X,F4.1,3X,F4.1,3X,F4.1,3X,F5.2,3X,F5.2,3X,F4.2, + 3X,F5.2,3X,I1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,714 read(1,'(A127)')ar__ read(ar__,1) + HIP(i__),Teff(i__),e_Teff(i__),logg(i__),e_logg(i__), + v_Fe_H_(i__),e__Fe_H_(i__),M(i__),b_M(i__),B_M_1(i__), + Age(i__),b_Age(i__),B_Age_1(i__),ALi(i__),b_ALi(i__), + B_ALi_1(i__),NLTE(i__),l_ALi(i__) if(ar__(96:100) .EQ. '') ALi(i__) = rNULL__ if(ar__(104:108) .EQ. '') b_ALi(i__) = rNULL__ if(ar__(112:115) .EQ. '') B_ALi_1(i__) = rNULL__ if(ar__(119:123) .EQ. '') NLTE(i__) = rNULL__ if(ar__(127:127) .EQ. '') l_ALi(i__) = iNULL__ c ..............Just test output........... write(6,1) + HIP(i__),Teff(i__),e_Teff(i__),logg(i__),e_logg(i__), + v_Fe_H_(i__),e__Fe_H_(i__),M(i__),b_M(i__),B_M_1(i__), + Age(i__),b_Age(i__),B_Age_1(i__),ALi(i__),b_ALi(i__), + B_ALi_1(i__),NLTE(i__),l_ALi(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end