FORTRAN Generation
(/./ftp/cats/J/A_A/366/1003)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/366/1003 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-Mar-28
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/366/1003  8500-8750{AA} high resolution spectroscopy. III. (Munari+, 2001)
*================================================================================
*High resolution spectroscopy over 8500-8750{AA} for GAIA. III. 
*A library of synthetic spectra for 7750<T_eff_<50000K
*    Castelli F., Munari U.
*   <Astron. Astrophys. 366, 1003 (2001)>
*   =2001A&A...366.1003C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tables.dat'	! Main absorption lines in the interval 8490-8750{AA}
                              for different spectra of solar metallicity
                              (tables 2, 3 and 4 of the paper)

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

      real*8        lambda      ! (0.1nm) Wavelength
      integer*4     n_lambda    ! [1/5]? Number of components of unresolved blends
      character*6   Ion         ! Identification
      integer*4     Mult        ! ? Multiplet number
      real*4        EP          ! (eV) Excitation potential of the lower level in eV
      real*8        EP2         ! (cm-1) Excitation potential of the lower level in cm^-1^
      real*4        loggf       ! Oscillator strength
      character*5   r_loggf     ! Source of loggf (1)
      integer*4     Teff        ! (K) Effective temperature
      real*4        logg        ! ([cm/s2]) Surface gravity
      real*4        RCI         ! Residual central intensity for Teff and logg
*Note (1): Reference for loggf
*     BWL: Black et al. 1972ApJ...177..567B
*     FMW: Fuhr et al. 1988, Cat. <VI/72>
*      FT: Friedrich and Trefftz, 1969, MPI-PAE/Astro, 29
*   GUESS: guessed value
*     K88: Kurucz 1988, Trans. IAU, XXB, McNally M. (ed.). Kluwer, p. 168
*       K: unpublished and given in the Kurucz's line lists on CD-ROMs
*      KP: Kurucz and Peytremann 1975, Cat. <VI/10>
*       M: Murphy 1968ApJ...153..301M
*      MC: McEachran and Cohen, 1971, JQSRT 11, 1819
*     NBS: Wiese et al. 1966, NSRDS-NBS 4

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

C  Loading file 'tables.dat'	! Main absorption lines in the interval 8490-8750{AA}
*                              for different spectra of solar metallicity
*                              (tables 2, 3 and 4 of the paper)

C  Format for file interpretation

    1 format(
     +  F8.3,1X,I1,1X,A6,I4,1X,F5.2,1X,F10.3,1X,F6.3,1X,A5,1X,I5,1X,
     +  F3.1,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tables.dat')
      write(6,*) '....Loading file: tables.dat'
      do i__=1,645
        read(1,'(A80)')ar__
        read(ar__,1)
     +  lambda,n_lambda,Ion,Mult,EP,EP2,loggf,r_loggf,Teff,logg,RCI
        if(ar__(10:10) .EQ. '') n_lambda = iNULL__
        if(ar__(18:21) .EQ. '') Mult = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  lambda,n_lambda,Ion,Mult,EP,EP2,loggf,r_loggf,Teff,logg,RCI
c    .......End.of.Just test output...........
      end do
      close(1)

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