FORTRAN Generation
(/./ftp/cats/J/AJ/131/2426)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/131/2426 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/131/2426     Optical and radio study of Abell 2111          (Miller+, 2006)
*================================================================================
*Abell 2111: an optical and radio study of the richest Butcher-Oemler cluster.
*    Miller N.A., Oegerle W.R., Hill J.M.
*   <Astron. J., 131, 2426-2441 (2006)>
*   =2006AJ....131.2426M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Velocity data from optical spectroscopy

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RAh         ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm         ! (min) Minute of Right Ascension (J2000)
      real*4        RAs         ! (s) Second of Right Ascension (J2000)
      character*1   DE_         ! Sign of the Declination (J2000)
      integer*4     DEd         ! (deg) Degree of Declination (J2000)
      integer*4     DEm         ! (arcmin) Arcminute of Declination (J2000)
      real*4        DEs         ! (arcsec) Arcsecond of Declination (J2000)
      integer*4     cz          ! (km/s) Heliocentric radial velocity
      character*3   f_cz        ! Flag(s) on cz (1)
      integer*4     e_cz        ! (km/s) Error in cz
      character*39  Line        ! Observed line(s) (2)
*Note (1): Flag on cz, defined as follows:
*    a = A consistent velocity was found for this galaxy via cross correlation
*        of absorption features with velocity standards.
*    b = A velocity for this galaxy is also reported in NED.
*    c = A velocity for this galaxy is also in the SDSS DR4.
*Note (2): When a velocity has been determined on the basis of emission
*     lines, these lines are noted in this column. If identified lines are
*     offset by parentheses, they were not used to determine the reported
*     velocity but were found to be consistent with that velocity. Note that
*     [OIII] usually refers to the {lambda}5007 line, but sometimes also
*     includes the {lambda}4959 line. Similarly, [NII] is usually the
*     {lambda}6584 line but may also include the {lambda}6548 line and [SII]
*     may be either or both of {lambda}6717 and {lambda}6731.

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

C  Declarations for 'table2.dat'	! Radio sources with optical counterparts
                              (separation radio/optical < 1.5arcsec)

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1     ! (deg) Right Ascension J2000
      real*8        DEdeg_1     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RAh_1       ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm_1       ! (min) Minute of Right Ascension (J2000)
      real*4        RAs_1       ! (s) Second of Right Ascension (J2000)
      character*1   DE__1       ! Sign of the Declination (J2000)
      integer*4     DEd_1       ! (deg) Degree of Declination (J2000)
      integer*4     DEm_1       ! (arcmin) Arcminute of Declination (J2000)
      real*4        DEs_1       ! (arcsec) Arcsecond of Declination (J2000)
      real*4        z           ! Redshift (photometric for sources without
*                                  spectroscopy)
      character*1   r_z         ! Reference for z (1)
      real*4        rmag        ! (mag) SDSS r band magnitude
      character*1   f_rmag      ! [a] Classified as star in SDSS photometric data
      integer*4     S1_4        ! (uJy) The 1.4GHz flux density
      character*1   f_S1_4      ! [de] Note for extended sources (3)
      integer*4     e_S1_4      ! (uJy) Error in S1.4GHz
      integer*4     rms         ! (uJy) The rms sensitivity
      character*1   Res         ! [RU] Resolved (R) or unresolved (U) (4)
      real*4        Sep         ! (arcsec) Separation
*Note (1): Reference for z, defined as follows:
*      b = Redshift from SDSS DR4;
*      c = Redshift from Morrison et al. (2003, Cat. J/ApJS/146/267).
*Note (3): Flag on S1.4GHz, defined as follows:
*    d = Extended radio galaxy with morphology of a compact double, with flux
*        calculated by TVSTAT. The separation listed is for the midpoint of the
*        two radio lobes relative to the optical position. There is additional
*        diffuse to the southeast, possibly associated with the galaxy.
*        Including this emission the total flux is 19.8mJy with an error of
*        0.5mJy. The galaxy and its radio emission are depicted in Figure 9.
*    e = Extended radio source, TVSTAT.
*Note (4): Sources for which the fitted major axis had a minimum size of
*     zero were considered unresolved, and their peak flux measurements 
*     were adopted as their flux; otherwise, the fitted integral flux
*     was adopted.

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

C  Declarations for 'table3.dat'	! Spectroscopic classifications of cluster members
                              (Tables 3 and 4 of the paper)

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_2     ! (deg) Right Ascension J2000
      real*8        DEdeg_2     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RAh_2       ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm_2       ! (min) Minute of Right Ascension (J2000)
      real*4        RAs_2       ! (s) Second of Right Ascension (J2000)
      character*1   DE__2       ! Sign of the Declination (J2000)
      integer*4     DEd_2       ! (deg) Degree of Declination (J2000)
      integer*4     DEm_2       ! (arcmin) Arcminute of Declination (J2000)
      real*4        DEs_2       ! (arcsec) Arcsecond of Declination (J2000)
      character*4   Class       ! Source class (1)
      real*4        S_N         ! Signal-to-noise per resolution element
*                                        near H{delta}
      character*1   Color       ! [BR] Color type (2)
      real*4        Dist        ! (Mpc) Distance from cluster center
      character*1   Radio       ! [DNO] Radio detection (3)
      real*4        z_1         ! ? Redshift
      real*4        RMAG_1      ! (mag) ? Absolute R magnitude (4)
      real*4        D_g_r       ! (mag) ? Color relative to the cluster
*                                        color-magnitude relation (4)
      real*4        log_L1_4    ! ([W/Hz]) ? Log of the 1.4GHz luminosity (4)
      real*4        SFR         ! (solMass/yr) ? Star formation rate (4)
      character*1   f_SFR       ! [a] AGN likelihood (4) (5)
*Note (1): Source class, defined as follows:
*    e(a) = star-forming galaxies with strong H{delta} absorption
*    e(c) = galaxies with spectra representative of continuous star formation
*           histories evidenced by moderate [OII] emission and at most slight
*           H{delta} absorption
*    e(n) = galaxies with line widths and other lines such as [OIII] 
*           indicating an AGN
*    k    = passive galaxies, lacking emission lines
*    k+a  = strong H{delta} absorption caused by a large population of
*           young A stars
*Note (2): Color type, defined as follows:
*    R = consistent with red sequence;
*    B = blue in Butcher & Oemler (1984ApJ...285..426B) sense
*        (i.e., {Delta}(g-r)<=-0.2).
*Note (3): Radio detection, defined as follows:
*      N = non-detected;
*      D = detected;
*      O = outside surveyed area.
*Note (4): Additional data from Table 4.
*Note (5): Based on the color and/or optical spectrum, this galaxy is likely
*     to have an AGN, and hence the SFR is an upper limit due to inclusion
*     of radio emission associated with the active nucleus.

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

C  Loading file 'table1.dat'	! Velocity data from optical spectroscopy

C  Format for file interpretation

    1 format(
     +  I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,I6,1X,A3,1X,I2,1X,
     +  A39)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,205
        read(1,'(A77)')ar__
        read(ar__,1)RAh,RAm,RAs,DE_,DEd,DEm,DEs,cz,f_cz,e_cz,Line
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)RAh,RAm,RAs,DE_,DEd,DEm,DEs,cz,f_cz,e_cz,Line
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Radio sources with optical counterparts
*                              (separation radio/optical < 1.5arcsec)

C  Format for file interpretation

    2 format(
     +  I2,1X,I2,1X,F5.2,A1,I2,1X,I2,1X,F4.1,1X,F6.4,1X,A1,1X,F5.2,1X,
     +  A1,1X,I5,1X,A1,1X,I3,1X,I2,1X,A1,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,175
        read(1,'(A60)')ar__1
        read(ar__1,2)
     +  RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,z,r_z,rmag,f_rmag,
     +  S1_4,f_S1_4,e_S1_4,rms,Res,Sep
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,z,r_z,rmag,f_rmag,
     +  S1_4,f_S1_4,e_S1_4,rms,Res,Sep
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Spectroscopic classifications of cluster members
*                              (Tables 3 and 4 of the paper)

C  Format for file interpretation

    3 format(
     +  I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A4,1X,F4.1,1X,A1,
     +  1X,F4.2,1X,A1,1X,F6.4,1X,F6.2,1X,F5.2,1X,F5.2,1X,F4.1,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,95
        read(1,'(A74)')ar__2
        read(ar__2,3)
     +  RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Class,S_N,Color,
     +  Dist,Radio,z_1,RMAG_1,D_g_r,log_L1_4,SFR,f_SFR
        if(ar__2(44:49) .EQ. '') z_1 = rNULL__
        if(ar__2(51:56) .EQ. '') RMAG_1 = rNULL__
        if(ar__2(58:62) .EQ. '') D_g_r = rNULL__
        if(ar__2(64:68) .EQ. '') log_L1_4 = rNULL__
        if(ar__2(70:73) .EQ. '') SFR = rNULL__
        RAdeg_2 = rNULL__
        DEdeg_2 = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15.
        if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
        if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240.
        if(DEd_2 .GE. 0) DEdeg_2=DEd_2
        if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
        if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600.
        if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c    ..............Just test output...........
        write(6,3)
     +  RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Class,S_N,Color,
     +  Dist,Radio,z_1,RMAG_1,D_g_r,log_L1_4,SFR,f_SFR
        write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c    .......End.of.Just test output...........
      end do
      close(1)

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