FORTRAN Generation
(/./ftp/cats/J/ApJ/708/560)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/708/560 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-Mar-29
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/708/560           Spectroscopy of UMa II and Coma Ber     (Frebel+, 2010)
*================================================================================
*High-resolution spectroscopy of extremely metal-poor stars in the least evolved
*galaxies: Ursa Major II and Coma Berenices.
*    Frebel A., Simon J.D., Geha M., Willman B.
*   <Astrophys. J., 708, 560-583 (2010)>
*   =2010ApJ...708..560F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'stars.dat'	! Photometry and other stellar parameters (table 1
                             and 5 of the paper)

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

      character*14  Gal         ! Dwarf galaxy name (Coma Berenices or
*                                   Ursa Major II)
      character*14  SDSS        ! Star SDSS designation (JHHMMSS+DDMMSS)
      character*9   Name        ! Star name
      character*1   f_Name      ! [f] Non-member star (1)
      real*4        Vmag        ! (mag) ? V-band magnitude (2)
      real*4        rmag        ! (mag) ? SDSS-DR7 r-band magnitude (2)
      real*4        g_r         ! (mag) ? SDSS-DR7 g-r color index (2)
      real*4        rMag_1      ! (mag) ? Absolute r-band magnitude (2)
      integer*4     Teff        ! (K) Effective temperature (3)
      real*4        logg        ! ([cm/s2]) Surface gravity
      real*4        v_Fe_H_     ! ([-]) Fe/H abundance
      real*4        Vt          ! (km/s) Microturbulent velocity {xi}
*Note (1):
*  f = UMa II-NM was observed but was later determined not to be a member of
*      UMa II.
*Note (2): The r magnitudes and g-r colors were obtained from the updated SDSS
*          DR7 (Abazajian et al. 2009, Cat. II/294), while the V magnitudes were
*          determined from g and r using the conversions given by Smith et al.
*          (2002AJ....123.2121S).
*Note (3): Temperature are rounded to the nearest 10K.

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

C  Declarations for 'table2.dat'	! Observing details

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*9   Name_1      ! Star name
      integer*4     RAh         ! (h) Hour of right ascension (J2000)
      integer*4     RAm         ! (min) Minute of right ascension (J2000)
      real*4        RAs         ! (s) Second of right ascension (J2000)
      character*1   DE_         ! Sign of declination (J2000)
      integer*4     DEd         ! (deg) Degree of declination (J2000)
      integer*4     DEm         ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs         ! (arcsec) Arcsecond of declination (J2000)
      real*8        JD          ! (d) Julian Date of observation
      real*4        Exp         ! (h) Exposure time
      integer*4     S_N5        ! 5000{AA} signal to noise ratio (4)
      integer*4     S_N6        ! 6000{AA} signal to noise ratio (4)
      integer*4     S_N65       ! 6500{AA} signal to noise ratio (4)
      real*4        RVH         ! (km/s) HIRES radial velocity
      real*4        e_RVH       ! (km/s) RVH uncertainty
      real*4        RVD         ! (km/s) ? DEIMOS radial velocity
      real*4        e_RVD       ! (km/s) ? RVD uncertainty
      character*8   Comm        ! Comment
*Note (4): The S/N measurements are for ~22m{AA} ("blue" CCD), ~26m{AA}
*     ("green" CCD), and ~28m{AA} ("green" CCD) pixel sizes, respectively.

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

C  Declarations for 'ew.dat'	! Equivalent width measurements (table 4)

      integer*4 nr__2
      parameter (nr__2=2191)	! Number of records
      character*52 ar__2  	! Full-size record

      character*9   Name_2      ! Star name
      character*4   Ion         ! Species identification
      real*8        lambda      ! (0.1nm) Wavelength in Angstroms
      real*4        ExPot       ! (eV) ? Excitation potential
      real*8        log_gf      ! ([-]) ? Log of the oscillator strength
      character*1   l_EW        ! Limit flag on EW
      real*4        EW          ! (0.1pm) ? Equivalent width in milli-Angstroms
      character*1   f_EW        ! [s] s: indicates a spectrum synthesis measurement
      character*1   l_log_e     ! Limit flag on log(e)
      real*4        log_e       ! ([-]) ? log{epsilon} abundance (H=12)

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

C  Declarations for 'table6.dat'	! HIRES abundances of the UMa II stars

      integer*4 nr__3
      parameter (nr__3=84)	! Number of records
      character*47 ar__3  	! Full-size record

      character*9   Name_3      ! Star name
      character*5   Ion_1       ! Species identification
      character*1   l_log_e_1   ! Limit flag on loge
      real*4        log_e_1     ! ([-]) log{epsilon} abundance (X)
      character*1   f_log_e     ! [a] distorted lines (1)
      character*1   l__X_H_     ! Limit flag on [X/H]
      real*4        v_X_H_      ! ([Sun]) X/H abundance
      character*1   l__X_Fe_    ! Limit flag on [X/Fe]
      real*4        v_X_Fe_     ! ([Sun]) ? X/Fe abundance (G1)
      integer*4     N           ! Number of spectra used
      real*4        Sig         ! ([-]) ? Abundance uncertainty
*Note (1):
*   a = The Zn lines are somewhat distorted; this may lead to an overestimated
*       Zn abundance.

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

C  Declarations for 'table7.dat'	! HIRES abundances of the Coma Ber stars

      integer*4 nr__4
      parameter (nr__4=84)	! Number of records
      character*47 ar__4  	! Full-size record

      character*9   Name_4      ! Star name
      character*5   Ion_2       ! Species identification
      character*1   l_log_e_1   ! Limit flag on loge
      real*4        log_e_1     ! ([-]) log{epsilon} abundance (X)
      character*1   f_log_e_1   ! [a] distorted lines (1)
      character*1   l__X_H__1   ! Limit flag on [X/H]
      real*4        v_X_H__1    ! ([Sun]) X/H abundance
      character*1   l__X_Fe__1  ! Limit flag on [X/Fe]
      real*4        v_X_Fe__1   ! ([Sun]) ? X/Fe abundance (G1)
      integer*4     N_1         ! Number of spectra used
      real*4        Sig_1       ! ([-]) ? Abundance uncertainty
*Note (1):
*   a = The Zn lines are somewhat distorted; this may lead to an overestimated
*       Zn abundance.

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

C  Declarations for 'table9.dat'	! HIRES abundances of standard star HD 122563

      integer*4 nr__5
      parameter (nr__5=54)	! Number of records
      character*54 ar__5  	! Full-size record

      character*9   Name_5      ! Star name
      character*5   Ion_3       ! Species identification
      real*4        log_e_X0    ! ([-]) ? Log {epsilon} abundance (X)_0_
      character*1   l_log_e_1   ! Limit flag on loge
      real*4        log_e_1     ! ([-]) ? Log {epsilon} abundance (X)
      character*1   f_log_e_1   ! [b] neutron capture element (1)
      character*1   l__X_H__2   ! Limit flag on [X/H]
      real*4        v_X_H__2    ! ([Sun]) ? X/H abundance
      character*1   l__X_Fe__2  ! Limit flag on [X/Fe]
      real*4        v_X_Fe__2   ! ([Sun]) ? X/Fe abundance (G1)
      integer*4     N_2         ! ? Number of spectra used
      real*4        Sig_2       ! ([-]) ? Abundance uncertainty
      character*1   ref         ! [cd] source of the data: c=this paper,
*                                  d=Aoki et al. (2007ApJ...660..747A)
*Note (1): b = Neutron-capture abundances are taken from Honda et al.
*       (2006ApJ...643.1180H).

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

C  Loading file 'stars.dat'	! Photometry and other stellar parameters (table 1
*                             and 5 of the paper)

C  Format for file interpretation

    1 format(
     +  A14,6X,A14,1X,A9,1X,A1,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,I4,
     +  1X,F3.1,1X,F5.2,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,8
        read(1,'(A88)')ar__
        read(ar__,1)
     +  Gal,SDSS,Name,f_Name,Vmag,rmag,g_r,rMag_1,Teff,logg,v_Fe_H_,Vt
        if(ar__(48:52) .EQ. '') Vmag = rNULL__
        if(ar__(54:58) .EQ. '') rmag = rNULL__
        if(ar__(60:63) .EQ. '') g_r = rNULL__
        if(ar__(65:69) .EQ. '') rMag_1 = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Gal,SDSS,Name,f_Name,Vmag,rmag,g_r,rMag_1,Teff,logg,v_Fe_H_,Vt
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Observing details

C  Format for file interpretation

    2 format(
     +  A9,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,F9.1,1X,F4.2,
     +  1X,I3,1X,I3,1X,I3,1X,F6.1,1X,F3.1,1X,F6.1,1X,F3.1,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,8
        read(1,'(A92)')ar__1
        read(ar__1,2)
     +  Name_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,JD,Exp,S_N5,S_N6,S_N65,RVH,
     +  e_RVH,RVD,e_RVD,Comm
        if(ar__1(74:79) .EQ. '') RVD = rNULL__
        if(ar__1(81:83) .EQ. '') e_RVD = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,2)
     +  Name_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,JD,Exp,S_N5,S_N6,S_N65,RVH,
     +  e_RVH,RVD,e_RVD,Comm
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ew.dat'	! Equivalent width measurements (table 4)

C  Format for file interpretation

    3 format(
     +  A9,1X,A4,1X,F7.2,1X,F4.2,1X,F7.3,1X,A1,F5.1,1X,A1,1X,A1,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ew.dat')
      write(6,*) '....Loading file: ew.dat'
      do i__=1,2191
        read(1,'(A52)')ar__2
        read(ar__2,3)
     +  Name_2,Ion,lambda,ExPot,log_gf,l_EW,EW,f_EW,l_log_e,log_e
        if(ar__2(24:27) .EQ. '') ExPot = rNULL__
        if(ar__2(29:35) .EQ. '') log_gf = rNULL__
        if(ar__2(38:42) .EQ. '') EW = rNULL__
        if(ar__2(47:52) .EQ. '') log_e = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2,Ion,lambda,ExPot,log_gf,l_EW,EW,f_EW,l_log_e,log_e
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! HIRES abundances of the UMa II stars

C  Format for file interpretation

    4 format(
     +  A9,1X,A5,1X,A1,F5.2,1X,A1,1X,A1,F5.2,1X,A1,F5.2,1X,I3,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,84
        read(1,'(A47)')ar__3
        read(ar__3,4)
     +  Name_3,Ion_1,l_log_e_1,log_e_1,f_log_e,l__X_H_,v_X_H_,
     +  l__X_Fe_,v_X_Fe_,N,Sig
        if(ar__3(34:38) .EQ. '') v_X_Fe_ = rNULL__
        if(ar__3(44:47) .EQ. '') Sig = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  Name_3,Ion_1,l_log_e_1,log_e_1,f_log_e,l__X_H_,v_X_H_,
     +  l__X_Fe_,v_X_Fe_,N,Sig
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! HIRES abundances of the Coma Ber stars

C  Format for file interpretation

    5 format(
     +  A9,1X,A5,1X,A1,F5.2,1X,A1,1X,A1,F5.2,1X,A1,F5.2,1X,I3,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,84
        read(1,'(A47)')ar__4
        read(ar__4,5)
     +  Name_4,Ion_2,l_log_e_1,log_e_1,f_log_e_1,l__X_H__1,v_X_H__1,
     +  l__X_Fe__1,v_X_Fe__1,N_1,Sig_1
        if(ar__4(34:38) .EQ. '') v_X_Fe__1 = rNULL__
        if(ar__4(44:47) .EQ. '') Sig_1 = rNULL__
c    ..............Just test output...........
        write(6,5)
     +  Name_4,Ion_2,l_log_e_1,log_e_1,f_log_e_1,l__X_H__1,v_X_H__1,
     +  l__X_Fe__1,v_X_Fe__1,N_1,Sig_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! HIRES abundances of standard star HD 122563

C  Format for file interpretation

    6 format(
     +  A9,1X,A5,1X,F4.2,1X,A1,F5.2,1X,A1,1X,A1,F5.2,1X,A1,F5.2,1X,I3,
     +  1X,F4.2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,54
        read(1,'(A54)')ar__5
        read(ar__5,6)
     +  Name_5,Ion_3,log_e_X0,l_log_e_1,log_e_1,f_log_e_1,l__X_H__2,
     +  v_X_H__2,l__X_Fe__2,v_X_Fe__2,N_2,Sig_2,ref
        if(ar__5(17:20) .EQ. '') log_e_X0 = rNULL__
        if(ar__5(23:27) .EQ. '') log_e_1 = rNULL__
        if(ar__5(32:36) .EQ. '') v_X_H__2 = rNULL__
        if(ar__5(39:43) .EQ. '') v_X_Fe__2 = rNULL__
        if(ar__5(45:47) .EQ. '') N_2 = iNULL__
        if(ar__5(49:52) .EQ. '') Sig_2 = rNULL__
c    ..............Just test output...........
        write(6,6)
     +  Name_5,Ion_3,log_e_X0,l_log_e_1,log_e_1,f_log_e_1,l__X_H__2,
     +  v_X_H__2,l__X_Fe__2,v_X_Fe__2,N_2,Sig_2,ref
c    .......End.of.Just test output...........
      end do
      close(1)

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