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

Conversion of standardized ReadMe file for file /./ftp/cats/II/66 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 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/66           A Catalogue of observations in H alpha    (Ducati, 1981)
*================================================================================
*A Catalogue of observations in H alpha
*   Ducati J.R.
*  <Astron. Astroph. Suppl. 45, 119, (1981)>
*  =1981A&AS...45..119D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'obs.dat'	! Published measurements

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

      integer*4     HD          ! ? Star identification, usually HD
      character*2   m_HD        ! HD suffix (/3,/0, A, B, etc.)
      character*9   ID          ! Alternate designation
      character*13  Sp          ! Spectral type from original reference
      real*4        Vmag        ! (mag) ? Visual magnitude if provided
      real*8        Ha          ! (mag) ? H alpha measurement
      character*1   u_Ha        ! Uncertainty code for H alpha
      real*4        e_Ha        ! (mag) ? Mean error of H alpha measurement
      character*2   x_Ha        ! * Method of measurement of Ha
      real*4        o_Ha        ! ? Number of observations or weight
      integer*4     w_wt        ! ? Weight of weight
      integer*4     rem         ! *[1,6]? Coded remarks
      integer*4     ref         ! [1/37] Reference number (file refs.dat)
*Note on x_Ha:
*      M = photoelectric photometry, value given in magnitudes.
*      W = data from microdensitometer tracings of stellar spectra
*      R = spectrophotometric measurements, where R = H-alpha ratio
*Note on rem:
*      1 = Variable star
*      2 = Possible variable star
*      3 = Emission, mainly Be or Ae stars
*      4 = Double or multiple system
*      5 = Standard star
*      6 = Mean value over several measurements

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

C  Declarations for 'means.dat'	! Homogeneous data

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

      character*9   ID_1        ! HD number or other name
      real*4        Ha_1        ! (mag) H-alpha index on common system (see
*                                    Strauss & Ducati, 1981A&AS...44..337S)
      integer*4     ref_1       ! [1/37] References to original data

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

C  Declarations for 'refs.dat'	! References in numerical order

      integer*4 nr__2
      parameter (nr__2=39)	! Number of records
      character*80 ar__2  	! Full-size record

      integer*4     ref_2       ! [1,37]+= Reference number
      character*1   Cont        ! [ab ] Continuation
      character*76  source      ! Text of reference

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

C  Loading file 'obs.dat'	! Published measurements

C  Format for file interpretation

    1 format(
     +  I6,A2,A9,A13,F4.2,F8.3,A1,2X,F5.3,2X,A2,2X,F4.1,I2,I1,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'obs.dat')
      write(6,*) '....Loading file: obs.dat'
      do i__=1,4095
        read(1,'(A66)')ar__
        read(ar__,1)
     +  HD,m_HD,ID,Sp,Vmag,Ha,u_Ha,e_Ha,x_Ha,o_Ha,w_wt,rem,ref
        if(ar__(1:6) .EQ. '') HD = iNULL__
        if(ar__(31:34) .EQ. '') Vmag = rNULL__
        if(ar__(35:42) .EQ. '') Ha = rNULL__
        if(ar__(46:50) .EQ. '') e_Ha = rNULL__
        if(ar__(57:60) .EQ. '') o_Ha = rNULL__
        if(ar__(61:62) .EQ. '') w_wt = iNULL__
        if(ar__(63:63) .EQ. '') rem = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  HD,m_HD,ID,Sp,Vmag,Ha,u_Ha,e_Ha,x_Ha,o_Ha,w_wt,rem,ref
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'means.dat'	! Homogeneous data

C  Format for file interpretation

    2 format(A9,2X,F5.3,2X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'means.dat')
      write(6,*) '....Loading file: means.dat'
      do i__=1,2299
        read(1,'(A20)')ar__1
        read(ar__1,2)ID_1,Ha_1,ref_1
c    ..............Just test output...........
        write(6,2)ID_1,Ha_1,ref_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References in numerical order

C  Format for file interpretation

    3 format(I2,A1,1X,A76)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,39
        read(1,'(A80)')ar__2
        read(ar__2,3)ref_2,Cont,source
c    ..............Just test output...........
        write(6,3)ref_2,Cont,source
c    .......End.of.Just test output...........
      end do
      close(1)

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