FORTRAN Generation
(/./ftp/cats/J/PASP/106/486)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASP/106/486 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-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/PASP/106/486           Mel 66 CCD photometry           (Anthony-Twarog+, 1994)
*================================================================================
*vbyHbeta CCD photometry of Melotte 66: a disk analog of Omega Centauri?
*       Anthony-Twarog B.J., Twarog B.A., Sheeran M.
*      <Publ. Astron. Soc. Pac. 106, 486 (1994)>
*      =1994PASP..106..486A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Photometric indices for Mel 66 stars

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

      integer*4     Haw         ! ?=0 Hawarden identification number (1)
      integer*4     ID          ! [1/1458] Identification number
      real*4        Xpos        ! (pix) X position
      real*4        Ypos        ! (pix) Y position
      real*4        Vmag        ! (mag) [11/18] V magnitude (apparent)
      real*4        e_Vmag      ! (mag) rms uncertainty on V magnitude
      real*4        b_y         ! (mag) (b-y) color
      real*4        e_b_y       ! (mag) rms uncertainty on (b-y) color
      real*4        m1          ! (mag) m_1_ index
      real*4        e_m1        ! (mag) rms uncertainty on m1 index
      real*4        Hbeta       ! ? H{beta} index
      real*4        e_Hbeta     ! ? rms uncertainty on Hbeta index
      integer*4     Ny          ! [2/16] Number of y frames
      integer*4     Nb          ! [1/17] Number of b frames
      integer*4     Nv          ! [2/16] Number of v frames
      integer*4     Nw          ! [0/20] Number of H{beta} wide frames
      integer*4     Nn          ! [0/11] Number of H{beta} narrow frames
*Note (1): Hawarden T.G., 1976, MNRAS 243, 492 (J/MNRAS/243/492)

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

C  Loading file 'table3.dat'	! Photometric indices for Mel 66 stars

C  Format for file interpretation

    1 format(
     +  1X,I4,1X,I4,1X,F6.2,1X,F6.2,3X,F6.3,2X,F5.3,2X,F5.3,2X,F5.3,
     +  1X,F6.3,2X,F5.3,2X,F5.3,2X,F5.3,3X,I2,1X,I2,1X,I2,1X,I2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,520
        read(1,'(A99)')ar__
        read(ar__,1)
     +  Haw,ID,Xpos,Ypos,Vmag,e_Vmag,b_y,e_b_y,m1,e_m1,Hbeta,e_Hbeta,
     +  Ny,Nb,Nv,Nw,Nn
        if(ar__(71:75) .EQ. '') Hbeta = rNULL__
        if(ar__(78:82) .EQ. '') e_Hbeta = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Haw,ID,Xpos,Ypos,Vmag,e_Vmag,b_y,e_b_y,m1,e_m1,Hbeta,e_Hbeta,
     +  Ny,Nb,Nv,Nw,Nn
c    .......End.of.Just test output...........
      end do
      close(1)

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