Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/472/3648 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 2024-Apr-19 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 (nr__) ! State ID, non-negative integer index real*8 E (nr__) ! (cm-1) State energy term value in cm-1 integer*4 g (nr__) ! Total state degeneracy real*8 J (nr__) ! J-quantum number J$ is the total angular * momentum excluding nuclear spin real*4 tau (nr__) ! (s) ?=- Life time character*1 n_tau (nr__) ! [i] i for infinity real*8 Landeg (nr__) ! Lande g-factor character*1 par (nr__) ! [+/-] Total parity character*1 e_f (nr__) ! e/f-rotationless-parity parity character*4 State (nr__) ! The label of the electronic state integer*4 v (nr__) ! Vibrational quantum number integer*4 Lambda (nr__) ! Projection of the electronic angular momentum real*4 Sigma (nr__) ! Projection of the electronic spin real*4 Omega (nr__) ! 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_ (nr__1) ! Upper state ID integer*4 N__1 (nr__1) ! Lower state ID real*4 A (nr__1) ! (s-1) Einstein A-coefficient of the transition real*8 nu (nr__1) ! (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 (nr__2) ! State ID, non-negative integer index real*8 E_1 (nr__2) ! (cm-1) State energy term value in cm-1 integer*4 g_1 (nr__2) ! Total state degeneracy real*8 J_1 (nr__2) ! J-quantum number J$ is the total angular * momentum excluding nuclear spin real*4 tau_1 (nr__2) ! (s) ?=- Life time character*1 n_tau_1 (nr__2) ! [i] i for infinity real*8 Landeg_1 (nr__2) ! Lande g-factor character*1 par_1 (nr__2) ! [+/-] Total parity character*1 e_f_1 (nr__2) ! e/f-rotationless-parity parity character*4 State_1 (nr__2) ! The label of the electronic state integer*4 v_1 (nr__2) ! Vibrational quantum number integer*4 Lambda_1 (nr__2) ! Projection of the electronic angular momentum real*4 Sigma_1 (nr__2) ! Projection of the electronic spin real*4 Omega_1 (nr__2) ! 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 (nr__3) ! Upper state ID integer*4 N__3 (nr__3) ! Lower state ID real*4 A_1 (nr__3) ! (s-1) Einstein A-coefficient of the transition real*8 nu_1 (nr__3) ! (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(i__),E(i__),g(i__),J(i__),tau(i__),n_tau(i__),Landeg(i__), + par(i__),e_f(i__),State(i__),v(i__),Lambda(i__),Sigma(i__), + Omega(i__) if (idig(ar__(44:53)).EQ.0) tau(i__) = rNULL__ c ..............Just test output........... write(6,1) + N(i__),E(i__),g(i__),J(i__),tau(i__),n_tau(i__),Landeg(i__), + par(i__),e_f(i__),State(i__),v(i__),Lambda(i__),Sigma(i__), + Omega(i__) 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_(i__),N__1(i__),A(i__),nu(i__) c ..............Just test output........... write(6,2)N_(i__),N__1(i__),A(i__),nu(i__) 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(i__),E_1(i__),g_1(i__),J_1(i__),tau_1(i__),n_tau_1(i__), + Landeg_1(i__),par_1(i__),e_f_1(i__),State_1(i__),v_1(i__), + Lambda_1(i__),Sigma_1(i__),Omega_1(i__) if (idig(ar__2(44:53)).EQ.0) tau_1(i__) = rNULL__ c ..............Just test output........... write(6,3) + N_1(i__),E_1(i__),g_1(i__),J_1(i__),tau_1(i__),n_tau_1(i__), + Landeg_1(i__),par_1(i__),e_f_1(i__),State_1(i__),v_1(i__), + Lambda_1(i__),Sigma_1(i__),Omega_1(i__) 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(i__),N__3(i__),A_1(i__),nu_1(i__) c ..............Just test output........... write(6,4)N__2(i__),N__3(i__),A_1(i__),nu_1(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