FORTRAN Generation
(/./ftp/cats/II/44)

Conversion of standardized ReadMe file for file /./ftp/cats/II/44 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 2026-Jul-13
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. II/44       K-Line photometry of stars in Population I clusters  (Hesser+ 1971)
*================================================================================
*K-line photometry of stars in Population I clusters,
*    Hesser J.E., Henry R.C.
*   <Astrophys. J. Suppl., 23, 453 (1971)>
*   =1971ApJS...23..453H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'data.dat'	! Results (tables 1-6)

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

      character*8   Cl         (nr__) ! Cluster name (1)
      integer*4     Star       (nr__) ! Star number in cluster (1)
      real*4        Vmag       (nr__) ! (mag) V-band magnitude
      real*4        B_V        (nr__) ! (mag) (B-V) color index
      real*4        m1         (nr__) ! (mag) m_1_ Stroemgren index
      real*4        c1         (nr__) ! (mag) ? c_1_ Stroemgren index
      real*4        k          (nr__) ! (mag) Ca K-line index (3934{AA})
      real*4        e_k        (nr__) ! (mag) ? RMS error on k
      real*4        dk         (nr__) ! (mag) Deviation of k-index from normal value
      character*1   Sg         (nr__) ! [EIL] Stroemgren's group (Early, Intermediate
*                                      or Late)
      real*4        b_y        (nr__) ! (mag) ? (b-y) color index, reddening corrected
      real*4        E_b_y      (nr__) ! (mag) ? Reddening in (b-y)
      real*4        beta       (nr__) ! (mag) ? H{beta} Stroemgren index
      real*4        v_m1_      (nr__) ! (mag) ? reddening-independent metallicity index [m_1_]
      real*4        d_m1_      (nr__) ! (mag) ? Deviation of [m_1_] from normal
      real*4        v_c1_      (nr__) ! (mag) ? reddening-independent luminosity index [c_1_]
      real*4        dV         (nr__) ! (mag) ? Deviation of V from main sequence
      real*4        u_b        (nr__) ! (mag) ? luminosity/temperature color index
      real*4        a          (nr__) ! (mag) ? Temperature parameter (2)
*Note (1): Star numbers refer to:
*  * NGC 6475: Koelbloed (1959BAN....14..265K)
*  * Orion: number from Brun (1935POLyo...1...12B)
*  * Pleiades: number from Hertzsprung (1947AnLei..19a...1H),
*    <Cl Melotte 22 NNN> in Simbad
*  * IC 2391: HD number
*  * IC 2602: HD(E) number, except star #57 is from Braes (1962BAN....16..297B)
*  * Hyades: HD number
*Note (2): temperature index:
*  * for stars of the early-group (E), the value is {delta}[m_1_],
*    calculated by the alternate method
*  * for stars of the intermediate group (early A stars), it is defined as:
*    a = (b-y) + 0.189[(u-b) - 1.36mag]

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

C  Loading file 'data.dat'	! Results (tables 1-6)

C  Format for file interpretation

    1 format(
     +  A8,6X,I6,1X,F5.2,1X,F5.2,1X,F6.3,1X,F6.3,1X,F6.3,1X,F5.3,1X,
     +  F6.3,2X,A1,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,F5.3,2X,
     +  F4.2,1X,F5.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'data.dat')
      write(6,*) '....Loading file: data.dat'
      do i__=1,168
        read(1,'(A127)')ar__
        read(ar__,1)
     +  Cl(i__),Star(i__),Vmag(i__),B_V(i__),m1(i__),c1(i__),k(i__),
     +  e_k(i__),dk(i__),Sg(i__),b_y(i__),E_b_y(i__),beta(i__),
     +  v_m1_(i__),d_m1_(i__),v_c1_(i__),dV(i__),u_b(i__),a(i__)
        if(ar__(41:46) .EQ. '') c1(i__) = rNULL__
        if(ar__(55:59) .EQ. '') e_k(i__) = rNULL__
        if(ar__(71:76) .EQ. '') b_y(i__) = rNULL__
        if(ar__(78:83) .EQ. '') E_b_y(i__) = rNULL__
        if(ar__(85:89) .EQ. '') beta(i__) = rNULL__
        if(ar__(91:95) .EQ. '') v_m1_(i__) = rNULL__
        if(ar__(97:102) .EQ. '') d_m1_(i__) = rNULL__
        if(ar__(104:108) .EQ. '') v_c1_(i__) = rNULL__
        if(ar__(111:114) .EQ. '') dV(i__) = rNULL__
        if(ar__(116:120) .EQ. '') u_b(i__) = rNULL__
        if(ar__(122:127) .EQ. '') a(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Cl(i__),Star(i__),Vmag(i__),B_V(i__),m1(i__),c1(i__),k(i__),
     +  e_k(i__),dk(i__),Sg(i__),b_y(i__),E_b_y(i__),beta(i__),
     +  v_m1_(i__),d_m1_(i__),v_c1_(i__),dV(i__),u_b(i__),a(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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