FORTRAN Generation
(/./ftp/cats/J/A_A/347/69)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/347/69 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 2026-Jun-08
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/347/69       Abundances of halo early-type stars        (Rolleston+, 1999)
*================================================================================
*Early-type stars in the Galactic halo from the Palomar-Green Survey.
*II: A sample of distant, apparently young Population I stars
*       Rolleston W.R.J., Hambly N.C., Keenan F.P., Dufton P.L., Saffer R.A.
*      <Astron. Astrophys. 347, 69 (1999)>
*      =1999A&A...347...69R      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Equivalent width for the non-diffuse helium and
                                  metal lines (PG 0855+294 to PG 2219+094)

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

      real*8        Line        ! (0.1nm) Wavelength of spectral line
      character*6   Species     ! Ionization stage of element
      integer*4     EW0855      ! (0.1pm) ? Equivalent width for PG 0855+294
      real*4        A0855       ! ? LTE abundances for PG 0855+294 in 12+log(X/H)
      integer*4     EW0934      ! (0.1pm) ? Equivalent width for PG 0934+145
      real*4        A0934       ! ? LTE abundances for PG 0934+145 in 12+log(X/H)
      integer*4     EW0955      ! (0.1pm) ? Equivalent width for PG 0955+291
      real*4        A0955       ! ? LTE abundances for PG 0955+291 in 12+log(X/H)
      integer*4     EW1205      ! (0.1pm) ? Equivalent width for PG 1205+228
      real*4        A1205       ! ? LTE abundances for PG 1205+228 in 12+log(X/H)
      integer*4     EW2219      ! (0.1pm) ? Equivalent width for PG 2219+094
      real*4        A2219       ! ? LTE abundances for PG 2219+094 in 12+log(X/H)

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

C  Declarations for 'table5.dat'	! Equivalent width for the non-diffuse helium and
                                  metal lines (PG 2229+099 and PG 2345+241)

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

      real*8        Line_1      ! (0.1nm) Wavelength of spectral line
      character*6   Species_1   ! Ionization stage of element
      integer*4     EW2229      ! (0.1pm) ? Equivalent width for PG 2229+099
      real*4        A2229       ! ? LTE abundances for PG 2229+099 in 12+log(X/H)
      integer*4     EW2345      ! (0.1pm) ? Equivalent width for PG 2345+241
      real*4        A2345       ! ? LTE abundances for PG 2345+241 in 12+log(X/H)

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

C  Loading file 'table4.dat'	! Equivalent width for the non-diffuse helium and
*                                  metal lines (PG 0855+294 to PG 2219+094)

C  Format for file interpretation

    1 format(
     +  F7.2,2X,A6,2X,I3,1X,F5.2,3X,I3,1X,F5.2,3X,I3,1X,F5.2,3X,I3,1X,
     +  F5.2,3X,I3,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,17
        read(1,'(A74)')ar__
        read(ar__,1)
     +  Line,Species,EW0855,A0855,EW0934,A0934,EW0955,A0955,EW1205,
     +  A1205,EW2219,A2219
        if(ar__(18:20) .EQ. '') EW0855 = iNULL__
        if(ar__(22:26) .EQ. '') A0855 = rNULL__
        if(ar__(30:32) .EQ. '') EW0934 = iNULL__
        if(ar__(34:38) .EQ. '') A0934 = rNULL__
        if(ar__(42:44) .EQ. '') EW0955 = iNULL__
        if(ar__(46:50) .EQ. '') A0955 = rNULL__
        if(ar__(54:56) .EQ. '') EW1205 = iNULL__
        if(ar__(58:62) .EQ. '') A1205 = rNULL__
        if(ar__(66:68) .EQ. '') EW2219 = iNULL__
        if(ar__(70:74) .EQ. '') A2219 = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Line,Species,EW0855,A0855,EW0934,A0934,EW0955,A0955,EW1205,
     +  A1205,EW2219,A2219
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Equivalent width for the non-diffuse helium and
*                                  metal lines (PG 2229+099 and PG 2345+241)

C  Format for file interpretation

    2 format(F7.2,2X,A6,2X,I3,1X,F5.2,3X,I3,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,61
        read(1,'(A38)')ar__1
        read(ar__1,2)Line_1,Species_1,EW2229,A2229,EW2345,A2345
        if(ar__1(18:20) .EQ. '') EW2229 = iNULL__
        if(ar__1(22:26) .EQ. '') A2229 = rNULL__
        if(ar__1(30:32) .EQ. '') EW2345 = iNULL__
        if(ar__1(34:38) .EQ. '') A2345 = rNULL__
c    ..............Just test output...........
        write(6,2)Line_1,Species_1,EW2229,A2229,EW2345,A2345
c    .......End.of.Just test output...........
      end do
      close(1)

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