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 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-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         (nr__) ! Cepheid identification (F[12]-NNNNN)
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        Xpix       (nr__) ! (pix) X pixel location
      real*4        Ypix       (nr__) ! (pix) Y pixel location
      real*4        Vmag       (nr__) ! (mag) Mean HST V band magnitude
      integer*4     e_Vmag     (nr__) ! (mmag) Uncertainty in Vmag
      real*4        Imag       (nr__) ! (mag) Mean HST I band magnitude
      integer*4     e_Imag     (nr__) ! (mmag) Uncertainty Imag
      real*4        Var        (nr__) ! 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       (nr__1) ! Cepheid identification (F[12]-NNNNNN)
      real*8        Per        (nr__1) ! (d) Period
      real*8        e_Per      (nr__1) ! (d) Uncertainty in Per
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension in decimal degrees (J2000) (1)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination in decimal degrees (J2000) (1)
      real*4        Xpix_1     (nr__1) ! (pix) X pixel location
      real*4        Ypix_1     (nr__1) ! (pix) Y pixel location
      real*4        Vmag_1     (nr__1) ! (mag) Mean HST V band magnitude
      integer*4     e_Vmag_1   (nr__1) ! (mmag) Uncertainty in Vmag
      real*4        Imag_1     (nr__1) ! (mag) Mean HST I band magnitude
      integer*4     e_Imag_1   (nr__1) ! (mmag) Uncertainty Imag
      real*4        Vamp       (nr__1) ! (mag) Semi-amplitude of V band
      real*4        Iamp       (nr__1) ! (mag) Semi-amplitude of I band
      real*4        Var_1      (nr__1) ! Welch-Stetson variability index value I_V_ (G1)
      character*1   Rej        (nr__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 '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       (nr__2) ! Cepheid identification (F[12]-NNNNNN)
      real*8        Per_1      (nr__2) ! (d) Period
      real*8        e_Per_1    (nr__2) ! (d) Uncertainty in Per
      real*8        RAdeg_2    (nr__2) ! (deg) Right Ascension in decimal degrees (J2000) (1)
      real*8        DEdeg_2    (nr__2) ! (deg) Declination in decimal degrees (J2000) (1)
      real*4        Xpix_2     (nr__2) ! (pix) X pixel location
      real*4        Ypix_2     (nr__2) ! (pix) Y pixel location
      real*4        Vmag_2     (nr__2) ! (mag) Mean HST V band magnitude
      integer*4     e_Vmag_2   (nr__2) ! (mmag) Uncertainty in Vmag
      real*4        Imag_2     (nr__2) ! (mag) Mean HST I band magnitude
      integer*4     e_Imag_2   (nr__2) ! (mmag) Uncertainty Imag
      real*4        Vamp_1     (nr__2) ! (mag) Semi-amplitude of V band
      real*4        Iamp_1     (nr__2) ! (mag) Semi-amplitude of I band
      real*4        Var_2      (nr__2) ! Welch-Stetson variability index value I_V_ (G1)
      character*1   Rej_1      (nr__2) ! [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       (nr__3) ! Cepheid identification (F[12]-NNNNNN)
      real*4        Per_2      (nr__3) ! (d) Period
      real*4        F_Test     (nr__3) ! F-Test ratio of reduced {chi}^2^
      real*4        DM         (nr__3) ! (mag) Relative distance modulus
      integer*4     e_DM       (nr__3) ! (mmag) Uncertainty in DM
      real*4        E_V_I      (nr__3) ! (mag) E(V-I) color excess
      integer*4     e_E_V_I    (nr__3) ! (mmag) Uncertainty in E(V-I)
      real*4        E_B_V      (nr__3) ! (mag) E(B-V) color excess
      integer*4     e_E_B_V    (nr__3) ! (mmag) Uncertainty in E(B-V)
      real*4        rho        (nr__3) ! Deprojected galactoradius as fraction of
*                                  isophotal radius
      real*4        v_O_H_     (nr__3) ! ([-]) 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(i__),RAdeg(i__),DEdeg(i__),Xpix(i__),Ypix(i__),Vmag(i__),
     +  e_Vmag(i__),Imag(i__),e_Imag(i__),Var(i__)
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),RAdeg(i__),DEdeg(i__),Xpix(i__),Ypix(i__),Vmag(i__),
     +  e_Vmag(i__),Imag(i__),e_Imag(i__),Var(i__)
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(i__),Per(i__),e_Per(i__),RAdeg_1(i__),DEdeg_1(i__),
     +  Xpix_1(i__),Ypix_1(i__),Vmag_1(i__),e_Vmag_1(i__),Imag_1(i__),
     +  e_Imag_1(i__),Vamp(i__),Iamp(i__),Var_1(i__),Rej(i__)
c    ..............Just test output...........
        write(6,2)
     +  ID_1(i__),Per(i__),e_Per(i__),RAdeg_1(i__),DEdeg_1(i__),
     +  Xpix_1(i__),Ypix_1(i__),Vmag_1(i__),e_Vmag_1(i__),Imag_1(i__),
     +  e_Imag_1(i__),Vamp(i__),Iamp(i__),Var_1(i__),Rej(i__)
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(i__),Per_1(i__),e_Per_1(i__),RAdeg_2(i__),DEdeg_2(i__),
     +  Xpix_2(i__),Ypix_2(i__),Vmag_2(i__),e_Vmag_2(i__),Imag_2(i__),
     +  e_Imag_2(i__),Vamp_1(i__),Iamp_1(i__),Var_2(i__),Rej_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  ID_2(i__),Per_1(i__),e_Per_1(i__),RAdeg_2(i__),DEdeg_2(i__),
     +  Xpix_2(i__),Ypix_2(i__),Vmag_2(i__),e_Vmag_2(i__),Imag_2(i__),
     +  e_Imag_2(i__),Vamp_1(i__),Iamp_1(i__),Var_2(i__),Rej_1(i__)
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(i__),Per_2(i__),F_Test(i__),DM(i__),e_DM(i__),E_V_I(i__),
     +  e_E_V_I(i__),E_B_V(i__),e_E_B_V(i__),rho(i__),v_O_H_(i__)
c    ..............Just test output...........
        write(6,4)
     +  ID_3(i__),Per_2(i__),F_Test(i__),DM(i__),e_DM(i__),E_V_I(i__),
     +  e_E_V_I(i__),E_B_V(i__),e_E_B_V(i__),rho(i__),v_O_H_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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