FORTRAN Generation
(/./ftp/cats/J/ApJ/582/615)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/582/615 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/ApJ/582/615       SHEEP survey                             (Nandra+, 2003)
*================================================================================
*SHEEP: the search for the high-energy extragalactic population.
*    Nandra K., Georgantopoulos I., Ptak A., Turner T.J.
*   <Astrophys. J. 582, 615 (2003)>
*   =2003ApJ...582..615N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! The SHEEP Sample

      integer*4 nr__
      parameter (nr__=69)	! Number of records
      character*105 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)

      character*12  SHEEP       ! SHEEP designation(JHHMM.m+DDMM)
      integer*4     RAh         ! (h) ASCA Right ascension (J2000)
      integer*4     RAm         ! (min) ASCA Right ascension (J2000)
      real*4        RAs         ! (s) ASCA Right ascension (J2000)
      character*1   DE_         ! ASCA Declination sign (J2000)
      integer*4     DEd         ! (deg) ASCA Declination (J2000)
      integer*4     DEm         ! (arcmin) ASCA Declination (J2000)
      integer*4     DEs         ! (arcsec) ASCA Declination (J2000)
      real*4        S_N         ! Signal-to-noise ratio (equivalent sigma)
      real*4        Raw         ! (10-4ct/s) Total GIS2+GIS3 counts in the 5-10keV band
*                                    divided by total exposure (GIS2+GIS3)
      real*4        e_Raw       ! (10-4ct/s) rms uncertainty on Raw
      real*4        Rate        ! (10-4ct/s) Hard-band (5-10keV) count rate corrected to
*                                    on-axis value for a single GIS detector
      real*4        e_Rate      ! (10-4ct/s) rms uncertainty on Rate
      real*4        HM          ! Medium hardness ratio (HM=H-M/H+M) (1)
      real*4        E_HM        ! Error on HM (Upper limit)
      real*4        e_HM_1      ! Error on HM (Lower limit)
      real*4        HS          ! Soft hardness ratio (HS=H-S/H+S) (1)
      real*4        E_HS        ! Error on HS (Upper limit)
      real*4        e_HS_1      ! Error on HS (Lower limit)
      integer*4     Seq         ! Sequence number in which this source
*                                    was detected
      real*4        ExpTime     ! (ks) Total GIS+GIS3 exposure time for sequence
*Note (1): Hardness ratios:
*    HM = H-M/H+M and HS = H-S/H+S, where
*    M is the medium energy (2-5kev) band
*    S is the soft (0.7-2keV) band
*    H is the hard (5-10keV) band

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

C  Declarations for 'table2.dat'	! ROSAT Observations of SHEEP Sources

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

      character*12  SHEEP_1     ! SHEEP designation
      character*11  Seq_1       ! ROSAT sequence or catalog
      real*4        ExpTime_1   ! (ks) ROSAT exposure time
      real*4        theta       ! (arcmin) ? Off-axis angle
      character*16  RXJ         ! ROSAT  designation
      real*4        Offset      ! (arcmin) ? Offset from ACSA position
      character*1   l_Rate      ! Limit flag on Rate
      real*8        Rate_1      ! (ct/s) PSPC or HRI count rate in the 0.1-2keV band
      real*8        e_Rate_1    ! (ct/s) ? rms uncertainty on Rate
      real*4        NH          ! (10+21cm-2) Galactic hydrogen column density
      character*1   l_Flux      ! Limit flag on Flux
      real*4        Flux        ! (10-16W/m2) Flux in the 0.1-2keV band

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

C  Declarations for 'table3.dat'	! Catalog and Literature Identifications

      integer*4 nr__2
      parameter (nr__2=19)	! Number of records
      character*81 ar__2  	! 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)

      character*12  SHEEP_2     ! SHEEP designation
      character*21  Name        ! Other name from NED
      integer*4     RAh_1       ! (h) NED Right ascension (J2000)
      integer*4     RAm_1       ! (min) NED Right ascension (J2000)
      real*4        RAs_1       ! (s) NED Right ascension (J2000)
      character*1   DE__1       ! NED Declination sign (J2000)
      integer*4     DEd_1       ! (deg) NED Declination (J2000)
      integer*4     DEm_1       ! (arcmin) NED Declination (J2000)
      integer*4     DEs_1       ! (arcsec) NED Declination (J2000)
      character*8   Class       ! Classification (1)
      real*4        z           ! ? Redshfit
      real*4        Offset_1    ! (arcmin) Offset from ROSAT position
      character*1   Radio       ! [YN] Known radio source ?
      character*1   IR          ! [YN] Known infrared source ?
      integer*4     Ref         ! Reference code (2)
*Note (1): Classification:
*    Cl  = cluster
*    G   = galaxy
*    QSO = quasi-stellar object
*    Sy  = Seyfert galaxy
*Note (2): References:
*    (1) Maddox et al., 1990MNRAS.243..692M
*    (2) Foltz et al., 1993AJ....105...22F
*    (3) Veron-Cetty & Veron, 1996, Cat. <J/A+AS/115/97>
*    (4) Wisotzki et al., 2000, Cat. <J/A+A/358/77>
*    (5) Newberg et al., 1999, Cat. <J/ApJS/123/377>
*    (6) Cutri et al. 2000 (2MASS second incremental release);
*    (7) Fiore et al., 1999MNRAS.306L..55F
*    (8) Young & Curie, 1998, Cat. <J/A+AS/127/367>
*    (9) Becker et al., 1995ApJ...450..559B
*   (10) Mason et al., 2000, Cat. <J/MNRAS/311/456>
*   (11) Zwicky & Herzog, 1963, Cat. <VII/49>
*   (12) Takase & Miyauchi-Isobe, 1985, Cat. <VII/150>
*   (13) Boyle, Wiles, & Elvis, 1997MNRAS.285..511B
*   (14) Falco et al., 1999, Cat. <J/PASP/111/438>
*   (15) Johnston et al., 1995, Cat. <J/AJ/110/880>

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

C  Declarations for 'table5.dat'	! Spectral Fits to Sources with S/N > 10

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

      character*12  SHEEP_3     ! SHEEP designation
      real*4        NH_1        ! (10+21cm-2) Galactic hydrogen column density
      real*4        E_NH        ! (10+21cm-2) Error on NH (Upper limit)
      real*4        e_NH_1      ! (10+21cm-2) Error on NH (Lower limit)
      real*4        Sp_Index    ! Spectral index Sp-Index
      real*4        E_Sp_Index  ! Error on Sp-Index (Upper limit)
      real*4        e_Sp_Index_1 ! Error on Sp-Index (Lower limit)
      real*4        FX_2_10     ! (10-15W/m2) Flux in the 2-10keV band
      real*4        FX_5_10     ! (10-15W/m2) Flux in the 5-10keV band
      real*4        Chi2        ! Chi^2^ value
      integer*4     DOF         ! Degrees of freedom
      character*21  Name_1      ! Other name

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

C  Loading file 'table1.dat'	! The SHEEP Sample

C  Format for file interpretation

    1 format(
     +  A12,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F4.1,1X,F4.1,
     +  1X,F3.1,1X,F5.1,1X,F4.1,1X,F5.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,F4.2,1X,I8,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,69
        read(1,'(A105)')ar__
        read(ar__,1)
     +  SHEEP,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S_N,Raw,e_Raw,Rate,e_Rate,
     +  HM,E_HM,e_HM_1,HS,E_HS,e_HS_1,Seq,ExpTime
        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)
     +  SHEEP,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S_N,Raw,e_Raw,Rate,e_Rate,
     +  HM,E_HM,e_HM_1,HS,E_HS,e_HS_1,Seq,ExpTime
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! ROSAT Observations of SHEEP Sources

C  Format for file interpretation

    2 format(
     +  A12,1X,A11,1X,F5.2,1X,F4.1,1X,A16,1X,F4.2,1X,A1,F7.5,1X,F7.5,
     +  1X,F4.1,1X,A1,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,56
        read(1,'(A87)')ar__1
        read(ar__1,2)
     +  SHEEP_1,Seq_1,ExpTime_1,theta,RXJ,Offset,l_Rate,Rate_1,
     +  e_Rate_1,NH,l_Flux,Flux
        if(ar__1(32:35) .EQ. '') theta = rNULL__
        if(ar__1(54:57) .EQ. '') Offset = rNULL__
        if(ar__1(68:74) .EQ. '') e_Rate_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  SHEEP_1,Seq_1,ExpTime_1,theta,RXJ,Offset,l_Rate,Rate_1,
     +  e_Rate_1,NH,l_Flux,Flux
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Catalog and Literature Identifications

C  Format for file interpretation

    3 format(
     +  A12,1X,A21,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,A8,1X,
     +  F5.3,1X,F3.1,1X,A1,1X,A1,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,19
        read(1,'(A81)')ar__2
        read(ar__2,3)
     +  SHEEP_2,Name,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Class,
     +  z,Offset_1,Radio,IR,Ref
        if(ar__2(66:70) .EQ. '') z = rNULL__
        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,3)
     +  SHEEP_2,Name,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Class,
     +  z,Offset_1,Radio,IR,Ref
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Spectral Fits to Sources with S/N > 10

C  Format for file interpretation

    4 format(
     +  A12,2X,F3.1,1X,F3.1,1X,F3.1,2X,F4.2,1X,F4.2,1X,F4.2,2X,F4.2,
     +  2X,F4.2,2X,F5.1,1X,I3,1X,A21)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,8
        read(1,'(A86)')ar__3
        read(ar__3,4)
     +  SHEEP_3,NH_1,E_NH,e_NH_1,Sp_Index,E_Sp_Index,e_Sp_Index_1,
     +  FX_2_10,FX_5_10,Chi2,DOF,Name_1
c    ..............Just test output...........
        write(6,4)
     +  SHEEP_3,NH_1,E_NH,e_NH_1,Sp_Index,E_Sp_Index,e_Sp_Index_1,
     +  FX_2_10,FX_5_10,Chi2,DOF,Name_1
c    .......End.of.Just test output...........
      end do
      close(1)

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