FORTRAN Generation
(/./ftp/cats/J/ApJS/135/41)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/135/41 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.5, on 2013-May-20
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__
ter  (rNULL__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/ApJS/135/41    Spectroscopic and photometric redshifts (Fernandez-Soto+, 2001)
*================================================================================
*On the compared accuracy and reliability of spectroscopic and
*photometric redshift measurements.
*    Fernandez-Soto A., Lanzetta K.M., Chen H.-W., Pascarelle S.M., Yahata N.
*   <Astrophys. J. Suppl. Ser. 135, 41 (2001)>
*   =2001ApJS..135...41F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Objects with double cross identifications in the
                              catalogs (<J/ApJ/538/29> and <J/ApJ/513/34>)

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

      real*8        RA_        (nr__) ! (deg) Right Ascension J2000
      real*8        Dec        (nr__) ! (deg)     Declination J2000
      integer*4     RACh       (nr__) ! (h) Right Ascension (J2000) from Cohen et al.,
*                                  2000, Cat. <J/ApJ/538/29>, C00
      integer*4     RACm       (nr__) ! (min) Right Ascension (J2000) from C00
      real*4        RACs       (nr__) ! (s) Right Ascension (J2000) from C00
      character*1   DEC_       (nr__) ! Declination sign (J2000) from C00
      integer*4     DECd       (nr__) ! (deg) Declination (J2000) from C00
      integer*4     DECm       (nr__) ! (arcmin) Declination (J2000) from C00
      real*4        DECs       (nr__) ! (arcsec) Declination (J2000) from C00
      character*1   Note       (nr__) ! [bc] Note for objects in table3.dat (1)
      real*4        zspec      (nr__) ! ? Spectroscopic redshift from C00
      real*4        Rmag       (nr__) ! (mag) R band magnitude from C00
      integer*4     v_FLY99_   (nr__) ! ? Identification number of Fernandez-Soto
*                                    et al., 1999, Cat. <J/ApJ/513/34>, FLY99
      integer*4     RAh        (nr__) ! (h) Right Ascension (J2000) from FLY99
      integer*4     RAm        (nr__) ! (min) Right Ascension (J2000) from FLY99
      real*4        RAs        (nr__) ! (s) Right Ascension (J2000) from FLY99
      character*1   DE_        (nr__) ! Declination sign (J2000) from FLY99
      integer*4     DEd        (nr__) ! (deg) Declination (J2000) from FLY99
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000) from FLY99
      real*4        DEs        (nr__) ! (arcsec) Declination (J2000) from FLY99
      real*4        zphot      (nr__) ! Photometric redshift from FLY99
      real*4        ABmag      (nr__) ! (mag) AB (8140{AA}) band magnitude from FLY99
      real*4        dz_1_z     (nr__) ! ? Photometric redshift accuracy statistic (2)
      character*1   f_dz_1_z   (nr__) ! Flag on Delz/1+z (3)
      real*4        Offset     (nr__) ! (arcsec) ? Distance between the position in C00 and
*                                    FLY99 (only in table1.dat)
*Note (1): Individual notes in table3.dat:
*     b: Two objects in our catalog correspond to one position as listed by C00.
*     c:  Not an object in FLY99. See the text for an explanation
*Note (2): Equal to the difference between the two redshift determinations
*     (zphot-zspec) divided by (1+z).
*Note (3):
*    + = objects with possible double identifications listed in Table 1;
*    * = objects which are discussed in more detail in Sections 4 and 5.

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

C  Declarations for 'table2.dat'	! Comparison of both catalogs

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

      real*8        RA__1      (nr__1) ! (deg) Right Ascension J2000
      real*8        Dec_1      (nr__1) ! (deg)     Declination J2000
      integer*4     RACh_1     (nr__1) ! (h) Right Ascension (J2000) from Cohen et al.,
*                                  2000, Cat. <J/ApJ/538/29>, C00
      integer*4     RACm_1     (nr__1) ! (min) Right Ascension (J2000) from C00
      real*4        RACs_1     (nr__1) ! (s) Right Ascension (J2000) from C00
      character*1   DEC__1     (nr__1) ! Declination sign (J2000) from C00
      integer*4     DECd_1     (nr__1) ! (deg) Declination (J2000) from C00
      integer*4     DECm_1     (nr__1) ! (arcmin) Declination (J2000) from C00
      real*4        DECs_1     (nr__1) ! (arcsec) Declination (J2000) from C00
      character*1   Note_1     (nr__1) ! [bc] Note for objects in table3.dat (1)
      real*4        zspec_1    (nr__1) ! ? Spectroscopic redshift from C00
      real*4        Rmag_1     (nr__1) ! (mag) R band magnitude from C00
      integer*4     v_FLY99__1 (nr__1) ! ? Identification number of Fernandez-Soto
*                                    et al., 1999, Cat. <J/ApJ/513/34>, FLY99
      integer*4     RAh_1      (nr__1) ! (h) Right Ascension (J2000) from FLY99
      integer*4     RAm_1      (nr__1) ! (min) Right Ascension (J2000) from FLY99
      real*4        RAs_1      (nr__1) ! (s) Right Ascension (J2000) from FLY99
      character*1   DE__1      (nr__1) ! Declination sign (J2000) from FLY99
      integer*4     DEd_1      (nr__1) ! (deg) Declination (J2000) from FLY99
      integer*4     DEm_1      (nr__1) ! (arcmin) Declination (J2000) from FLY99
      real*4        DEs_1      (nr__1) ! (arcsec) Declination (J2000) from FLY99
      real*4        zphot_1    (nr__1) ! Photometric redshift from FLY99
      real*4        ABmag_1    (nr__1) ! (mag) AB (8140{AA}) band magnitude from FLY99
      real*4        dz_1_z_1   (nr__1) ! ? Photometric redshift accuracy statistic (2)
      character*1   f_dz_1_z_1 (nr__1) ! Flag on Delz/1+z (3)
      real*4        Offset_1   (nr__1) ! (arcsec) ? Distance between the position in C00 and
*                                    FLY99 (only in table1.dat)
*Note (1): Individual notes in table3.dat:
*     b: Two objects in our catalog correspond to one position as listed by C00.
*     c:  Not an object in FLY99. See the text for an explanation
*Note (2): Equal to the difference between the two redshift determinations
*     (zphot-zspec) divided by (1+z).
*Note (3):
*    + = objects with possible double identifications listed in Table 1;
*    * = objects which are discussed in more detail in Sections 4 and 5.

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

C  Declarations for 'table3.dat'	! *Objects in Cohen et al. (2000, Cat. <J/ApJ/538/29>)
                              with no spectroscopic redshift

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

      real*8        RA__2      (nr__2) ! (deg) Right Ascension J2000
      real*8        Dec_2      (nr__2) ! (deg)     Declination J2000
      integer*4     RACh_2     (nr__2) ! (h) Right Ascension (J2000) from Cohen et al.,
*                                  2000, Cat. <J/ApJ/538/29>, C00
      integer*4     RACm_2     (nr__2) ! (min) Right Ascension (J2000) from C00
      real*4        RACs_2     (nr__2) ! (s) Right Ascension (J2000) from C00
      character*1   DEC__2     (nr__2) ! Declination sign (J2000) from C00
      integer*4     DECd_2     (nr__2) ! (deg) Declination (J2000) from C00
      integer*4     DECm_2     (nr__2) ! (arcmin) Declination (J2000) from C00
      real*4        DECs_2     (nr__2) ! (arcsec) Declination (J2000) from C00
      character*1   Note_2     (nr__2) ! [bc] Note for objects in table3.dat (1)
      real*4        zspec_2    (nr__2) ! ? Spectroscopic redshift from C00
      real*4        Rmag_2     (nr__2) ! (mag) R band magnitude from C00
      integer*4     v_FLY99__2 (nr__2) ! ? Identification number of Fernandez-Soto
*                                    et al., 1999, Cat. <J/ApJ/513/34>, FLY99
      integer*4     RAh_2      (nr__2) ! (h) Right Ascension (J2000) from FLY99
      integer*4     RAm_2      (nr__2) ! (min) Right Ascension (J2000) from FLY99
      real*4        RAs_2      (nr__2) ! (s) Right Ascension (J2000) from FLY99
      character*1   DE__2      (nr__2) ! Declination sign (J2000) from FLY99
      integer*4     DEd_2      (nr__2) ! (deg) Declination (J2000) from FLY99
      integer*4     DEm_2      (nr__2) ! (arcmin) Declination (J2000) from FLY99
      real*4        DEs_2      (nr__2) ! (arcsec) Declination (J2000) from FLY99
      real*4        zphot_2    (nr__2) ! Photometric redshift from FLY99
      real*4        ABmag_2    (nr__2) ! (mag) AB (8140{AA}) band magnitude from FLY99
      real*4        dz_1_z_2   (nr__2) ! ? Photometric redshift accuracy statistic (2)
      character*1   f_dz_1_z_2 (nr__2) ! Flag on Delz/1+z (3)
      real*4        Offset_2   (nr__2) ! (arcsec) ? Distance between the position in C00 and
*                                    FLY99 (only in table1.dat)
*Note (1): Individual notes in table3.dat:
*     b: Two objects in our catalog correspond to one position as listed by C00.
*     c:  Not an object in FLY99. See the text for an explanation
*Note (2): Equal to the difference between the two redshift determinations
*     (zphot-zspec) divided by (1+z).
*Note (3):
*    + = objects with possible double identifications listed in Table 1;
*    * = objects which are discussed in more detail in Sections 4 and 5.

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

C  Declarations for 'table6.dat'	! Properties of the objects with discordant redshifts

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

      character*14  HDF        (nr__3) ! HDF designation
      character*1   n_HDF      (nr__3) ! [*] Note on HDF 36450_1251 (1)
      real*4        zspec_3    (nr__3) ! Spectroscopic redshift
      real*4        Rmag_3     (nr__3) ! (mag) R magnitude
      integer*4     q_zspec    (nr__3) ! Spectroscopic quality flag (2)
      real*4        zphot_3    (nr__3) ! Photometric redshift
      character*53  Note_3     (nr__3) ! Notes
*Note (1): *: This object is not greater than 4{sigma} discordant,
*    but strong evidence points to the spectroscopic redshift being in
*    error (see text for details).
*Note (2): the qualities are defined in the Note (1) of C00 (J/ApJ/538/29):
*    1: Multiple features, {sigma}(z)<=0.002/feature
*    2: Multiple features, {sigma}(z)<=0.004/feature
*    3: Multiple features, faint, id uncertain, {sigma}(z) small 75% of
*        time, and wildly off 25% of time
*    4: One emission line only, solid, assume 3727{AA}
*    5: One emission line only, reality uncertain, assume 3727{AA}
*    6: Multiple features, at least one broad emission line
*    7: Only one broad emission line, assumed to be 2800{AA}
*    8: Single break, assumed to be 4000{AA} break
*    9: Single strong absorption feature, assumed to be 2800{AA}
*        because of shape of continuum
*    0: no redshift

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

C  Loading file 'table1.dat'	! Objects with double cross identifications in the
*                              catalogs (<J/ApJ/538/29> and <J/ApJ/513/34>)

C  Format for file interpretation

    1 format(
     +  I2,1X,I2,1X,F5.2,A1,1X,I2,1X,I2,1X,F4.1,A1,F5.3,1X,F5.2,1X,I4,
     +  1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F5.2,1X,A1,F3.1)

C  Effective file loading

      open(unit=1,file='table1.dat', status='old')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,6
        read(1,'(A87)')ar__
        read(ar__,1)
     +  RACh(i__),RACm(i__),RACs(i__),DEC_(i__),DECd(i__),DECm(i__),
     +  DECs(i__),Note(i__),zspec(i__),Rmag(i__),v_FLY99_(i__),
     +  RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  DEs(i__),zphot(i__),ABmag(i__),dz_1_z(i__),f_dz_1_z(i__),
     +  Offset(i__)
        if(ar__(25:29) .EQ. '') zspec(i__) = rNULL__
        if(ar__(37:40) .EQ. '') v_FLY99_(i__) = iNULL__
        if(ar__(78:82) .EQ. '') dz_1_z(i__) = rNULL__
        if(ar__(85:87) .EQ. '') Offset(i__) = rNULL__
c       Derive coordinates RA_ and Dec from input data
c       (RA_ and Dec are set to rNULL_ when unknown)
        RA_(i__) = RAh(i__)
        if(RAh(i__) .GE. 0) RA_(i__)=RAh(i__)*15.
        if(RAm(i__) .GE. 0) RA_(i__)=RA_(i__)+RAm(i__)/4.
        if(RAs(i__) .GE. 0) RA_(i__)=RA_(i__)+RAs(i__)/240.
        Dec(i__) = DEd(i__)
        if(DEm(i__) .GE. 0) Dec(i__)=Dec(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) Dec(i__)=Dec(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.Dec(i__).GE.0) Dec(i__)=-Dec(i__)
c    ..............Just test output...........
        write(6,1)
     +  RACh(i__),RACm(i__),RACs(i__),DEC_(i__),DECd(i__),DECm(i__),
     +  DECs(i__),Note(i__),zspec(i__),Rmag(i__),v_FLY99_(i__),
     +  RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  DEs(i__),zphot(i__),ABmag(i__),dz_1_z(i__),f_dz_1_z(i__),
     +  Offset(i__)
        write(6,'(6H Pos: 2F8.4)') RA_(i__),Dec(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Comparison of both catalogs

C  Format for file interpretation

    2 format(
     +  I2,1X,I2,1X,F5.2,A1,1X,I2,1X,I2,1X,F4.1,A1,F5.3,1X,F5.2,1X,I4,
     +  1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F5.2,1X,A1,F3.1)

C  Effective file loading

      open(unit=1,file='table2.dat', status='old')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,146
        read(1,'(A87)')ar__1
        read(ar__1,2)
     +  RACh_1(i__),RACm_1(i__),RACs_1(i__),DEC__1(i__),DECd_1(i__),
     +  DECm_1(i__),DECs_1(i__),Note_1(i__),zspec_1(i__),Rmag_1(i__),
     +  v_FLY99__1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),zphot_1(i__),ABmag_1(i__),
     +  dz_1_z_1(i__),f_dz_1_z_1(i__),Offset_1(i__)
        if(ar__1(25:29) .EQ. '') zspec_1(i__) = rNULL__
        if(ar__1(37:40) .EQ. '') v_FLY99__1(i__) = iNULL__
        if(ar__1(78:82) .EQ. '') dz_1_z_1(i__) = rNULL__
        if(ar__1(85:87) .EQ. '') Offset_1(i__) = rNULL__
c       Derive coordinates RA__1 and Dec_1 from input data
c       (RA__1 and Dec_1 are set to rNULL_ when unknown)
        RA__1(i__) = RAh_1(i__)
        if(RAh_1(i__) .GE. 0) RA__1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GE. 0) RA__1(i__)=RA__1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GE. 0) RA__1(i__)=RA__1(i__)+RAs_1(i__)/240.
        Dec_1(i__) = DEd_1(i__)
        if(DEm_1(i__) .GE. 0) Dec_1(i__)=Dec_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) Dec_1(i__)=Dec_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.Dec_1(i__).GE.0) Dec_1(i__)=-Dec_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  RACh_1(i__),RACm_1(i__),RACs_1(i__),DEC__1(i__),DECd_1(i__),
     +  DECm_1(i__),DECs_1(i__),Note_1(i__),zspec_1(i__),Rmag_1(i__),
     +  v_FLY99__1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),zphot_1(i__),ABmag_1(i__),
     +  dz_1_z_1(i__),f_dz_1_z_1(i__),Offset_1(i__)
        write(6,'(6H Pos: 2F8.4)') RA__1(i__),Dec_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! *Objects in Cohen et al. (2000, Cat. <J/ApJ/538/29>)
*                              with no spectroscopic redshift

C  Format for file interpretation

    3 format(
     +  I2,1X,I2,1X,F5.2,A1,1X,I2,1X,I2,1X,F4.1,A1,F5.3,1X,F5.2,1X,I4,
     +  1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F5.2,1X,A1,F3.1)

C  Effective file loading

      open(unit=1,file='table3.dat', status='old')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,10
        read(1,'(A87)')ar__2
        read(ar__2,3)
     +  RACh_2(i__),RACm_2(i__),RACs_2(i__),DEC__2(i__),DECd_2(i__),
     +  DECm_2(i__),DECs_2(i__),Note_2(i__),zspec_2(i__),Rmag_2(i__),
     +  v_FLY99__2(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),
     +  DEd_2(i__),DEm_2(i__),DEs_2(i__),zphot_2(i__),ABmag_2(i__),
     +  dz_1_z_2(i__),f_dz_1_z_2(i__),Offset_2(i__)
        if(ar__2(25:29) .EQ. '') zspec_2(i__) = rNULL__
        if(ar__2(37:40) .EQ. '') v_FLY99__2(i__) = iNULL__
        if(ar__2(78:82) .EQ. '') dz_1_z_2(i__) = rNULL__
        if(ar__2(85:87) .EQ. '') Offset_2(i__) = rNULL__
c       Derive coordinates RA__2 and Dec_2 from input data
c       (RA__2 and Dec_2 are set to rNULL_ when unknown)
        RA__2(i__) = RAh_2(i__)
        if(RAh_2(i__) .GE. 0) RA__2(i__)=RAh_2(i__)*15.
        if(RAm_2(i__) .GE. 0) RA__2(i__)=RA__2(i__)+RAm_2(i__)/4.
        if(RAs_2(i__) .GE. 0) RA__2(i__)=RA__2(i__)+RAs_2(i__)/240.
        Dec_2(i__) = DEd_2(i__)
        if(DEm_2(i__) .GE. 0) Dec_2(i__)=Dec_2(i__)+DEm_2(i__)/60.
        if(DEs_2(i__) .GE. 0) Dec_2(i__)=Dec_2(i__)+DEs_2(i__)/3600.
        if(DE__2(i__).EQ.'-'.AND.Dec_2(i__).GE.0) Dec_2(i__)=-Dec_2(i__)
c    ..............Just test output...........
        write(6,3)
     +  RACh_2(i__),RACm_2(i__),RACs_2(i__),DEC__2(i__),DECd_2(i__),
     +  DECm_2(i__),DECs_2(i__),Note_2(i__),zspec_2(i__),Rmag_2(i__),
     +  v_FLY99__2(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),
     +  DEd_2(i__),DEm_2(i__),DEs_2(i__),zphot_2(i__),ABmag_2(i__),
     +  dz_1_z_2(i__),f_dz_1_z_2(i__),Offset_2(i__)
        write(6,'(6H Pos: 2F8.4)') RA__2(i__),Dec_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Properties of the objects with discordant redshifts

C  Format for file interpretation

    4 format(A14,A1,1X,F5.3,1X,F5.2,1X,I1,1X,F4.2,1X,A53)

C  Effective file loading

      open(unit=1,file='table6.dat', status='old')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,10
        read(1,'(A88)')ar__3
        read(ar__3,4)
     +  HDF(i__),n_HDF(i__),zspec_3(i__),Rmag_3(i__),q_zspec(i__),
     +  zphot_3(i__),Note_3(i__)
c    ..............Just test output...........
        write(6,4)
     +  HDF(i__),n_HDF(i__),zspec_3(i__),Rmag_3(i__),q_zspec(i__),
     +  zphot_3(i__),Note_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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