FORTRAN Generation
(/./ftp/cats/J/A_A/526/A116)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/526/A116 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 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/A+A/526/A116      W Virginis high-resolution spectra       (Kovtyukh+, 2011)
*================================================================================
*Neutral and ionized emission lines in the Type II Cepheid W Virginis
*    Kovtyukh V.V., Wallerstein G., Andrievsky S.M., Gillet D., Fokin A.B.,
*    Templeton M., Henden A.A.
*   <Astron. Astrophys. 526, A116 (2011)>
*   =2011A&A...526A.116K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! Emission lines at phase {phi}=0.666

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

      real*8        lambda      ! (0.1nm) Wavelength
      character*5   Ion         ! Element
      integer*4     Mult        ! ? Multiplet number
      integer*4     EW          ! (0.1pm) Equivalent width
      real*4        Elow        ! (eV) Excitation potential for the lower level
      integer*4     glow        ! Statistical weight for the lower level
      integer*4     gup         ! Statistical weight for the upper level
      real*4        Eup         ! (eV) Excitation potential for the upper level
      real*4        logA        ! ([-]) Logarithm of the emission transition probability

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

C  Declarations for 'sp/02_02_22.dat'	! 2002/02/22 spectrum

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

      real*8        lambda_1    ! (0.1nm) Wavelength
      real*4        RFlux       ! Relative flux

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

C  Declarations for 'sp/02_03_02.dat'	! 2002/03/02 spectrum

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

      real*8        lambda_2    ! (0.1nm) Wavelength
      real*4        RFlux_1     ! Relative flux

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

C  Declarations for 'sp/06_01_20.dat'	! 2006/01/20 spectrum

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

      real*8        lambda_3    ! (0.1nm) Wavelength
      real*4        RFlux_2     ! Relative flux

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

C  Declarations for 'sp/06_01_23.dat'	! 2006/01/23 spectrum

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

      real*8        lambda_4    ! (0.1nm) Wavelength
      real*4        RFlux_3     ! Relative flux

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

C  Declarations for 'sp/06_01_27.dat'	! 2006/01/27 spectrum

      integer*4 nr__5
      parameter (nr__5=52922)	! Number of records
      character*16 ar__5  	! Full-size record

      real*8        lambda_5    ! (0.1nm) Wavelength
      real*4        RFlux_4     ! Relative flux

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

C  Declarations for 'sp/06_06_12.dat'	! 2006/06/12 spectrum

      integer*4 nr__6
      parameter (nr__6=56522)	! Number of records
      character*16 ar__6  	! Full-size record

      real*8        lambda_6    ! (0.1nm) Wavelength
      real*4        RFlux_5     ! Relative flux

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

C  Loading file 'tablea1.dat'	! Emission lines at phase {phi}=0.666

C  Format for file interpretation

    1 format(
     +  F7.2,2X,A5,2X,I4,2X,I3,3X,F4.2,2X,I2,2X,I2,2X,F4.2,2X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,196
        read(1,'(A52)')ar__
        read(ar__,1)lambda,Ion,Mult,EW,Elow,glow,gup,Eup,logA
        if(ar__(17:20) .EQ. '') Mult = iNULL__
c    ..............Just test output...........
        write(6,1)lambda,Ion,Mult,EW,Elow,glow,gup,Eup,logA
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sp/02_02_22.dat'	! 2002/02/22 spectrum

C  Format for file interpretation

    2 format(2X,F8.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sp/02_02_22.dat')
      write(6,*) '....Loading file: sp/02_02_22.dat'
      do i__=1,54810
        read(1,'(A16)')ar__1
        read(ar__1,2)lambda_1,RFlux
c    ..............Just test output...........
        write(6,2)lambda_1,RFlux
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sp/02_03_02.dat'	! 2002/03/02 spectrum

C  Format for file interpretation

    3 format(2X,F8.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sp/02_03_02.dat')
      write(6,*) '....Loading file: sp/02_03_02.dat'
      do i__=1,52120
        read(1,'(A16)')ar__2
        read(ar__2,3)lambda_2,RFlux_1
c    ..............Just test output...........
        write(6,3)lambda_2,RFlux_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sp/06_01_20.dat'	! 2006/01/20 spectrum

C  Format for file interpretation

    4 format(2X,F8.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sp/06_01_20.dat')
      write(6,*) '....Loading file: sp/06_01_20.dat'
      do i__=1,54574
        read(1,'(A16)')ar__3
        read(ar__3,4)lambda_3,RFlux_2
c    ..............Just test output...........
        write(6,4)lambda_3,RFlux_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sp/06_01_23.dat'	! 2006/01/23 spectrum

C  Format for file interpretation

    5 format(2X,F8.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sp/06_01_23.dat')
      write(6,*) '....Loading file: sp/06_01_23.dat'
      do i__=1,56351
        read(1,'(A16)')ar__4
        read(ar__4,5)lambda_4,RFlux_3
c    ..............Just test output...........
        write(6,5)lambda_4,RFlux_3
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sp/06_01_27.dat'	! 2006/01/27 spectrum

C  Format for file interpretation

    6 format(2X,F8.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sp/06_01_27.dat')
      write(6,*) '....Loading file: sp/06_01_27.dat'
      do i__=1,52922
        read(1,'(A16)')ar__5
        read(ar__5,6)lambda_5,RFlux_4
c    ..............Just test output...........
        write(6,6)lambda_5,RFlux_4
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sp/06_06_12.dat'	! 2006/06/12 spectrum

C  Format for file interpretation

    7 format(2X,F8.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sp/06_06_12.dat')
      write(6,*) '....Loading file: sp/06_06_12.dat'
      do i__=1,56522
        read(1,'(A16)')ar__6
        read(ar__6,7)lambda_6,RFlux_5
c    ..............Just test output...........
        write(6,7)lambda_6,RFlux_5
c    .......End.of.Just test output...........
      end do
      close(1)

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