FORTRAN Generation
(/./ftp/cats/J/AJ/114/1488)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/114/1488 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-Aug-18
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/114/1488             Globulars in M31 (Holland+ 1997)
*================================================================================
*Deep HST V- and I-band observations of two globular clusters in the halo of M31
*     Holland S., Fahlman G.G., Richer H.B.
*    <Astron. J. 114, 1488 (1997)>
*    =1997AJ....114.1488H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Stellar photometry for G302 and the surrounding fields

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

      character*3   CCD         ! CCD the star was observed on
      integer*4     ID          ! Identification number (1)
      real*8        Xpos        ! (pix) X pixel coordinate (2)
      real*8        Ypos        ! (pix) Y pixel coordinate (2)
      real*4        Vmag        ! (mag) V-band magnitude
      real*4        e_Vmag      ! (mag) 1-sigma uncertainty in Vmag
      real*4        v2_Vmag     ! Value of the DAOPHOT Chi statistics for Vmag
      real*4        Imag        ! (mag) I-band magnitude
      real*4        e_Imag      ! (mag) 1-sigma uncertainty in Imag
      real*4        v2_Imag     ! Value of the DAOPHOT Chi statistics for Imag
*Note (1): Identification numbers are only unique for stars on a given CCD.
*Note (2): 1 pix = 0.1".

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

C  Declarations for 'table4.dat'	! Stellar photometry for G312 and the surrounding fields

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

      character*3   CCD_1       ! CCD the star was observed on
      integer*4     ID_1        ! Identification number (1)
      real*8        Xpos_1      ! (pix) X pixel coordinate (2)
      real*8        Ypos_1      ! (pix) Y pixel coordinate (2)
      real*4        Vmag_1      ! (mag) V-band magnitude
      real*4        e_Vmag_1    ! (mag) 1-sigma uncertainty in Vmag
      real*4        v2_Vmag_1   ! Value of the DAOPHOT Chi statistics for Vmag
      real*4        Imag_1      ! (mag) I-band magnitude
      real*4        e_Imag_1    ! (mag) 1-sigma uncertainty in Imag
      real*4        v2_Imag_1   ! Value of the DAOPHOT Chi statistics for Imag
*Note (1): Identification numbers are only unique for stars on a given CCD.
*Note (2): 1 pix = 0.1".

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

C  Declarations for 'table5.dat'	! Stellar photometry for G302

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

      character*3   CCD_2       ! CCD the star was observed on
      integer*4     ID_2        ! Identification number
      real*8        Xpos_2      ! (pix) X pixel coordinate (1)
      real*8        Ypos_2      ! (pix) Y pixel coordinate (1)
      real*4        Dist        ! (arcsec) Distance of star from cluster center
      real*4        Vmag_2      ! (mag) V-band magnitude
      real*4        e_Vmag_2    ! (mag) 1-sigma uncertainty in Vmag
      real*4        v2_Vmag_2   ! Value of the DAOPHOT Chi statistics for Vmag
      real*4        Imag_2      ! (mag) I-band magnitude
      real*4        e_Imag_2    ! (mag) 1-sigma uncertainty in Imag
      real*4        v2_Imag_2   ! Value of the DAOPHOT Chi statistics for Imag
*Note (1): 1 pix = 0.1".

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

C  Declarations for 'table6.dat'	! Stellar Photometry for G312

      integer*4 nr__3
      parameter (nr__3=325)	! Number of records
      character*70 ar__3  	! Full-size record

      character*3   CCD_3       ! CCD the star was observed on
      integer*4     ID_3        ! Identification number
      real*8        Xpos_3      ! (pix) X pixel coordinate (1)
      real*8        Ypos_3      ! (pix) Y pixel coordinate (1)
      real*4        Dist_1      ! (arcsec) Distance of star from cluster center
      real*4        Vmag_3      ! (mag) V-band magnitude
      real*4        e_Vmag_3    ! (mag) 1-sigma uncertainty in Vmag
      real*4        v2_Vmag_3   ! Value of the DAOPHOT Chi statistics for Vmag
      real*4        Imag_3      ! (mag) I-band magnitude
      real*4        e_Imag_3    ! (mag) 1-sigma uncertainty in Imag
      real*4        v2_Imag_3   ! Value of the DAOPHOT Chi statistics for Imag
*Note (1): 1 pix = 0.1".

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

C  Loading file 'table3.dat'	! Stellar photometry for G302 and the surrounding fields

C  Format for file interpretation

    1 format(
     +  A3,3X,I4,1X,F7.3,1X,F7.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,
     +  F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,13321
        read(1,'(A64)')ar__
        read(ar__,1)
     +  CCD,ID,Xpos,Ypos,Vmag,e_Vmag,v2_Vmag,Imag,e_Imag,v2_Imag
c    ..............Just test output...........
        write(6,1)
     +  CCD,ID,Xpos,Ypos,Vmag,e_Vmag,v2_Vmag,Imag,e_Imag,v2_Imag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Stellar photometry for G312 and the surrounding fields

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,3349
        read(1,'(A64)')ar__1
        read(ar__1,2)
     +  CCD_1,ID_1,Xpos_1,Ypos_1,Vmag_1,e_Vmag_1,v2_Vmag_1,Imag_1,
     +  e_Imag_1,v2_Imag_1
c    ..............Just test output...........
        write(6,2)
     +  CCD_1,ID_1,Xpos_1,Ypos_1,Vmag_1,e_Vmag_1,v2_Vmag_1,Imag_1,
     +  e_Imag_1,v2_Imag_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Stellar photometry for G302

C  Format for file interpretation

    3 format(
     +  A3,3X,I4,1X,F7.3,1X,F7.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,
     +  F6.3,1X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,626
        read(1,'(A70)')ar__2
        read(ar__2,3)
     +  CCD_2,ID_2,Xpos_2,Ypos_2,Dist,Vmag_2,e_Vmag_2,v2_Vmag_2,
     +  Imag_2,e_Imag_2,v2_Imag_2
c    ..............Just test output...........
        write(6,3)
     +  CCD_2,ID_2,Xpos_2,Ypos_2,Dist,Vmag_2,e_Vmag_2,v2_Vmag_2,
     +  Imag_2,e_Imag_2,v2_Imag_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Stellar Photometry for G312

C  Format for file interpretation

    4 format(
     +  A3,3X,I4,1X,F7.3,1X,F7.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,
     +  F6.3,1X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,325
        read(1,'(A70)')ar__3
        read(ar__3,4)
     +  CCD_3,ID_3,Xpos_3,Ypos_3,Dist_1,Vmag_3,e_Vmag_3,v2_Vmag_3,
     +  Imag_3,e_Imag_3,v2_Imag_3
c    ..............Just test output...........
        write(6,4)
     +  CCD_3,ID_3,Xpos_3,Ypos_3,Dist_1,Vmag_3,e_Vmag_3,v2_Vmag_3,
     +  Imag_3,e_Imag_3,v2_Imag_3
c    .......End.of.Just test output...........
      end do
      close(1)

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