FORTRAN Generation
(/./ftp/cats/J/AJ/107/1556)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/107/1556 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-20
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/AJ/107/1556                 Late B-type stars classification (Garrison+, 1994)
*================================================================================
*The late B-Type Stars: refined MK classification, confrontation with Stromgren
*photometry, and the effects of rotation
*    Garrison R.F., Gray R.O.
*   <Astron. J. 107, 1556 (1994)>
*   =1994AJ....107.1556G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Spectral types of late B type stars

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

      integer*4     HD          ! ? HD number
      character*1   m_HD        ! multiplicity index
      character*11  Name        ! Other identification (1)
      real*4        b_y         ! (mag) ? b-y color index on the Stromgren system
      real*4        m1          ! (mag) ? m1 index
      real*4        c1          ! (mag) ? c1 index
      real*4        beta        ! (mag) ? {beta} index
      character*1   n_HD        ! [ *] Indicates a remark in notes file
      character*46  Sp          ! MK Spectral type
*Note (1): Open cluster identification number, Bayer designation, Flamsteed
*          designation, or BSC number, in that order of preference

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

C  Loading file 'table2.dat'	! Spectral types of late B type stars

C  Format for file interpretation

    1 format(
     +  I6,A1,1X,A11,2X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,2X,A1,2X,A46)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,218
        read(1,'(A99)')ar__
        read(ar__,1)HD,m_HD,Name,b_y,m1,c1,beta,n_HD,Sp
        if(ar__(1:6) .EQ. '') HD = iNULL__
        if(ar__(22:27) .EQ. '') b_y = rNULL__
        if(ar__(29:34) .EQ. '') m1 = rNULL__
        if(ar__(36:41) .EQ. '') c1 = rNULL__
        if(ar__(43:48) .EQ. '') beta = rNULL__
c    ..............Just test output...........
        write(6,1)HD,m_HD,Name,b_y,m1,c1,beta,n_HD,Sp
c    .......End.of.Just test output...........
      end do
      close(1)

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