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

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/131/2373 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.5, on 2013-Jun-18
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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/AJ/131/2373    Extended Chandra Deep Field-South survey        (Virani+, 2006)
*================================================================================
*The extended Chandra Deep Field-South survey: X-ray point-source catalog.
*    Virani S.N., Treister E., Urry C.M., Gawiser E.
*   <Astron. J., 131, 2373-2382 (2006)>
*   =2006AJ....131.2373V
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Primary catalog of X-ray sources in the ECDFS
                              field (false positive detection<=1e-7)

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

      real*8        RA_         ! (deg) Right Ascension J2000
      real*8        Dec         ! (deg)     Declination J2000
      integer*4     v_VTU2006_  ! Unique identification number
*                                     ([VTU2006] NNN in Simbad)
      character*16  CXOYECDF    ! IAU-registered name
*                                     (CXOYECDF JHHMMSS.s+DDMMSS in Simbad)
      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 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)
      real*4        PSF         ! (arcsec) PSF size (1)
      real*4        CRf         ! (ct/s) ? Full (0.5-8keV) count rate (2)
      real*4        E_CRf       ! (ct/s) ? Full (0.5-8keV) count rate upper limit (3)
      real*4        e_CRf_1     ! (ct/s) ? Full (0.5-8keV) count rate lower limit (3)
      real*4        CRs         ! (ct/s) ? Soft (0.5-2keV) count rate (2)
      real*4        E_CRs       ! (ct/s) ? Soft (0.5-2keV) count rate upper limit (3)
      real*4        e_CRs_1     ! (ct/s) ? Soft (0.5-2keV) count rate lower limit (3)
      real*4        CRh         ! (ct/s) ? Hard (2-8keV) count rate (2)
      real*4        E_CRh       ! (ct/s) ? Hard (2-8keV) count rate upper limit (3)
      real*4        e_CRh_1     ! (ct/s) ? Hard (2-8keV) count rate lower limit (3)
      real*4        Ffull       ! (mW/m2) Full (0.5-8keV) flux (4)
      real*4        Fsoft       ! (mW/m2) Soft (0.5-2keV) flux (4)
      real*4        Fhard       ! (mW/m2) Hard (2-8keV) flux (4)
      character*5   Notes       ! Notes (5)
*Note (1): In units of arcseconds and as reported by wavdetect for each
*     detect-cell.
*Note (2): In units of cts/s and derived using the appropriate band exposure
*     map. The count rates are exposure and contamination corrected.
*Note (3): Calculated following the prescription in Gehrels
*     (1986ApJ...303..336G) for an 84% confidence level.
*Note (4): In units of ergs/s/cm^2^. Corrected for absorption by the Galaxy
*     and calculated assuming a photon slope of 1.4 The fluxes are exposure
*     and contamination corrected.
*Note (5): Indicates whether the source was reported in the CDF-S catalog of
*     Alexander et al. (2003, Cat. J/AJ/126/539) in which case the catalog
*     ID is reported, and/or if the source was selected from a band other
*     than the full band (ie, 'h' or 's') or only detected in the full band
*     ('f').

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

C  Declarations for 'table5.dat'	! Secondary catalog of X-ray sources in the ECDFS
                              field (false positive detection<=1e-6)

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

      real*8        RA__1       ! (deg) Right Ascension J2000
      real*8        Dec_1       ! (deg)     Declination J2000
      integer*4     v_VTU2006__1 ! Unique identification number
*                                     ([VTU2006] NNN in Simbad)
      character*16  CXOYECDF_1  ! IAU-registered name
*                                     (CXOYECDF JHHMMSS.s+DDMMSS in Simbad)
      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 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        PSF_1       ! (arcsec) PSF size (1)
      real*4        CRf_1       ! (ct/s) ? Full (0.5-8keV) count rate (2)
      real*4        E_CRf_2     ! (ct/s) ? Full (0.5-8keV) count rate upper limit (3)
      real*4        e_CRf_3     ! (ct/s) ? Full (0.5-8keV) count rate lower limit (3)
      real*4        CRs_1       ! (ct/s) ? Soft (0.5-2keV) count rate (2)
      real*4        E_CRs_2     ! (ct/s) ? Soft (0.5-2keV) count rate upper limit (3)
      real*4        e_CRs_3     ! (ct/s) ? Soft (0.5-2keV) count rate lower limit (3)
      real*4        CRh_1       ! (ct/s) ? Hard (2-8keV) count rate (2)
      real*4        E_CRh_2     ! (ct/s) ? Hard (2-8keV) count rate upper limit (3)
      real*4        e_CRh_3     ! (ct/s) ? Hard (2-8keV) count rate lower limit (3)
      real*4        Ffull_1     ! (mW/m2) Full (0.5-8keV) flux (4)
      real*4        Fsoft_1     ! (mW/m2) Soft (0.5-2keV) flux (4)
      real*4        Fhard_1     ! (mW/m2) Hard (2-8keV) flux (4)
      character*5   Notes_1     ! Notes (5)
*Note (1): In units of arcseconds and as reported by wavdetect for each
*     detect-cell.
*Note (2): In units of cts/s and derived using the appropriate band exposure
*     map. The count rates are exposure and contamination corrected.
*Note (3): Calculated following the prescription in Gehrels
*     (1986ApJ...303..336G) for an 84% confidence level.
*Note (4): In units of ergs/s/cm^2^. Corrected for absorption by the Galaxy
*     and calculated assuming a photon slope of 1.4 The fluxes are exposure
*     and contamination corrected.
*Note (5): Indicates whether the source was reported in the CDF-S catalog of
*     Alexander et al. (2003, Cat. J/AJ/126/539) in which case the catalog
*     ID is reported, and/or if the source was selected from a band other
*     than the full band (ie, 'h' or 's') or only detected in the full band
*     ('f').

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

C  Declarations for 'table6.dat'	! Catalog of collapsed Wavdetect X-ray sources in
                              the ECDFS Survey

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

      real*8        RA__2       ! (deg) Right Ascension J2000
      real*8        Dec_2       ! (deg)     Declination J2000
      integer*4     v_VTU2006__2 ! Unique identification number
*                                    ([VTU2006] Collapsed NN in Simbad)
      character*16  CXOYECDF_2  ! IAU-registered name (JHHMMSS.s+DDMMSS)
*                                    (CXOYECDF JHHMMSS.s+DDMMSS in Simbad)
      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 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*10  Notes_2     ! Notes (1)
*Note (1): Indicates which band(s) the source was detected.

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

C  Loading file 'table4.dat'	! Primary catalog of X-ray sources in the ECDFS
*                              field (false positive detection<=1e-7)

C  Format for file interpretation

    1 format(
     +  I3,1X,A16,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.2,
     +  1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,
     +  E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,A5)

C  Effective file loading

      open(unit=1,file='table4.dat', status='old')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,587
        read(1,'(A163)')ar__
        read(ar__,1)
     +  v_VTU2006_,CXOYECDF,RAh,RAm,RAs,DE_,DEd,DEm,DEs,PSF,CRf,E_CRf,
     +  e_CRf_1,CRs,E_CRs,e_CRs_1,CRh,E_CRh,e_CRh_1,Ffull,Fsoft,Fhard,
     +  Notes
        if(ar__(51:58) .EQ. '') CRf = rNULL__
        if(ar__(60:67) .EQ. '') E_CRf = rNULL__
        if(ar__(69:76) .EQ. '') e_CRf_1 = rNULL__
        if(ar__(78:85) .EQ. '') CRs = rNULL__
        if(ar__(87:94) .EQ. '') E_CRs = rNULL__
        if(ar__(96:103) .EQ. '') e_CRs_1 = rNULL__
        if(ar__(105:112) .EQ. '') CRh = rNULL__
        if(ar__(114:121) .EQ. '') E_CRh = rNULL__
        if(ar__(123:130) .EQ. '') e_CRh_1 = rNULL__
c       Derive coordinates RA_ and Dec from input data
c       (RA_ and Dec are set to rNULL_ when unknown)
        RA_ = RAh
        if(RAh .GE. 0) RA_=RAh*15.
        if(RAm .GE. 0) RA_=RA_+RAm/4.
        if(RAs .GE. 0) RA_=RA_+RAs/240.
        Dec = DEd
        if(DEm .GE. 0) Dec=Dec+DEm/60.
        if(DEs .GE. 0) Dec=Dec+DEs/3600.
        if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c    ..............Just test output...........
        write(6,1)
     +  v_VTU2006_,CXOYECDF,RAh,RAm,RAs,DE_,DEd,DEm,DEs,PSF,CRf,E_CRf,
     +  e_CRf_1,CRs,E_CRs,e_CRs_1,CRh,E_CRh,e_CRh_1,Ffull,Fsoft,Fhard,
     +  Notes
        write(6,'(6H Pos: 2F8.4)') RA_,Dec
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Secondary catalog of X-ray sources in the ECDFS
*                              field (false positive detection<=1e-6)

C  Format for file interpretation

    2 format(
     +  I3,1X,A16,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.2,
     +  1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,
     +  E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,A5)

C  Effective file loading

      open(unit=1,file='table5.dat', status='old')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,64
        read(1,'(A163)')ar__1
        read(ar__1,2)
     +  v_VTU2006__1,CXOYECDF_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
     +  DEs_1,PSF_1,CRf_1,E_CRf_2,e_CRf_3,CRs_1,E_CRs_2,e_CRs_3,CRh_1,
     +  E_CRh_2,e_CRh_3,Ffull_1,Fsoft_1,Fhard_1,Notes_1
        if(ar__1(51:58) .EQ. '') CRf_1 = rNULL__
        if(ar__1(60:67) .EQ. '') E_CRf_2 = rNULL__
        if(ar__1(69:76) .EQ. '') e_CRf_3 = rNULL__
        if(ar__1(78:85) .EQ. '') CRs_1 = rNULL__
        if(ar__1(87:94) .EQ. '') E_CRs_2 = rNULL__
        if(ar__1(96:103) .EQ. '') e_CRs_3 = rNULL__
        if(ar__1(105:112) .EQ. '') CRh_1 = rNULL__
        if(ar__1(114:121) .EQ. '') E_CRh_2 = rNULL__
        if(ar__1(123:130) .EQ. '') e_CRh_3 = 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 = RAh_1
        if(RAh_1 .GE. 0) RA__1=RAh_1*15.
        if(RAm_1 .GE. 0) RA__1=RA__1+RAm_1/4.
        if(RAs_1 .GE. 0) RA__1=RA__1+RAs_1/240.
        Dec_1 = DEd_1
        if(DEm_1 .GE. 0) Dec_1=Dec_1+DEm_1/60.
        if(DEs_1 .GE. 0) Dec_1=Dec_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.Dec_1.GE.0) Dec_1=-Dec_1
c    ..............Just test output...........
        write(6,2)
     +  v_VTU2006__1,CXOYECDF_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
     +  DEs_1,PSF_1,CRf_1,E_CRf_2,e_CRf_3,CRs_1,E_CRs_2,e_CRs_3,CRh_1,
     +  E_CRh_2,e_CRh_3,Ffull_1,Fsoft_1,Fhard_1,Notes_1
        write(6,'(6H Pos: 2F8.4)') RA__1,Dec_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Catalog of collapsed Wavdetect X-ray sources in
*                              the ECDFS Survey

C  Format for file interpretation

    3 format(
     +  I3,1X,A16,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,A10)

C  Effective file loading

      open(unit=1,file='table6.dat', status='old')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,70
        read(1,'(A56)')ar__2
        read(ar__2,3)
     +  v_VTU2006__2,CXOYECDF_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,
     +  DEs_2,Notes_2
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 = RAh_2
        if(RAh_2 .GE. 0) RA__2=RAh_2*15.
        if(RAm_2 .GE. 0) RA__2=RA__2+RAm_2/4.
        if(RAs_2 .GE. 0) RA__2=RA__2+RAs_2/240.
        Dec_2 = DEd_2
        if(DEm_2 .GE. 0) Dec_2=Dec_2+DEm_2/60.
        if(DEs_2 .GE. 0) Dec_2=Dec_2+DEs_2/3600.
        if(DE__2.EQ.'-'.AND.Dec_2.GE.0) Dec_2=-Dec_2
c    ..............Just test output...........
        write(6,3)
     +  v_VTU2006__2,CXOYECDF_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,
     +  DEs_2,Notes_2
        write(6,'(6H Pos: 2F8.4)') RA__2,Dec_2
c    .......End.of.Just test output...........
      end do
      close(1)

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