FORTRAN Generation
(/./ftp/cats/J/AZh/75/70)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AZh/75/70 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/AZh/75/70         Energy distribution of O9-B5 stars    (Knyazeva+, 1998)
*================================================================================
*On the normal spectral energy distribution of stars: Spectral types O9-B5.
*    Knyazeva L.N., Kharitonov A.V.
*   <Astron. Zh. 75, 70 (1998)>
*   =1998AZh....75...70K      (SIMBAD/NED BibCode)
*   =1998ARep...42...60K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Star selected

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

      character*8   SpInt      (nr__) ! Spectral interval
      integer*4     HR         (nr__) ! Name of star from BS Catalogue (1)
      real*4        B_V        (nr__) ! (mag) B-V color index
      real*4        U_B        (nr__) ! (mag) U-B color index
      real*4        E_B_V      (nr__) ! (mag) B-V color excess
      character*7   SpType     (nr__) ! MK Spectral type
      character*5   Ref        (nr__) ! Sources for spectrophotometric data (2)
*Note (1): Hoffleit, D. Bright Star Catalogue, 1982, 4th ed., Cat. <V/50>
*Note (2): Sources for spectrophotometric data as follows:
*    A = Almaty catalogue, Kharitonov et al. Spectrophotometric Catalog of
*        stars, Almaty: Nauka, 1988, Cat. <III/202>
*    M = Moscow catalogue, Glushneva I.N. Spectrophotometriya yarkikh zvezd,
*        Moscow: Nauka, 1982, Cat. <III/207>
*    P = Pulkovo catalogue, Alekseeva et al., 1996BaltA...5..603A, Cat. <III/201>

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

C  Declarations for 'table3.dat'	! Normal energy distributions for O9-B5 stars

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

      integer*4     Lambda     (nr__1) ! (0.1nm) Wavelength
      real*4        EO9V       (nr__1) ! Spectral energy for O9V stars (1)
      real*4        EO9_5V     (nr__1) ! Spectral energy for O9.5V stars (1)
      real*4        EB0III     (nr__1) ! Spectral energy for B0III stars (1)
      real*4        EB0_5V_IV  (nr__1) ! Spectral energy for B0.5V-IV stars (1)
      real*4        EB1V       (nr__1) ! Spectral energy for B1V  stars (1)
      real*4        EB1_5V     (nr__1) ! Spectral energy for B1.5V stars (1)
      real*4        EB2V       (nr__1) ! Spectral energy for B2V  stars (1)
      real*4        EB2IV_V    (nr__1) ! Spectral energy for B2IV-V stars (1)
      real*4        EB2IV      (nr__1) ! Spectral energy for B2IV stars (1)
      real*4        EB2III     (nr__1) ! Spectral energy for B2III stars (1)
      real*4        EB2_5V     (nr__1) ! Spectral energy for B2.5V stars (1)
      real*4        EB3IV      (nr__1) ! Spectral energy for B3IV stars (1)
      real*4        EB3V       (nr__1) ! Spectral energy for B3V  stars (1)
      real*4        EB5IV      (nr__1) ! Spectral energy for B5IV stars (1)
      real*4        EB5III     (nr__1) ! Spectral energy for B5III stars (1)
*Note (1): Spectral energy normalized to 1.0 at 5475{AA}

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

C  Loading file 'table2.dat'	! Star selected

C  Format for file interpretation

    1 format(A8,3X,I4,2X,F5.2,4X,F5.2,3X,F4.2,5X,A7,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,101
        read(1,'(A56)')ar__
        read(ar__,1)
     +  SpInt(i__),HR(i__),B_V(i__),U_B(i__),E_B_V(i__),SpType(i__),
     +  Ref(i__)
c    ..............Just test output...........
        write(6,1)
     +  SpInt(i__),HR(i__),B_V(i__),U_B(i__),E_B_V(i__),SpType(i__),
     +  Ref(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Normal energy distributions for O9-B5 stars

C  Format for file interpretation

    2 format(
     +  I4,4X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,
     +  F5.3,4X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,86
        read(1,'(A126)')ar__1
        read(ar__1,2)
     +  Lambda(i__),EO9V(i__),EO9_5V(i__),EB0III(i__),EB0_5V_IV(i__),
     +  EB1V(i__),EB1_5V(i__),EB2V(i__),EB2IV_V(i__),EB2IV(i__),
     +  EB2III(i__),EB2_5V(i__),EB3IV(i__),EB3V(i__),EB5IV(i__),
     +  EB5III(i__)
c    ..............Just test output...........
        write(6,2)
     +  Lambda(i__),EO9V(i__),EO9_5V(i__),EB0III(i__),EB0_5V_IV(i__),
     +  EB1V(i__),EB1_5V(i__),EB2V(i__),EB2IV_V(i__),EB2IV(i__),
     +  EB2III(i__),EB2_5V(i__),EB3IV(i__),EB3V(i__),EB5IV(i__),
     +  EB5III(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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