FORTRAN Generation
(/./ftp/cats/J/ApJ/837/176)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/837/176 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-19
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/ApJ/837/176 Spectroscopic obs. of 2 red giant stars in omega Cen (Yong+, 2017)
*================================================================================
*A chemical signature from fast-rotating low-metallicity massive stars:
*ROA 276 in {omega} Centauri.
*    Yong D., Norris J.E., Da Costa G.S., Stanford L.M., Karakas A.I.,
*    Shingles L.J., Hirschi R., Pignatari M.
*   <Astrophys. J., 837, 176-176 (2017)>
*   =2017ApJ...837..176Y    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Stellar parameters for the program stars

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

      integer*4     ID         (nr__) ! Red giant star identifier
      integer*4     Teff       (nr__) ! (K) [4075/4125] Spectroscopic effective temperature (1)
      real*4        logg       (nr__) ! ([cm/s2]) [0.2/0.7] Spectroscopic surface gravity (1)
      real*4        xi         (nr__) ! (km/s) [1.7/2.4] Microturbulent velocity (1)
      real*4        v_Fe_H_    (nr__) ! ([Sun]) [-1.8/-1.3] Spectroscopic [Fe/H] abundance
      integer*4     Teffp      (nr__) ! (K) [4024/4130] Photometric effective temperature
      real*4        loggp      (nr__) ! ([cm/s2]) [0.3/0.8] Photometric log of surface gravity
*Note (1): The effective temperature, surface gravity, and microturbulent
*          velocity ({xi}_t_), were obtained by enforcing excitation and
*          ionization balance for Fe lines. The uncertainties in Teff, logg, and
*          {xi}_t_ are 50K, 0.2dex, and 0.2km/s, respectively.

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

C  Declarations for 'table2.dat'	! Line list, equivalent widths, and abundances

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

      character*5   Ion        (nr__1) ! Species identifier
      real*8        lambda     (nr__1) ! (0.1nm) [4057.8/7947.6]? Wavelength in Angstroms (1)
      real*4        LEP        (nr__1) ! (eV) [0/5.2]? Lower excitation potential
      real*4        log_gf     (nr__1) ! ([-]) [-10.3/0.7]? Log oscillator strength
      real*4        EW276      (nr__1) ! (10-13m) [20/150]? Equivalent width for ROA 276 (2)
      character*1   f_EW276    (nr__1) ! [s] s = spectrum synthesis
      real*4        EW46       (nr__1) ! (10-13m) [19.8/150]? Equivalent width for ROA 46 (2)
      character*1   f_EW46     (nr__1) ! [s] s = spectrum synthesis
      real*4        loge276    (nr__1) ! ([-]) [-1/8.1]? Log abundance for ROA 276
      real*4        loge46     (nr__1) ! ([-]) [-1.3/7.6]? Log abundance for ROA 46
      integer*4     Ref        (nr__1) ! [1/21] Source code (3)
*Note (1): The wavelength range for CH is 4270-4330{AA}.
*Note (2): In units of milli-Angstroms
*Note (3): Code as follows:
*  1 = Masseron et al. (2014, J/A+A/571/A47);
*  2 = Gratton et al. (2003, J/A+A/404/187) and references therein;
*  3 = values as used in Yong et al. (2005A&A...438..875Y)  where the
*      references include Kurucz & Bell (1995, Atomic line list
*      (Cambridge: Smithsonian Astrophysical Observatory)),
*      Prochaska et al. (2000AJ....120.2513P),
*      Den Hartog et al. (2003ApJS..148..543D),
*      Ivans et al. (2001AJ....122.1438I), and
*      Ramirez & Cohen (2002AJ....123.3277R);
*  4 = Oxford group including Blackwell et al. (1979MNRAS.186..633B),
*      Blackwell et al. (1979MNRAS.186..657B),
*      Blackwell et al. (1980MNRAS.191..445B),
*      Blackwell et al. (1986MNRAS.220..549B),
*      Blackwell et al. (1995A&A...296..217B);
*  5 = Kock & Richter (1968ZA.....69..180K);
*  6 = Hannaford & Lowe (1983OptEn..22..532H);
*  7 = Roederer & Lawler (2012, J/ApJ/750/76);
*  8 = mean of lifetimes from Simsarian et al. (1998PhRvA..57.2448S) and
*      Volz & Schmoranzer (1996PhST...65...48V) weighted according to
*      uncertainties, via Morton (2000ApJS..130..403M);
*  9 = Wiese F. (2009, CRC Handbook of Chemistry and Physics
*       90th ed. (Boca Raton, FL: CRC Press) 10)
* 10 = Biemont et al. (2011MNRAS.414.3350B);
* 11 = Biemont et al. (1981ApJ...248..867B);
* 12 = Ljung et al. (2006A&A...456.1181L);
* 13 = Whaling & Brault (1988PhyS...38..707W);
* 14 = Davidson et al. (1992A&A...255..457D)  using hfs/IS
*      from McWilliam (1998AJ....115.1640M);
* 15 = Lawler et al. (2001ApJ...556..452L), using hfs
*      from Ivans et al. (2006, J/ApJ/645/613);
* 16 = Lawler et al. (2009, J/ApJS/182/51);
* 17 = Li et al. (2007PhyS...76..577L);
* 18 = Den Hartog et al. (2003ApJS..148..543D), using hfs/IS from
*      Roederer et al. (2008ApJ...675..723R) when available;
* 19 = Lawler et al. (2006, J/ApJS/162/227), using hfs/IS from
*      Roederer et al. (2008ApJ...675..723R) when available;
* 20 = Lawler et al. (2001ApJ...563.1075L), using hfs/IS
*      from Ivans et al. (2006, J/ApJ/645/613);
* 21 = Biemont et al. (2000MNRAS.312..116B), using hfs/IS
*      from Roederer et al. (2012ApJS..203...27R).

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

C  Loading file 'table1.dat'	! Stellar parameters for the program stars

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,2
        read(1,'(A37)')ar__
        read(ar__,1)
     +  ID(i__),Teff(i__),logg(i__),xi(i__),v_Fe_H_(i__),Teffp(i__),
     +  loggp(i__)
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),Teff(i__),logg(i__),xi(i__),v_Fe_H_(i__),Teffp(i__),
     +  loggp(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Line list, equivalent widths, and abundances

C  Format for file interpretation

    2 format(
     +  A5,1X,F7.2,1X,F4.2,1X,F6.2,1X,F5.1,1X,A1,1X,F5.1,1X,A1,1X,
     +  F5.2,1X,F5.2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,333
        read(1,'(A56)')ar__1
        read(ar__1,2)
     +  Ion(i__),lambda(i__),LEP(i__),log_gf(i__),EW276(i__),
     +  f_EW276(i__),EW46(i__),f_EW46(i__),loge276(i__),loge46(i__),
     +  Ref(i__)
        if(ar__1(7:13) .EQ. '') lambda(i__) = rNULL__
        if(ar__1(15:18) .EQ. '') LEP(i__) = rNULL__
        if(ar__1(20:25) .EQ. '') log_gf(i__) = rNULL__
        if(ar__1(27:31) .EQ. '') EW276(i__) = rNULL__
        if(ar__1(35:39) .EQ. '') EW46(i__) = rNULL__
        if(ar__1(43:47) .EQ. '') loge276(i__) = rNULL__
        if(ar__1(49:53) .EQ. '') loge46(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Ion(i__),lambda(i__),LEP(i__),log_gf(i__),EW276(i__),
     +  f_EW276(i__),EW46(i__),f_EW46(i__),loge276(i__),loge46(i__),
     +  Ref(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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