FORTRAN Generation
(/./ftp/cats/J/AJ/109/1086)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/109/1086 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-Mar-29
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/109/1086      VI Photometry in M54 and Sgr Dwarf Galaxy  (Sarajedini+ 1995)
*================================================================================
*A Photometric Study of the Globular Cluster M54 and the Sagittarius Dwarf
*Galaxy: Evidence for Three Distinct Populations
*     Sarajedini  A.,  Layden A.C.
*    <Astron. J. 109, 1086 (1995)>
*    =1995AJ....109.1086S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! CCD photometry for M54

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

      integer*4     Star        ! Star number
      real*8        Xpos        ! (pix) X pixel position
      real*8        Ypos        ! (pix) Y pixel position
      real*8        Vmag        ! (mag) V magnitude
      real*8        e_Vmag      ! (mag) V magnitude error
      real*8        V_I         ! (mag) V-I color
      real*8        e_V_I       ! (mag) V-I color error
      integer*4     Det         ! Number of detections

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

C  Declarations for 'table2.dat'	! CCD photometry for Sgr

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

      integer*4     Star_1      ! Star number
      real*8        Xpos_1      ! (pix) X pixel position
      real*8        Ypos_1      ! (pix) Y pixel position
      real*8        Vmag_1      ! (mag) V magnitude
      real*8        e_Vmag_1    ! (mag) V magnitude error
      real*8        V_I_1       ! (mag) V-I color
      real*8        e_V_I_1     ! (mag) V-I color error
      integer*4     Det_1       ! Number of detections

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

C  Loading file 'table1.dat'	! CCD photometry for M54

C  Format for file interpretation

    1 format(I6,F9.2,F9.2,F9.2,F9.3,F9.2,F9.3,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,3214
        read(1,'(A63)')ar__
        read(ar__,1)Star,Xpos,Ypos,Vmag,e_Vmag,V_I,e_V_I,Det
c    ..............Just test output...........
        write(6,1)Star,Xpos,Ypos,Vmag,e_Vmag,V_I,e_V_I,Det
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! CCD photometry for Sgr

C  Format for file interpretation

    2 format(I6,F9.2,F9.2,F9.2,F9.3,F9.2,F9.3,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1638
        read(1,'(A63)')ar__1
        read(ar__1,2)
     +  Star_1,Xpos_1,Ypos_1,Vmag_1,e_Vmag_1,V_I_1,e_V_I_1,Det_1
c    ..............Just test output...........
        write(6,2)
     +  Star_1,Xpos_1,Ypos_1,Vmag_1,e_Vmag_1,V_I_1,e_V_I_1,Det_1
c    .......End.of.Just test output...........
      end do
      close(1)

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