FORTRAN Generation
(/./ftp/cats/J/MNRAS/472/3648)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/472/3648 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-Oct-07
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/MNRAS/472/3648    ExoMol line lists. PO and PS spectra       (Prajapat+, 2017)
*================================================================================
*ExoMol molecular line lists.
*XXIII: spectra of PO and PS.
*    Prajapat L., Jagoda P., Lodi L., Gorman M.N., Yurchenko S.N., Tennyson J.
*    <Mon. Not. R. Astron. Soc. 472, 3648-3658 (2017)>
*    =2017MNRAS.472.3648P        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 's_po.dat'	! Labelled rovibronic states for PO molecule

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

      integer*8     N           ! State ID, non-negative integer index
      real*8        E           ! (cm-1) State energy term value in cm-1
      integer*4     g           ! Total state degeneracy
      real*8        J           ! J-quantum number J$ is the total angular
*                                   momentum excluding nuclear spin
      real*4        tau         ! (s) ?=- Life time
      character*1   n_tau       ! [i] i for infinity
      real*8        Landeg      ! Lande g-factor
      character*1   par         ! [+/-] Total parity
      character*1   e_f         ! e/f-rotationless-parity parity
      character*4   State       ! The label of the electronic state
      integer*4     v           ! Vibrational quantum number
      integer*4     Lambda      ! Projection of the electronic angular momentum
      real*4        Sigma       ! Projection of the electronic spin
      real*4        Omega       ! projection of the total angular momentum

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

C  Declarations for 't_po.dat'	! Transition file for PO molecule

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

      integer*4     N_          ! Upper state ID
      integer*4     N__1        ! Lower state ID
      real*4        A           ! (s-1) Einstein A-coefficient of the transition
      real*8        nu          ! (cm-1) Transition wavenumber

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

C  Declarations for 's_ps.dat'	! Labelled rovibronic states for PS molecule

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

      integer*8     N_1         ! State ID, non-negative integer index
      real*8        E_1         ! (cm-1) State energy term value in cm-1
      integer*4     g_1         ! Total state degeneracy
      real*8        J_1         ! J-quantum number J$ is the total angular
*                                   momentum excluding nuclear spin
      real*4        tau_1       ! (s) ?=- Life time
      character*1   n_tau_1     ! [i] i for infinity
      real*8        Landeg_1    ! Lande g-factor
      character*1   par_1       ! [+/-] Total parity
      character*1   e_f_1       ! e/f-rotationless-parity parity
      character*4   State_1     ! The label of the electronic state
      integer*4     v_1         ! Vibrational quantum number
      integer*4     Lambda_1    ! Projection of the electronic angular momentum
      real*4        Sigma_1     ! Projection of the electronic spin
      real*4        Omega_1     ! projection of the total angular momentum

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

C  Declarations for 't_ps.dat'	! Transition file for PS molecule

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

      integer*4     N__2        ! Upper state ID
      integer*4     N__3        ! Lower state ID
      real*4        A_1         ! (s-1) Einstein A-coefficient of the transition
      real*8        nu_1        ! (cm-1) Transition wavenumber

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

C  Loading file 's_po.dat'	! Labelled rovibronic states for PO molecule

C  Format for file interpretation

    1 format(
     +  I12,1X,F12.6,1X,I6,1X,F7.1,3X,E10.4,A1,F9.6,2X,A1,3X,A1,1X,A4,
     +  1X,I3,2X,I2,1X,F4.1,1X,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'s_po.dat')
      write(6,*) '....Loading file: s_po.dat'
      do i__=1,43148
        read(1,'(A93)')ar__
        read(ar__,1)
     +  N,E,g,J,tau,n_tau,Landeg,par,e_f,State,v,Lambda,Sigma,Omega
        if (idig(ar__(44:53)).EQ.0) tau =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  N,E,g,J,tau,n_tau,Landeg,par,e_f,State,v,Lambda,Sigma,Omega
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 't_po.dat'	! Transition file for PO molecule

C  Format for file interpretation

    2 format(6X,I6,6X,I6,2X,E10.5,8X,F12.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'t_po.dat')
      write(6,*) '....Loading file: t_po.dat'
      do i__=1,2096251
        read(1,'(A56)')ar__1
        read(ar__1,2)N_,N__1,A,nu
c    ..............Just test output...........
        write(6,2)N_,N__1,A,nu
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 's_ps.dat'	! Labelled rovibronic states for PS molecule

C  Format for file interpretation

    3 format(
     +  I12,1X,F12.6,1X,I6,1X,F7.1,3X,E10.4,A1,F9.6,2X,A1,3X,A1,1X,A4,
     +  1X,I3,2X,I2,1X,F4.1,1X,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'s_ps.dat')
      write(6,*) '....Loading file: s_ps.dat'
      do i__=1,225997
        read(1,'(A93)')ar__2
        read(ar__2,3)
     +  N_1,E_1,g_1,J_1,tau_1,n_tau_1,Landeg_1,par_1,e_f_1,State_1,
     +  v_1,Lambda_1,Sigma_1,Omega_1
        if (idig(ar__2(44:53)).EQ.0) tau_1 =  rNULL__
c    ..............Just test output...........
        write(6,3)
     +  N_1,E_1,g_1,J_1,tau_1,n_tau_1,Landeg_1,par_1,e_f_1,State_1,
     +  v_1,Lambda_1,Sigma_1,Omega_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 't_ps.dat'	! Transition file for PS molecule

C  Format for file interpretation

    4 format(6X,I6,6X,I6,2X,E10.5,8X,F12.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'t_ps.dat')
      write(6,*) '....Loading file: t_ps.dat'
      do i__=1,30394462
        read(1,'(A56)')ar__3
        read(ar__3,4)N__2,N__3,A_1,nu_1
c    ..............Just test output...........
        write(6,4)N__2,N__3,A_1,nu_1
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