FORTRAN Generation
(/./ftp/cats/J/A_A/623/A155)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/623/A155 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-Jun-08
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/623/A155   SII, ClII, ArIV energy levels & transition data (Rynkun+, 2019)
*================================================================================
*Theoretical investigation of energy levels and transition data for S II,
*Cl III, Ar IV.
*    Rynkun P., Gaigalas G., Joensson P.
*    <Astron. Astrophys. 623, A155 (2019)>
*    =2019A&A...623A.155R        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table5.dat'	! Transition data of E1, M1, E2 transitions
                                 for the SII ion

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

      character*4   Ju         (nr__) ! J of upper level
      character*1   pu         (nr__) ! [-+] Parity of upper level
      character*23  ustate     (nr__) ! Label of upper level
      character*4   Jl         (nr__) ! J of lower level
      character*1   pl         (nr__) ! [-+] Parity of lower level
      character*23  lstate     (nr__) ! Label of lower level
      character*2   EM         (nr__) ! Type of the transition
      integer*4     deltaE     (nr__) ! (cm-1) Transition energy
      real*8        lambda     (nr__) ! (0.1nm) Wavelength of transition
      real*4        A          (nr__) ! (s-1) Radiative transition probability in the
*                                   length gauge (for E1 and E2)
      real*4        gf         (nr__) ! Weighted oscillator strength in the
*                                   length gauge (for E1 and E2)
      real*4        dT         (nr__) ! ? Accuracy indicator, characterizing the
*                                   uncertainty of the computed transition rates
*                                   for E1 and E2 defined by Eq.(5) in the paper

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

C  Declarations for 'table6.dat'	! Transition data of E1, M1, E2 transitions
                                 for the ClIII ion

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

      character*4   Ju_1       (nr__1) ! J of upper level
      character*1   pu_1       (nr__1) ! [-+] Parity of upper level
      character*23  ustate_1   (nr__1) ! Label of upper level
      character*4   Jl_1       (nr__1) ! J of lower level
      character*1   pl_1       (nr__1) ! [-+] Parity of lower level
      character*23  lstate_1   (nr__1) ! Label of lower level
      character*2   EM_1       (nr__1) ! Type of the transition
      integer*4     deltaE_1   (nr__1) ! (cm-1) Transition energy
      real*8        lambda_1   (nr__1) ! (0.1nm) Wavelength of transition
      real*4        A_1        (nr__1) ! (s-1) Radiative transition probability in the
*                                   length gauge (for E1 and E2)
      real*4        gf_1       (nr__1) ! Weighted oscillator strength in the
*                                   length gauge (for E1 and E2)
      real*4        dT_1       (nr__1) ! ? Accuracy indicator, characterizing the
*                                   uncertainty of the computed transition rates
*                                   for E1 and E2 defined by Eq.(5) in the paper

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

C  Declarations for 'table7.dat'	! Transition data of E1, M1, E2 transitions
                                 for the ArIV ion

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

      character*4   Ju_2       (nr__2) ! J of upper level
      character*1   pu_2       (nr__2) ! [-+] Parity of upper level
      character*23  ustate_2   (nr__2) ! Label of upper level
      character*4   Jl_2       (nr__2) ! J of lower level
      character*1   pl_2       (nr__2) ! [-+] Parity of lower level
      character*23  lstate_2   (nr__2) ! Label of lower level
      character*2   EM_2       (nr__2) ! Type of the transition
      integer*4     deltaE_2   (nr__2) ! (cm-1) Transition energy
      real*8        lambda_2   (nr__2) ! (0.1nm) Wavelength of transition
      real*4        A_2        (nr__2) ! (s-1) Radiative transition probability in the
*                                   length gauge (for E1 and E2)
      real*4        gf_2       (nr__2) ! Weighted oscillator strength in the
*                                   length gauge (for E1 and E2)
      real*4        dT_2       (nr__2) ! ? Accuracy indicator, characterizing the
*                                   uncertainty of the computed transition rates
*                                   for E1 and E2 defined by Eq.(5) in the paper

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

C  Loading file 'table5.dat'	! Transition data of E1, M1, E2 transitions
*                                 for the SII ion

C  Format for file interpretation

    1 format(
     +  A4,1X,A1,1X,A23,1X,A4,1X,A1,1X,A23,3X,A2,2X,I6,1X,F9.2,4X,
     +  E9.4,4X,E9.4,4X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,1433
        read(1,'(A119)')ar__
        read(ar__,1)
     +  Ju(i__),pu(i__),ustate(i__),Jl(i__),pl(i__),lstate(i__),
     +  EM(i__),deltaE(i__),lambda(i__),A(i__),gf(i__),dT(i__)
        if(ar__(115:119) .EQ. '') dT(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Ju(i__),pu(i__),ustate(i__),Jl(i__),pl(i__),lstate(i__),
     +  EM(i__),deltaE(i__),lambda(i__),A(i__),gf(i__),dT(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Transition data of E1, M1, E2 transitions
*                                 for the ClIII ion

C  Format for file interpretation

    2 format(
     +  A4,1X,A1,1X,A23,1X,A4,1X,A1,1X,A23,3X,A2,2X,I6,1X,F9.2,4X,
     +  E9.4,4X,E9.4,4X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,876
        read(1,'(A119)')ar__1
        read(ar__1,2)
     +  Ju_1(i__),pu_1(i__),ustate_1(i__),Jl_1(i__),pl_1(i__),
     +  lstate_1(i__),EM_1(i__),deltaE_1(i__),lambda_1(i__),A_1(i__),
     +  gf_1(i__),dT_1(i__)
        if(ar__1(115:119) .EQ. '') dT_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Ju_1(i__),pu_1(i__),ustate_1(i__),Jl_1(i__),pl_1(i__),
     +  lstate_1(i__),EM_1(i__),deltaE_1(i__),lambda_1(i__),A_1(i__),
     +  gf_1(i__),dT_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Transition data of E1, M1, E2 transitions
*                                 for the ArIV ion

C  Format for file interpretation

    3 format(
     +  A4,1X,A1,1X,A23,1X,A4,1X,A1,1X,A23,3X,A2,2X,I6,1X,F9.2,4X,
     +  E9.4,4X,E9.4,4X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,1363
        read(1,'(A119)')ar__2
        read(ar__2,3)
     +  Ju_2(i__),pu_2(i__),ustate_2(i__),Jl_2(i__),pl_2(i__),
     +  lstate_2(i__),EM_2(i__),deltaE_2(i__),lambda_2(i__),A_2(i__),
     +  gf_2(i__),dT_2(i__)
        if(ar__2(115:119) .EQ. '') dT_2(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Ju_2(i__),pu_2(i__),ustate_2(i__),Jl_2(i__),pl_2(i__),
     +  lstate_2(i__),EM_2(i__),deltaE_2(i__),lambda_2(i__),A_2(i__),
     +  gf_2(i__),dT_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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