FORTRAN Generation
(/./ftp/cats/J/A_AS/141/141)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/141/141 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-18
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+AS/141/141   8500-8750{AA} high resolution spectroscopy. II. (Munari+, 2000)
*================================================================================
*High resolution spectroscopy over 8500-8750{AA} for GAIA.
*II. A library of synthetic spectra for T_eff_<=7500K.
*       Munari U., Castelli F.
*      <Astron. Astrophys. Suppl. Ser. 141, 141 (2000)>
*      =2000A&AS..141..141M      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Lines that in the interval 8490-8750{AA} show a
                                  residual central intensity
                                  F({lambda})/F(cont.)>=90%.

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

      real*8        lambda      ! (0.1nm) Wavelength
      character*10  Ion         ! Ion
      character*11  Mult_       ! Multiplet
      real*4        EP          ! (eV) Energy potential in eV
      real*8        EP2         ! (cm-1) Energy potential in cm^-1^
      real*4        log_gf      ! Oscillator strength
      character*4   Ref         ! Reference (1)
      real*4        rcI1        ! ? Residual central intensity (T=4500K, logg=1.0)
      real*4        rcI2        ! ? Residual central intensity (T=4500K, logg=4.5)
      real*4        rcI3        ! ? Residual central intensity (T=7500K, logg=2.0)
      real*4        rcI4        ! ? Residual central intensity (T=7500K, logg=4.5)
*Note (1):   BWL: Black et al., 1972ApJ...177..567B
*           FHSW: Figger et al., 1975A&A....43..389F
*            FMW: Fuhr et al., 1988, Cat. <VI/72>
*            K88: Kurucz, 1988, Trans. IAU, XXB, McNally M. (ed.). Kluwer, p. 168
*              K: Kurucz, unpublished and in given in the line lists on CD-ROMs
*             KP: Kurucz and Peytremann, 1975, Cat. <VI/10>
*           LAMB: Lambert 1968MNRAS.138..143L
*            MFW: Martin et al., 1988, Cat. <VI/72>
*           MULT: estimated by Kurucz from multiplet table intensity
*            NBS: Wiese et al., 1966, NSRDS-NBS 4

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

C  Loading file 'table2.dat'	! Lines that in the interval 8490-8750{AA} show a
*                                  residual central intensity
*                                  F({lambda})/F(cont.)>=90%.

C  Format for file interpretation

    1 format(
     +  F8.3,1X,A10,1X,A11,1X,F5.2,1X,F9.3,1X,F6.3,1X,A4,1X,F5.3,1X,
     +  F5.3,1X,F5.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,288
        read(1,'(A84)')ar__
        read(ar__,1)
     +  lambda,Ion,Mult_,EP,EP2,log_gf,Ref,rcI1,rcI2,rcI3,rcI4
        if(ar__(61:65) .EQ. '') rcI1 = rNULL__
        if(ar__(67:71) .EQ. '') rcI2 = rNULL__
        if(ar__(73:77) .EQ. '') rcI3 = rNULL__
        if(ar__(79:84) .EQ. '') rcI4 = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  lambda,Ion,Mult_,EP,EP2,log_gf,Ref,rcI1,rcI2,rcI3,rcI4
c    .......End.of.Just test output...........
      end do
      close(1)

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