FORTRAN Generation
(/./ftp/cats/J/A_A/450/1249)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/450/1249 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-Aug-16
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/450/1249      Fe XVI radiative and excitation rates      (Aggarwal+, 2006)
*================================================================================
*Electron impact excitation of Fe XVI: radiative and excitation rates.
*    Aggarwal K.M., Keenan F.P.
*   <Astron. Astrophys. 450, 1249 (2006)>
*   =2006A&A...450.1249A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Energy levels (in Ryd) of Fe XVI

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

      integer*4     Index       ! Index number
      character*2   Conf        ! Configuration
      character*12  Level       ! Level
      real*8        Expt        ! (Ry) ?=- Theoretical threshold energy (1)
      real*8        GRASPa      ! (Ry) ?=- GRASP Coulomb energy
      real*8        GRASPb      ! (Ry) ?=- GRASP QED corrected energy
      real*8        FAC         ! (Ry) ?=- Energy from the Flexible Atomic Code of
*                                      Gu (2003ApJ...582.1241G)
      real*8        SZF         ! (Ry) ?=- Energy from Sampson et al.
*                                      (1990, ADNDT, 44, 209)
*Note (1): NIST: http://physics.nist.gov/PhysRefData

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

C  Declarations for 'table2.dat'	! Transition energies, radiative rates, oscillator
                          strengths, and line strengths for electric dipole (E1)
                          and electric quadrupole (E2) transitions in Fe XVI

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

      integer*4     i           ! Lower level
      integer*4     j           ! Upper level
      real*4        DEij        ! (0.1nm) Transition energy, {Delta}E_ij_
      real*4        AjiE1       ! (s-1) Electric dipole (E1) radiative rate
      real*4        fijE1       ! Electric dipole (E1) oscillator strength
      real*4        SE1         ! Electric dipole (E1) line strength
*                                   (in atomic unit)
      real*4        AjiE2       ! (s-1) Electric quadrupole (E2) radiative rate
      real*4        fijE2       ! Electric quadrupole (E2) oscillator strength
      real*4        SE2         ! Electric quadrupole (E2) line strength
*                                   (in atomic unit)

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

C  Declarations for 'table3.dat'	! Transition energies, radiative rates, oscillator
                          strengths, and line strengths for magnetic dipole (M1)
                          and magnetic quadrupole (M2) transitions in Fe XVI

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

      integer*4     i_1         ! Lower level
      integer*4     j_1         ! Upper level
      real*4        DEij_1      ! (0.1nm) Transition energy, {Delta}E_ij_
      real*4        AjiM1       ! (s-1) Magnetic dipole (M1) radiative rate
      real*4        fijM1       ! Magnetic dipole (M1) oscillator strength
      real*4        SM1         ! Magnetic dipole (M1) line strength
*                                   (in atomic unit)
      real*4        AjiM2       ! (s-1) Magnetic quadrupole (M2) radiative rate
      real*4        fijM2       ! Magnetic quadrupole (M2) oscillator strength
      real*4        SM2         ! Magnetic quadrupole (M2) line strength
*                                   (in atomic unit)

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

C  Declarations for 'table4.dat'	! Collision strengths for transitions in Fe XVI

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

      integer*4     i_2         ! Lower level
      integer*4     j_2         ! Upper level
      real*4        CS50        ! Collision strength for E=50Ryd
      real*4        CS100       ! Collision strength for E=100Ryd
      real*4        CS150       ! Collision strength for E=150Ryd
      real*4        CS200       ! Collision strength for E=200Ryd

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

C  Declarations for 'table5.dat'	! Effective collision strengths for transitions in Fe XVI

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

      integer*4     i_3         ! Lower level
      integer*4     j_3         ! Upper level
      real*4        ECS5_0      ! Effective collision strength for logTe=5.0K
      real*4        ECS5_2      ! Effective collision strength for logTe=5.2K
      real*4        ECS5_4      ! Effective collision strength for logTe=5.4K
      real*4        ECS5_6      ! Effective collision strength for logTe=5.6K
      real*4        ECS5_8      ! Effective collision strength for logTe=5.8K
      real*4        ECS6_0      ! Effective collision strength for logTe=6.0K
      real*4        ECS6_2      ! Effective collision strength for logTe=6.2K
      real*4        ECS6_4      ! Effective collision strength for logTe=6.4K
      real*4        ECS6_6      ! Effective collision strength for logTe=6.6K
      real*4        ECS6_8      ! Effective collision strength for logTe=6.8K
      real*4        ECS7_0      ! Effective collision strength for logTe=7.0K

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

C  Loading file 'table1.dat'	! Energy levels (in Ryd) of Fe XVI

C  Format for file interpretation

    1 format(I2,1X,A2,1X,A12,2X,F7.4,1X,F7.4,1X,F7.4,1X,F7.4,1X,F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,39
        read(1,'(A59)')ar__
        read(ar__,1)Index,Conf,Level,Expt,GRASPa,GRASPb,FAC,SZF
        if (idig(ar__(21:27)).EQ.0) Expt =  rNULL__
        if (idig(ar__(29:35)).EQ.0) GRASPa =  rNULL__
        if (idig(ar__(37:43)).EQ.0) GRASPb =  rNULL__
        if (idig(ar__(45:51)).EQ.0) FAC =  rNULL__
        if (idig(ar__(53:59)).EQ.0) SZF =  rNULL__
c    ..............Just test output...........
        write(6,1)Index,Conf,Level,Expt,GRASPa,GRASPb,FAC,SZF
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Transition energies, radiative rates, oscillator
*                          strengths, and line strengths for electric dipole (E1)
*                          and electric quadrupole (E2) transitions in Fe XVI

C  Format for file interpretation

    2 format(
     +  I2,1X,I2,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,
     +  E9.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,499
        read(1,'(A75)')ar__1
        read(ar__1,2)i,j,DEij,AjiE1,fijE1,SE1,AjiE2,fijE2,SE2
c    ..............Just test output...........
        write(6,2)i,j,DEij,AjiE1,fijE1,SE1,AjiE2,fijE2,SE2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Transition energies, radiative rates, oscillator
*                          strengths, and line strengths for magnetic dipole (M1)
*                          and magnetic quadrupole (M2) transitions in Fe XVI

C  Format for file interpretation

    3 format(
     +  I2,1X,I2,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,
     +  E9.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,434
        read(1,'(A75)')ar__2
        read(ar__2,3)i_1,j_1,DEij_1,AjiM1,fijM1,SM1,AjiM2,fijM2,SM2
c    ..............Just test output...........
        write(6,3)i_1,j_1,DEij_1,AjiM1,fijM1,SM1,AjiM2,fijM2,SM2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Collision strengths for transitions in Fe XVI

C  Format for file interpretation

    4 format(I2,1X,I2,1X,E8.4,1X,E8.4,1X,E8.4,1X,E8.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,180
        read(1,'(A41)')ar__3
        read(ar__3,4)i_2,j_2,CS50,CS100,CS150,CS200
c    ..............Just test output...........
        write(6,4)i_2,j_2,CS50,CS100,CS150,CS200
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Effective collision strengths for transitions in Fe XVI

C  Format for file interpretation

    5 format(
     +  I2,1X,I2,1X,E8.4,1X,E8.4,1X,E8.4,1X,E8.4,1X,E8.4,1X,E8.4,1X,
     +  E8.4,1X,E8.4,1X,E8.4,1X,E8.4,1X,E8.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,741
        read(1,'(A104)')ar__4
        read(ar__4,5)
     +  i_3,j_3,ECS5_0,ECS5_2,ECS5_4,ECS5_6,ECS5_8,ECS6_0,ECS6_2,
     +  ECS6_4,ECS6_6,ECS6_8,ECS7_0
c    ..............Just test output...........
        write(6,5)
     +  i_3,j_3,ECS5_0,ECS5_2,ECS5_4,ECS5_6,ECS5_8,ECS6_0,ECS6_2,
     +  ECS6_4,ECS6_6,ECS6_8,ECS7_0
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end