FORTRAN Generation
(/./ftp/cats/J/ApJ/642/126)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/642/126 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-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__
      parameter  (rNULL__=--2147483648.)  	! NULL real number
      parameter  (iNULL__=(-2147483647-1))	! NULL int  number
      integer    idig			! testing NULL number

C=============================================================================
Cat. J/ApJ/642/126   Mid-IR observations in the extended Groth strip  (Barmby+, 2006)
*================================================================================
*Mid-infrared properties of X-ray sources in the extended Groth strip.
*    Barmby P., Alonso-Herrero A., Donley J.L., Egami E., Fazio G.G.,
*    Georgakakis A., Huang J.-S., Laird E.S., Miyazaki S., Nandra K., Park S.Q.,
*    Perez-Gonzalez P.G., Rieke G.H., Rigby J.R., Willner S.P.
*   <Astrophys. J., 642, 126-139 (2006)>
*   =2006ApJ...642..126B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Infrared Properties of extended Groth strip (EGS)
                             X-Ray Sources

      integer*4 nr__
      parameter (nr__=138)	! Number of records
      character*106 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     CXO         ! ? Nandra et al. (2005MNRAS.360L..39N)
*                                    source number (1) (2)
      integer*4     XMM         ! ? Waskett et al. (2004, Cat. J/MNRAS/350/785)
*                                    source number (1) (3)
      integer*4     RAh         ! (h) Hour of Right Ascension (J2000) (4)
      integer*4     RAm         ! (min) Minute of Right Ascension (J2000) (4)
      real*4        RAs         ! (s) Second of Right Ascension (J2000) (4)
      character*1   DE_         ! Sign of the Declination (J2000) (4)
      integer*4     DEd         ! (deg) Degree of Declination (J2000) (4)
      integer*4     DEm         ! (arcmin) Arcminute of Declination (J2000) (4)
      real*4        DEs         ! (arcsec) Arcsecond of Declination (J2000) (4)
      real*4        v3_6mag     ! (mag) Spitzer 3.6{mu}m band AB magnitude
      real*4        e_3_6mag    ! (mag) Uncertainty in 3.6mag
      real*4        v4_5mag     ! (mag) Spitzer 4.5{mu}m band AB magnitude
      real*4        e_4_5mag    ! (mag) Uncertainty in 4.5mag
      real*4        v5_8mag     ! (mag) Spitzer 5.8{mu}m band AB magnitude
      real*4        e_5_8mag    ! (mag) Uncertainty in 5.8mag
      real*4        v8_0mag     ! (mag) Spitzer 8.0{mu}m band AB magnitude
      real*4        e_8_0mag    ! (mag) Uncertainty in 8.0mag
      character*1   l_24mag     ! Limit flag on 24mag
      real*4        v24mag      ! (mag) Spitzer 24{mu}m band AB magnitude
      real*4        e_24mag     ! (mag) ? Uncertainty in 24mag
      character*17  OID         ! Other identification(s) (5)
*Note (1):
*    The following X-ray sources are in the area covered by the IRAC and
*    MIPS images, but were not detected in the mid-infrared: Chandra IDs
*    10 (XMM ID 19), 13 (XMM ID 84), 30, 36, 45, 52 and XMM IDs 60, 64, 78,
*    81, 96, 121, 123.
*Note (2):
*    Source catalog number given in Table 3 of Nandra et al.
*    (2005MNRAS.360L..39N), referred to in this paper as cNNN.
*    Source designation in NED or Simbad is [NLA2005] NNN.
*Note (3):
*    Source number in Table 2 of Waskett et al. (2004MNRAS.350..785W),
*    referred to in this paper as XNNN. Source designation in NED or
*    Simbad is [WEG2004] 14h-NNN.
*Note (4): As measured on the IRAC images.
*Note (5): Lists are:
*       15V = Fomalont et al. (1991AJ....102.1258F);
*     CUDSS = Webb et al. (2003ApJ...597..680W);
*  Westphal = Steidel et al. (2003, Cat. J/ApJ/592/728).

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

C  Loading file 'table1.dat'	! Infrared Properties of extended Groth strip (EGS)
*                             X-Ray Sources

C  Format for file interpretation

    1 format(
     +  I3,1X,I3,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,
     +  1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,A1,
     +  F5.2,1X,F4.2,1X,A17)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,138
        read(1,'(A106)')ar__
        read(ar__,1)
     +  CXO,XMM,RAh,RAm,RAs,DE_,DEd,DEm,DEs,v3_6mag,e_3_6mag,v4_5mag,
     +  e_4_5mag,v5_8mag,e_5_8mag,v8_0mag,e_8_0mag,l_24mag,v24mag,
     +  e_24mag,OID
        if(ar__(1:3) .EQ. '') CXO = iNULL__
        if(ar__(5:7) .EQ. '') XMM = iNULL__
        if(ar__(84:87) .EQ. '') e_24mag = rNULL__
        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)
     +  CXO,XMM,RAh,RAm,RAs,DE_,DEd,DEm,DEs,v3_6mag,e_3_6mag,v4_5mag,
     +  e_4_5mag,v5_8mag,e_5_8mag,v8_0mag,e_8_0mag,l_24mag,v24mag,
     +  e_24mag,OID
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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