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 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 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      (nr__) ! Index number
      character*2   Conf       (nr__) ! Configuration
      character*12  Level      (nr__) ! Level
      real*8        Expt       (nr__) ! (Ry) ?=- Theoretical threshold energy (1)
      real*8        GRASPa     (nr__) ! (Ry) ?=- GRASP Coulomb energy
      real*8        GRASPb     (nr__) ! (Ry) ?=- GRASP QED corrected energy
      real*8        FAC        (nr__) ! (Ry) ?=- Energy from the Flexible Atomic Code of
*                                      Gu (2003ApJ...582.1241G)
      real*8        SZF        (nr__) ! (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          (nr__1) ! Lower level
      integer*4     j          (nr__1) ! Upper level
      real*4        DEij       (nr__1) ! (0.1nm) Transition energy, {Delta}E_ij_
      real*4        AjiE1      (nr__1) ! (s-1) Electric dipole (E1) radiative rate
      real*4        fijE1      (nr__1) ! Electric dipole (E1) oscillator strength
      real*4        SE1        (nr__1) ! Electric dipole (E1) line strength
*                                   (in atomic unit)
      real*4        AjiE2      (nr__1) ! (s-1) Electric quadrupole (E2) radiative rate
      real*4        fijE2      (nr__1) ! Electric quadrupole (E2) oscillator strength
      real*4        SE2        (nr__1) ! 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        (nr__2) ! Lower level
      integer*4     j_1        (nr__2) ! Upper level
      real*4        DEij_1     (nr__2) ! (0.1nm) Transition energy, {Delta}E_ij_
      real*4        AjiM1      (nr__2) ! (s-1) Magnetic dipole (M1) radiative rate
      real*4        fijM1      (nr__2) ! Magnetic dipole (M1) oscillator strength
      real*4        SM1        (nr__2) ! Magnetic dipole (M1) line strength
*                                   (in atomic unit)
      real*4        AjiM2      (nr__2) ! (s-1) Magnetic quadrupole (M2) radiative rate
      real*4        fijM2      (nr__2) ! Magnetic quadrupole (M2) oscillator strength
      real*4        SM2        (nr__2) ! 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        (nr__3) ! Lower level
      integer*4     j_2        (nr__3) ! Upper level
      real*4        CS50       (nr__3) ! Collision strength for E=50Ryd
      real*4        CS100      (nr__3) ! Collision strength for E=100Ryd
      real*4        CS150      (nr__3) ! Collision strength for E=150Ryd
      real*4        CS200      (nr__3) ! 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        (nr__4) ! Lower level
      integer*4     j_3        (nr__4) ! Upper level
      real*4        ECS5_0     (nr__4) ! Effective collision strength for logTe=5.0K
      real*4        ECS5_2     (nr__4) ! Effective collision strength for logTe=5.2K
      real*4        ECS5_4     (nr__4) ! Effective collision strength for logTe=5.4K
      real*4        ECS5_6     (nr__4) ! Effective collision strength for logTe=5.6K
      real*4        ECS5_8     (nr__4) ! Effective collision strength for logTe=5.8K
      real*4        ECS6_0     (nr__4) ! Effective collision strength for logTe=6.0K
      real*4        ECS6_2     (nr__4) ! Effective collision strength for logTe=6.2K
      real*4        ECS6_4     (nr__4) ! Effective collision strength for logTe=6.4K
      real*4        ECS6_6     (nr__4) ! Effective collision strength for logTe=6.6K
      real*4        ECS6_8     (nr__4) ! Effective collision strength for logTe=6.8K
      real*4        ECS7_0     (nr__4) ! 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(i__),Conf(i__),Level(i__),Expt(i__),GRASPa(i__),
     +  GRASPb(i__),FAC(i__),SZF(i__)
        if (idig(ar__(21:27)).EQ.0) Expt(i__) =  rNULL__
        if (idig(ar__(29:35)).EQ.0) GRASPa(i__) =  rNULL__
        if (idig(ar__(37:43)).EQ.0) GRASPb(i__) =  rNULL__
        if (idig(ar__(45:51)).EQ.0) FAC(i__) =  rNULL__
        if (idig(ar__(53:59)).EQ.0) SZF(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Index(i__),Conf(i__),Level(i__),Expt(i__),GRASPa(i__),
     +  GRASPb(i__),FAC(i__),SZF(i__)
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(i__),j(i__),DEij(i__),AjiE1(i__),fijE1(i__),SE1(i__),
     +  AjiE2(i__),fijE2(i__),SE2(i__)
c    ..............Just test output...........
        write(6,2)
     +  i(i__),j(i__),DEij(i__),AjiE1(i__),fijE1(i__),SE1(i__),
     +  AjiE2(i__),fijE2(i__),SE2(i__)
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(i__),j_1(i__),DEij_1(i__),AjiM1(i__),fijM1(i__),SM1(i__),
     +  AjiM2(i__),fijM2(i__),SM2(i__)
c    ..............Just test output...........
        write(6,3)
     +  i_1(i__),j_1(i__),DEij_1(i__),AjiM1(i__),fijM1(i__),SM1(i__),
     +  AjiM2(i__),fijM2(i__),SM2(i__)
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(i__),j_2(i__),CS50(i__),CS100(i__),CS150(i__),CS200(i__)
c    ..............Just test output...........
        write(6,4)
     +  i_2(i__),j_2(i__),CS50(i__),CS100(i__),CS150(i__),CS200(i__)
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(i__),j_3(i__),ECS5_0(i__),ECS5_2(i__),ECS5_4(i__),
     +  ECS5_6(i__),ECS5_8(i__),ECS6_0(i__),ECS6_2(i__),ECS6_4(i__),
     +  ECS6_6(i__),ECS6_8(i__),ECS7_0(i__)
c    ..............Just test output...........
        write(6,5)
     +  i_3(i__),j_3(i__),ECS5_0(i__),ECS5_2(i__),ECS5_4(i__),
     +  ECS5_6(i__),ECS5_8(i__),ECS6_0(i__),ECS6_2(i__),ECS6_4(i__),
     +  ECS6_6(i__),ECS6_8(i__),ECS7_0(i__)
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