FORTRAN Generation
(/./ftp/cats/J/ApJ/627/579)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/627/579 into FORTRAN code for loading all data files into arrays.

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-Sep-08
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/ApJ/627/579       Photometry of variables in NGC 3370           (Riess+, 2005)
*================================================================================
*Cepheid calibrations from the Hubble Space Telescope of the luminosity of two
*recent type Ia supernovae and a redetermination of  the Hubble constant.
*    Riess A.G., Li W., Stetson P.B., Filippenko A.V., Jha S., Kirshner R.P.,
*    Challis P.M., Garnavich P.M., Chornock R.
*   <Astrophys. J., 627, 579-607 (2005)>
*   =2005ApJ...627..579R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! HST observations of NGC 3370

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

      character*6   Filt       (nr__) ! Filter used (F555W, F814W)
      integer*4     Epoch      (nr__) ! Epoch
      character*9   Dataset    (nr__) ! HST archive root name
      character*10  ObsDate    (nr__) ! ("YYYY/MM/DD") UT date of observation
      character*13  MJD        (nr__) ! (d) MJD at start of observation
      integer*4     ExpTime    (nr__) ! (s) Exposure time

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

C  Declarations for 'table3.dat'	! Comparison stars in ACS field of NGC 3370

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

      integer*4     v_RLS2005_ (nr__1) ! Star ID (1)
      real*8        Xpos       (nr__1) ! (pix) X position (G1)
      real*8        Ypos       (nr__1) ! (pix) Y position (G1)
      real*4        v_Vmag_    (nr__1) ! (mag) Mean V magnitude (Johnson)
      real*4        e__Vmag_   (nr__1) ! (mag) Error in <Vmag>
      real*4        v_Icmag_   (nr__1) ! (mag) Mean I magnitude (Cousins)
      real*4        e__Icmag_  (nr__1) ! (mag) Error in <Icmag>
*Note (1): Stars 349.0 and 782.0 from Table 3 in the paper have been modified
*          respectively into 349 and 782.

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

C  Declarations for 'table4.dat'	! Cepheid Candidates

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

      integer*4     v_RLS2005__1(nr__2) ! Star ID
      real*8        Xpos_1     (nr__2) ! (pix) X position (G1)
      real*8        Ypos_1     (nr__2) ! (pix) Y position (G1)
      real*4        Per        (nr__2) ! (d) Period
      real*4        v_Vmag__1  (nr__2) ! (mag) Mean V magnitude (Johnson)
      real*4        e__Vmag__1 (nr__2) ! (mag) 1{sigma} error in <Vmag>
      real*4        v_Icmag__1 (nr__2) ! (mag) Mean I magnitude (Cousins)
      real*4        e__Icmag__1(nr__2) ! (mag) 1{sigma} error in <Icmag>
      character*3   Select     (nr__2) ! Selection as a Cepheid (1)
*Note (1): Selection criteria are coded on 3 characters according to the
*     following criteria: {chi}^2^, robust {chi}^2^, and visual inspection
*     by Peter B. Stetson (P.B.S.).

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

C  Declarations for 'table5.dat'	! Photometry of Variables

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

      integer*4     v_RLS2005__2(nr__3) ! Variable name
      real*8        MJD_1      (nr__3) ! (d) Modified Julian Date
      character*5   Filt_1     (nr__3) ! Filter used (F555W, F810W, F814W)
      real*4        mag        (nr__3) ! (mag) Magnitude in Filt
      real*4        e_mag      (nr__3) ! (mag) 1{sigma} error in mag

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

C  Declarations for 'table11.dat'	! Photometry of SN 1994ae

      integer*4 nr__4
      parameter (nr__4=29)	! Number of records
      character*72 ar__4  	! Full-size record

      real*8        MJD_2      (nr__4) ! (d) Modified Julian Date
      real*4        Umag       (nr__4) ! (mag) ? U band magnitude (Johnson)
      real*4        e_Umag     (nr__4) ! (mag) ? 1{sigma} in Umag
      real*4        Bmag       (nr__4) ! (mag) B band magnitude (Johnson)
      real*4        e_Bmag     (nr__4) ! (mag) 1{sigma} in Bmag
      real*4        Vmag       (nr__4) ! (mag) V band magnitude (Johnson)
      real*4        e_Vmag     (nr__4) ! (mag) 1{sigma} in Vmag
      real*4        Rcmag      (nr__4) ! (mag) ? R band magnitude (Cousins)
      real*4        e_Rcmag    (nr__4) ! (mag) ? 1{sigma} in Rcmag
      real*4        Icmag      (nr__4) ! (mag) ? I band magnitude (Cousins)
      real*4        e_Icmag    (nr__4) ! (mag) ? 1{sigma} in Icmag

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

C  Declarations for 'table12.dat'	! Photometry of SN 1998aq

      integer*4 nr__5
      parameter (nr__5=58)	! Number of records
      character*75 ar__5  	! Full-size record

      real*8        MJD_3      (nr__5) ! (d) Modified Julian Date
      real*4        Umag_1     (nr__5) ! (mag) ? U band magnitude  (Johnson)
      real*4        e_Umag_1   (nr__5) ! (mag) ? 1{sigma} in Umag
      real*4        Bmag_1     (nr__5) ! (mag) ? B band magnitude (Johnson)
      real*4        e_Bmag_1   (nr__5) ! (mag) ? 1{sigma} in Bmag
      real*4        Vmag_1     (nr__5) ! (mag) V band magnitude (Johnson)
      real*4        e_Vmag_1   (nr__5) ! (mag) 1{sigma} in Vmag
      real*4        Rcmag_1    (nr__5) ! (mag) ? R band magnitude  (Cousins)
      real*4        e_Rcmag_1  (nr__5) ! (mag) ? 1{sigma} in Rcmag
      real*4        Icmag_1    (nr__5) ! (mag) ? I band magnitude (Cousins)
      real*4        e_Icmag_1  (nr__5) ! (mag) ? 1{sigma} in Icmag

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

C  Loading file 'table2.dat'	! HST observations of NGC 3370

C  Format for file interpretation

    1 format(A6,I2,1X,A9,1X,A10,1X,A13,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,17
        read(1,'(A48)')ar__
        read(ar__,1)
     +  Filt(i__),Epoch(i__),Dataset(i__),ObsDate(i__),MJD(i__),
     +  ExpTime(i__)
c    ..............Just test output...........
        write(6,1)
     +  Filt(i__),Epoch(i__),Dataset(i__),ObsDate(i__),MJD(i__),
     +  ExpTime(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Comparison stars in ACS field of NGC 3370

C  Format for file interpretation

    2 format(I5,1X,F7.2,1X,F7.2,1X,F6.3,1X,F5.3,1X,F6.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,51
        read(1,'(A47)')ar__1
        read(ar__1,2)
     +  v_RLS2005_(i__),Xpos(i__),Ypos(i__),v_Vmag_(i__),
     +  e__Vmag_(i__),v_Icmag_(i__),e__Icmag_(i__)
c    ..............Just test output...........
        write(6,2)
     +  v_RLS2005_(i__),Xpos(i__),Ypos(i__),v_Vmag_(i__),
     +  e__Vmag_(i__),v_Icmag_(i__),e__Icmag_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Cepheid Candidates

C  Format for file interpretation

    3 format(
     +  I5,1X,F7.2,1X,F7.2,1X,F5.1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,72
        read(1,'(A53)')ar__2
        read(ar__2,3)
     +  v_RLS2005__1(i__),Xpos_1(i__),Ypos_1(i__),Per(i__),
     +  v_Vmag__1(i__),e__Vmag__1(i__),v_Icmag__1(i__),
     +  e__Icmag__1(i__),Select(i__)
c    ..............Just test output...........
        write(6,3)
     +  v_RLS2005__1(i__),Xpos_1(i__),Ypos_1(i__),Per(i__),
     +  v_Vmag__1(i__),e__Vmag__1(i__),v_Icmag__1(i__),
     +  e__Icmag__1(i__),Select(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Photometry of Variables

C  Format for file interpretation

    4 format(I5,1X,F9.3,1X,A5,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,1122
        read(1,'(A32)')ar__3
        read(ar__3,4)
     +  v_RLS2005__2(i__),MJD_1(i__),Filt_1(i__),mag(i__),e_mag(i__)
c    ..............Just test output...........
        write(6,4)
     +  v_RLS2005__2(i__),MJD_1(i__),Filt_1(i__),mag(i__),e_mag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table11.dat'	! Photometry of SN 1994ae

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table11.dat')
      write(6,*) '....Loading file: table11.dat'
      do i__=1,29
        read(1,'(A72)')ar__4
        read(ar__4,5)
     +  MJD_2(i__),Umag(i__),e_Umag(i__),Bmag(i__),e_Bmag(i__),
     +  Vmag(i__),e_Vmag(i__),Rcmag(i__),e_Rcmag(i__),Icmag(i__),
     +  e_Icmag(i__)
        if(ar__4(9:14) .EQ. '') Umag(i__) = rNULL__
        if(ar__4(16:20) .EQ. '') e_Umag(i__) = rNULL__
        if(ar__4(48:53) .EQ. '') Rcmag(i__) = rNULL__
        if(ar__4(55:59) .EQ. '') e_Rcmag(i__) = rNULL__
        if(ar__4(61:66) .EQ. '') Icmag(i__) = rNULL__
        if(ar__4(68:72) .EQ. '') e_Icmag(i__) = rNULL__
c    ..............Just test output...........
        write(6,5)
     +  MJD_2(i__),Umag(i__),e_Umag(i__),Bmag(i__),e_Bmag(i__),
     +  Vmag(i__),e_Vmag(i__),Rcmag(i__),e_Rcmag(i__),Icmag(i__),
     +  e_Icmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table12.dat'	! Photometry of SN 1998aq

C  Format for file interpretation

    6 format(
     +  F10.5,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table12.dat')
      write(6,*) '....Loading file: table12.dat'
      do i__=1,58
        read(1,'(A75)')ar__5
        read(ar__5,6)
     +  MJD_3(i__),Umag_1(i__),e_Umag_1(i__),Bmag_1(i__),
     +  e_Bmag_1(i__),Vmag_1(i__),e_Vmag_1(i__),Rcmag_1(i__),
     +  e_Rcmag_1(i__),Icmag_1(i__),e_Icmag_1(i__)
        if(ar__5(12:17) .EQ. '') Umag_1(i__) = rNULL__
        if(ar__5(19:23) .EQ. '') e_Umag_1(i__) = rNULL__
        if(ar__5(25:30) .EQ. '') Bmag_1(i__) = rNULL__
        if(ar__5(32:36) .EQ. '') e_Bmag_1(i__) = rNULL__
        if(ar__5(51:56) .EQ. '') Rcmag_1(i__) = rNULL__
        if(ar__5(58:62) .EQ. '') e_Rcmag_1(i__) = rNULL__
        if(ar__5(64:69) .EQ. '') Icmag_1(i__) = rNULL__
        if(ar__5(71:75) .EQ. '') e_Icmag_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,6)
     +  MJD_3(i__),Umag_1(i__),e_Umag_1(i__),Bmag_1(i__),
     +  e_Bmag_1(i__),Vmag_1(i__),e_Vmag_1(i__),Rcmag_1(i__),
     +  e_Rcmag_1(i__),Icmag_1(i__),e_Icmag_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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