FORTRAN Generation
()

Conversion of standardized ReadMe file for catalog 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.5, on 2013-May-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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/ApJS/162/227     Transition probabilities for SmII             (Lawler+, 2006)
*================================================================================
*Improved laboratory transition probabilities for Sm II and application to the
*samarium abundances of the Sun and three r-process-rich, metal-poor stars.
*    Lawler J.E., Den Hartog E.A., Sneden C., Cowan J.J.
*   <Astrophys. J. Suppl. Ser., 162, 227-260 (2006)>
*   =2006ApJS..162..227L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Radiative lifetimes of Sm II from laser-induced
                             fluorescence (LIF) measurements

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

      real*8        Eu          ! (cm-1) Upper level energy
      real*4        Ju          ! Upper level J value
      real*8        Lambda1     ! (0.1nm) ? LIF Wavelength 1 in air in Angstroms (1)
      real*8        Lambda2     ! (0.1nm) ? LIF Wavelength 2 in air in Angstroms (1)
      real*4        tau         ! (ns) ? Radiative lifetime from this experiment (2)
      real*4        tau1        ! (ns) ? Radiative lifetime from other experiment
      real*4        e_tau1      ! (ns) ? Uncertainty in tau1
      character*1   n_tau1      ! Note and reference about tau1 (3)
*Note (1): Laser-induced fluorescence (LIF) wavelengths
*          from this experiment only.
*Note (2): See note "a" in column n_tau1 for uncertainty.
*Note (3): Note on tau1 defined as follows:
*    a = Uncertainty +/-5% on lifetimes from this experiment except for 
*        upper levels 31902.10/cm (+/-10%) and 32397.48/cm (+/-7.5%).
*    b = Biemont et al. (1989A&A...222..307B);
*    c = Scholl et al. (2002, Canadian J. Phys., 80, 1621);
*    d = Xu et al. (2003, J. Phys. B, 36, 411 ; 2003, J. Phys. B, 36, 4773);
*    e = Vogel et al. (1988, Phys. Scr., 38, 567).

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

C  Declarations for 'table2.dat'	! Atomic transition probabilities for Sm II
                             organized by increasing wavelength in air

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

      real*8        Lambda      ! (0.1nm) Wavelength in air in Angstroms
      real*8        Eu_1        ! (cm-1) Upper level energy
      real*4        Ju_1        ! Upper level J value
      real*8        El          ! (cm-1) Lower level energy
      real*4        Jl          ! Lower level J value
      real*4        TransP      ! (10+6/s) Transition probability
      real*4        e_TransP    ! (10+6/s) Total uncertainty in TransP
      real*4        log_gf      ! Log of degeneracy times oscillator strength

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

C  Loading file 'table1.dat'	! Radiative lifetimes of Sm II from laser-induced
*                             fluorescence (LIF) measurements

C  Format for file interpretation

    1 format(
     +  F8.2,1X,F3.1,1X,F7.2,1X,F7.2,1X,F5.1,1X,F6.2,1X,F4.2,1X,A1)

C  Effective file loading

      open(unit=1,file='table1.dat', status='old')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,279
        read(1,'(A48)')ar__
        read(ar__,1)Eu,Ju,Lambda1,Lambda2,tau,tau1,e_tau1,n_tau1
        if(ar__(14:20) .EQ. '') Lambda1 = rNULL__
        if(ar__(22:28) .EQ. '') Lambda2 = rNULL__
        if(ar__(30:34) .EQ. '') tau = rNULL__
        if(ar__(36:41) .EQ. '') tau1 = rNULL__
        if(ar__(43:46) .EQ. '') e_tau1 = rNULL__
c    ..............Just test output...........
        write(6,1)Eu,Ju,Lambda1,Lambda2,tau,tau1,e_tau1,n_tau1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Atomic transition probabilities for Sm II
*                             organized by increasing wavelength in air

C  Format for file interpretation

    2 format(
     +  F8.2,1X,F8.2,1X,F3.1,1X,F8.2,1X,F3.1,1X,F6.3,1X,F5.3,1X,F5.2)

C  Effective file loading

      open(unit=1,file='table2.dat', status='old')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,958
        read(1,'(A53)')ar__1
        read(ar__1,2)Lambda,Eu_1,Ju_1,El,Jl,TransP,e_TransP,log_gf
c    ..............Just test output...........
        write(6,2)Lambda,Eu_1,Ju_1,El,Jl,TransP,e_TransP,log_gf
c    .......End.of.Just test output...........
      end do
      close(1)

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