FORTRAN Generation
(/./ftp/cats/J/ApJ/733/124)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/733/124 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-Oct-14
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/733/124    Cepheids in M101 observed with HST          (Shappee+, 2011)
*================================================================================
*A new Cepheid distance to the giant spiral M101 based on image subtraction of
*Hubble Space Telescope/Advanced Camera for Surveys observations.
*    Shappee B.J., Stanek K.Z.
*   <Astrophys. J., 733, 124 (2011)>
*   =2011ApJ...733..124S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Secondary standards

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

C  J2000 position composed of: RAdeg DEdeg
      character*8   ID          ! Cepheid identification (F[12]-NNNNN)
      real*8        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        Xpix        ! (pix) X pixel location
      real*4        Ypix        ! (pix) Y pixel location
      real*4        Vmag        ! (mag) Mean HST V band magnitude
      integer*4     e_Vmag      ! (mmag) Uncertainty in Vmag
      real*4        Imag        ! (mag) Mean HST I band magnitude
      integer*4     e_Imag      ! (mmag) Uncertainty Imag
      real*4        Var         ! Welch-Stetson (1993AJ....105.1813W) variability
*                                index value I_V_ (G1)

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

C  Declarations for 'table3.dat'	! Cepheid variables

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

C  J2000 position composed of: RAdeg DEdeg
      character*9   ID_1        ! Cepheid identification (F[12]-NNNNNN)
      real*8        Per         ! (d) Period
      real*8        e_Per       ! (d) Uncertainty in Per
      real*8        RAdeg_1     ! (deg) Right Ascension in decimal degrees (J2000) (1)
      real*8        DEdeg_1     ! (deg) Declination in decimal degrees (J2000) (1)
      real*4        Xpix_1      ! (pix) X pixel location
      real*4        Ypix_1      ! (pix) Y pixel location
      real*4        Vmag_1      ! (mag) Mean HST V band magnitude
      integer*4     e_Vmag_1    ! (mmag) Uncertainty in Vmag
      real*4        Imag_1      ! (mag) Mean HST I band magnitude
      integer*4     e_Imag_1    ! (mmag) Uncertainty Imag
      real*4        Vamp        ! (mag) Semi-amplitude of V band
      real*4        Iamp        ! (mag) Semi-amplitude of I band
      real*4        Var_1       ! Welch-Stetson variability index value I_V_ (G1)
      character*1   Rej         ! [A-F] Reason for rejection (for table 4 only) (2)
*Note (1): Astrometry presented is referenced to the HST headers of
*          j9o401010_drz.fits for Field 1 and j9o413010_drz.fits for Field 2
*          (drizzled images (_drz.fits) from the STScI HST archive).
*Note (2): Rejection flag as follows:
*    A = amplitude ratio Iamp/Vamp>0.75 or Iamp/Vamp<0.25;
*    B = blue blend: E(V-I)<2{sigma} below foreground extinction
*    C = red blend: E(V-I)>0.68mag (equivalent to E(B-V)>0.5mag)
*    D = population II Cepheid: Distance modulus>12;
*    E = period cut: P<3days;
*    F = iterative sigma clipping (removes outliers)

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

C  Declarations for 'table4.dat'	! Rejected Cepheid Candidates

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

C  J2000 position composed of: RAdeg DEdeg
      character*9   ID_2        ! Cepheid identification (F[12]-NNNNNN)
      real*8        Per_1       ! (d) Period
      real*8        e_Per_1     ! (d) Uncertainty in Per
      real*8        RAdeg_2     ! (deg) Right Ascension in decimal degrees (J2000) (1)
      real*8        DEdeg_2     ! (deg) Declination in decimal degrees (J2000) (1)
      real*4        Xpix_2      ! (pix) X pixel location
      real*4        Ypix_2      ! (pix) Y pixel location
      real*4        Vmag_2      ! (mag) Mean HST V band magnitude
      integer*4     e_Vmag_2    ! (mmag) Uncertainty in Vmag
      real*4        Imag_2      ! (mag) Mean HST I band magnitude
      integer*4     e_Imag_2    ! (mmag) Uncertainty Imag
      real*4        Vamp_1      ! (mag) Semi-amplitude of V band
      real*4        Iamp_1      ! (mag) Semi-amplitude of I band
      real*4        Var_2       ! Welch-Stetson variability index value I_V_ (G1)
      character*1   Rej_1       ! [A-F] Reason for rejection (for table 4 only) (2)
*Note (1): Astrometry presented is referenced to the HST headers of
*          j9o401010_drz.fits for Field 1 and j9o413010_drz.fits for Field 2
*          (drizzled images (_drz.fits) from the STScI HST archive).
*Note (2): Rejection flag as follows:
*    A = amplitude ratio Iamp/Vamp>0.75 or Iamp/Vamp<0.25;
*    B = blue blend: E(V-I)<2{sigma} below foreground extinction
*    C = red blend: E(V-I)>0.68mag (equivalent to E(B-V)>0.5mag)
*    D = population II Cepheid: Distance modulus>12;
*    E = period cut: P<3days;
*    F = iterative sigma clipping (removes outliers)

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

C  Declarations for 'table6.dat'	! Cepheid Variables: Calculated Quantities

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

      character*9   ID_3        ! Cepheid identification (F[12]-NNNNNN)
      real*4        Per_2       ! (d) Period
      real*4        F_Test      ! F-Test ratio of reduced {chi}^2^
      real*4        DM          ! (mag) Relative distance modulus
      integer*4     e_DM        ! (mmag) Uncertainty in DM
      real*4        E_V_I       ! (mag) E(V-I) color excess
      integer*4     e_E_V_I     ! (mmag) Uncertainty in E(V-I)
      real*4        E_B_V       ! (mag) E(B-V) color excess
      integer*4     e_E_B_V     ! (mmag) Uncertainty in E(B-V)
      real*4        rho         ! Deprojected galactoradius as fraction of
*                                  isophotal radius
      real*4        v_O_H_      ! ([-]) Oxygen abundance at location (12+log[O/H])

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

C  Loading file 'table2.dat'	! Secondary standards

C  Format for file interpretation

    1 format(
     +  A8,1X,F12.8,1X,F11.8,1X,F6.1,1X,F6.1,1X,F6.3,1X,I3,1X,F6.3,1X,
     +  I3,1X,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,50
        read(1,'(A74)')ar__
        read(ar__,1)
     +  ID,RAdeg,DEdeg,Xpix,Ypix,Vmag,e_Vmag,Imag,e_Imag,Var
c    ..............Just test output...........
        write(6,1)
     +  ID,RAdeg,DEdeg,Xpix,Ypix,Vmag,e_Vmag,Imag,e_Imag,Var
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Cepheid variables

C  Format for file interpretation

    2 format(
     +  A9,1X,F10.6,1X,F9.6,1X,F12.8,1X,F11.8,1X,F6.1,1X,F6.1,1X,F6.3,
     +  1X,I3,1X,F6.3,1X,I3,1X,F5.3,1X,F5.3,1X,F5.1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,827
        read(1,'(A111)')ar__1
        read(ar__1,2)
     +  ID_1,Per,e_Per,RAdeg_1,DEdeg_1,Xpix_1,Ypix_1,Vmag_1,e_Vmag_1,
     +  Imag_1,e_Imag_1,Vamp,Iamp,Var_1,Rej
c    ..............Just test output...........
        write(6,2)
     +  ID_1,Per,e_Per,RAdeg_1,DEdeg_1,Xpix_1,Ypix_1,Vmag_1,e_Vmag_1,
     +  Imag_1,e_Imag_1,Vamp,Iamp,Var_1,Rej
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Rejected Cepheid Candidates

C  Format for file interpretation

    3 format(
     +  A9,1X,F10.6,1X,F9.6,1X,F12.8,1X,F11.8,1X,F6.1,1X,F6.1,1X,F6.3,
     +  1X,I3,1X,F6.3,1X,I3,1X,F5.3,1X,F5.3,1X,F5.1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,400
        read(1,'(A111)')ar__2
        read(ar__2,3)
     +  ID_2,Per_1,e_Per_1,RAdeg_2,DEdeg_2,Xpix_2,Ypix_2,Vmag_2,
     +  e_Vmag_2,Imag_2,e_Imag_2,Vamp_1,Iamp_1,Var_2,Rej_1
c    ..............Just test output...........
        write(6,3)
     +  ID_2,Per_1,e_Per_1,RAdeg_2,DEdeg_2,Xpix_2,Ypix_2,Vmag_2,
     +  e_Vmag_2,Imag_2,e_Imag_2,Vamp_1,Iamp_1,Var_2,Rej_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Cepheid Variables: Calculated Quantities

C  Format for file interpretation

    4 format(
     +  A9,1X,F6.3,1X,F6.3,1X,F6.3,1X,I3,1X,F6.3,1X,I3,1X,F6.3,1X,I3,
     +  1X,F6.4,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,827
        read(1,'(A68)')ar__3
        read(ar__3,4)
     +  ID_3,Per_2,F_Test,DM,e_DM,E_V_I,e_E_V_I,E_B_V,e_E_B_V,rho,
     +  v_O_H_
c    ..............Just test output...........
        write(6,4)
     +  ID_3,Per_2,F_Test,DM,e_DM,E_V_I,e_E_V_I,E_B_V,e_E_B_V,rho,
     +  v_O_H_
c    .......End.of.Just test output...........
      end do
      close(1)

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