FORTRAN Generation
(/./ftp/cats/VI/26/)

Conversion of standardized ReadMe file for file /./ftp/cats/VI/26/ 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.5, on 2013-May-21
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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. VI/26              Identification list of lines in Stellar Spectra (Moore, 1959)
*================================================================================
*IDENTIFICATION LIST OF LINES IN STELLAR SPECTRA
*     MOORE Ch.E.: 1959
*    <Nat. Bur. of Standards, Tech. Note 36>
*    =1959NBSTN..36....1M   (SIMBAD/NED Reference)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog'	! The Identification list of lines

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

      real*8        Lambda      ! (0.1nm) [3841/13165] Laboratory wavelength
      character*2   Element     ! Chemical symbol of the element
      character*3   Spectrum    ! Roman numeral indicating specific spectrum
*                                    'I' if arc spectrum,
*                                   'II' if spark spectrum of the first
*                                        ionized state,
*                                  'III' if spark spectrum of the second
*                                        ionized state, etc.
      integer*4     Mult1       ! [1/1352]? Number of multiplet line belongs
      character*1   m_Mult1     ! [A] Multiplet suffix: 'A' to differentiate
*                                      between multiplets with the same number.
      integer*4     Mult2       ! [4/1339]? Multiplet number 2
*                                      If the line is a blend appearing in
*                                      more than one multiplet, the second
*                                      multiplet number is listed here.

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

C  Loading file 'catalog'	! The Identification list of lines

C  Format for file interpretation

    1 format(F9.3,A2,1X,A3,I4,A1,I4)

C  Effective file loading

      open(unit=1,file='catalog', status='old')
      write(6,*) '....Loading file: catalog'
      do i__=1,14634
        read(1,'(A24)')ar__
        read(ar__,1)Lambda,Element,Spectrum,Mult1,m_Mult1,Mult2
        if(ar__(16:19) .EQ. '') Mult1 = iNULL__
        if(ar__(21:24) .EQ. '') Mult2 = iNULL__
c    ..............Just test output...........
        write(6,1)Lambda,Element,Spectrum,Mult1,m_Mult1,Mult2
c    .......End.of.Just test output...........
      end do
      close(1)

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