FORTRAN Generation
(/./ftp/cats/J/AJ/117/1313)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/117/1313 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/AJ/117/1313       NGC 6441 VI photometry                   (Layden+, 1999)
*================================================================================
*The variable stars and blue horizontal branch of the
*metal-rich globular cluster NGC 6441.
*      Layden A.C., Ritter L.A., Welch D.L., Webb T.M.A.
*     <Astron. J. 117, 1313 (1999)>
*     =1999AJ....117.1313L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Photometry of 16011 stars with V<19.0 within
                                  440 arcsec of NGC 6441

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

      integer*4     LRW         ! Star number (Cl* NGC 6441 LRW NNNNN in Simbad)
      real*8        Xpos        ! (pix) X position (G1)
      real*8        Ypos        ! (pix) Y position (G1)
      real*4        Vmag        ! (mag) V magnitude
      real*4        e_Vmag      ! (mag) rms uncertainty on Vmag
      real*4        V_I         ! (mag) V-I colour index
      real*4        e_V_I       ! (mag) rms uncertainty on V-I

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

C  Declarations for 'var.dat'	! Variable stars (tables 2-5 of paper)

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

      character*3   Star        ! Star name (Cl* NGC 6441 Saw VNN in Simbad)
      character*1   Note        ! [*] Individual note detailed in notes.dat
      character*2   Type        ! Type of variable (1)
      real*4        Period      ! (d) ? Period (for RR Lyr and EBs)
      integer*4     Xpos_1      ! (pix) X position (G1)
      integer*4     Ypos_1      ! (pix) Y position (G1)
      real*4        Vmag_1      ! (mag) ? V at maximum (EBs), or mean V (2)
      real*4        Imag        ! (mag) ? I at maximum (EBs), or mean I (2)
      real*4        V_I_1       ! (mag) ? (V-I) at minimum for EBs, mean (v-I) color
      real*4        DV          ! (mag) ? Amplitude in V filter
      real*4        DI          ! (mag) ? Amplitude in I filter
      integer*4     o_Imag      ! ? Number of observations in Imag
      real*4        Imag2       ! (mag) ? Mean Imag in June 1996 (for LP only)
      real*4        v_V_I_2     ! (mag) ? Mean (V-I) in June 1996 (for LP only)
      integer*4     o_Imag2     ! ? Number of observations in Imag2
*Note (1): the type can be:
*      LP: long-period variable (table 2)
*      RR: RR Lyr star (table 3)
*      EB: Eclipsing binaries (table 4)
*      SV: Suspected variables (table 5)
*Note (2): The values represent the magnitude at maximum for eclipsing
*     binaries (EB in column Type), and mean magnitudes for other types;
*     for long period stars (LP), the mean corresponds to observations
*     made in May 1996.

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

C  Declarations for 'table6.dat'	! Photometry of variable stars toward NGC 6441

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

      character*3   Star_1      ! Star name (V01-V49, SV1-SV9) (1)
      character*1   n_Star      ! [*] *: Note detailed in notes.dat file
      real*8        HJD         ! (d) Heliocentric Julian date
      real*4        Vmag_2      ! (mag) V magnitude
      real*4        e_Vmag_1    ! (mag) rms uncertainty on Vmag
      real*4        Imag_1      ! (mag) I magnitude
      real*4        e_Imag      ! (mag) rms uncertainty on Imag
      integer*4     q_Vmag      ! [1,4] Quality parameter (2)
*Note (1): variable and suspected variables are:
*     VNN: Cl* NGC 6441 Saw VNN in Simbad
*     SVN: Cl* NGC 6441 LRW SN in Simbad
*Note (2): the quality is coded as follows:
*       1: exposure under good seeing conditions
*       2: short exposure in good seeing
*       3: long exposure in poor seeing
*       4: short exposure in poor seeing

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

C  Declarations for 'notes.dat'	! Individual notes of var.dat

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

      character*3   Star_2      ! Star designation, repeated when several lines
      character*76  Note_1      ! Text of the note

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

C  Loading file 'table1.dat'	! Photometry of 16011 stars with V<19.0 within
*                                  440 arcsec of NGC 6441

C  Format for file interpretation

    1 format(I5,1X,F7.2,1X,F7.2,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3)

C  Effective file loading

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

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

C  Loading file 'var.dat'	! Variable stars (tables 2-5 of paper)

C  Format for file interpretation

    2 format(
     +  A3,A1,1X,A2,1X,F6.4,1X,I4,1X,I4,1X,F5.2,1X,F5.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,I2,1X,F5.2,1X,F5.2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'var.dat')
      write(6,*) '....Loading file: var.dat'
      do i__=1,57
        read(1,'(A72)')ar__1
        read(ar__1,2)
     +  Star,Note,Type,Period,Xpos_1,Ypos_1,Vmag_1,Imag,V_I_1,DV,DI,
     +  o_Imag,Imag2,v_V_I_2,o_Imag2
        if(ar__1(9:14) .EQ. '') Period = rNULL__
        if(ar__1(26:30) .EQ. '') Vmag_1 = rNULL__
        if(ar__1(32:36) .EQ. '') Imag = rNULL__
        if(ar__1(38:42) .EQ. '') V_I_1 = rNULL__
        if(ar__1(44:48) .EQ. '') DV = rNULL__
        if(ar__1(50:54) .EQ. '') DI = rNULL__
        if(ar__1(56:57) .EQ. '') o_Imag = iNULL__
        if(ar__1(59:63) .EQ. '') Imag2 = rNULL__
        if(ar__1(65:69) .EQ. '') v_V_I_2 = rNULL__
        if(ar__1(71:72) .EQ. '') o_Imag2 = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  Star,Note,Type,Period,Xpos_1,Ypos_1,Vmag_1,Imag,V_I_1,DV,DI,
     +  o_Imag,Imag2,v_V_I_2,o_Imag2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Photometry of variable stars toward NGC 6441

C  Format for file interpretation

    3 format(A3,A1,1X,F12.4,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,1391
        read(1,'(A45)')ar__2
        read(ar__2,3)
     +  Star_1,n_Star,HJD,Vmag_2,e_Vmag_1,Imag_1,e_Imag,q_Vmag
c    ..............Just test output...........
        write(6,3)
     +  Star_1,n_Star,HJD,Vmag_2,e_Vmag_1,Imag_1,e_Imag,q_Vmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes of var.dat

C  Format for file interpretation

    4 format(A3,1X,A76)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,65
        read(1,'(A80)')ar__3
        read(ar__3,4)Star_2,Note_1
c    ..............Just test output...........
        write(6,4)Star_2,Note_1
c    .......End.of.Just test output...........
      end do
      close(1)

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