FORTRAN Generation
(/./ftp/cats/J/AJ/122/2810)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/122/2810 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-Mar-28
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/122/2810       Chandra Deep Field North Survey. V.      (Brandt+, 2001)
*================================================================================
*The Chandra Deep Field North survey. V. 1 Ms source catalogs.
*    Brandt W.N., Alexander D.M., Hornschemeier A.E., Garmire G.P.,
*    Schneider D.P., Barger A.J., Bauer F.E., Broos P.S., Cowie L.L.,
*    Townsley L.K., Burrows D.N., Chartas G., Feigelson E.D., Griffiths R.E.,
*    Nousek J.A., Sargent W.L.W.
*   <Astron. J. 122, 2810 (2001)>
*   =2001AJ....122.2810B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Main Chandra Point-Source Catalog

      integer*4 nr__
      parameter (nr__=370)	! Number of records
      character*162 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*3   Seq         ! Source number (1-370, S1-S11) (1)
      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        PosErr      ! (arcsec) Positional error
      character*1   l_Fcnt      ! Limit flag on Fcnt
      real*4        Fcnt        ! (ct) Full band counts (2)
      real*4        e_Fcnt      ! (ct) ? The 1{sigma} statistical error in Fcnt
      character*2   f_Fcnt      ! [abc ] Flag on Fcnt3)
      character*1   l_Scnt      ! Limit flag on Scnt
      real*4        Scnt        ! (ct) Soft band (0.5-2keV ) counts (2)
      real*4        e_Scnt      ! (ct) ? The 1{sigma} statistical error in Scnt
      character*2   f_Scnt      ! [abc ] Flag on Scnt (3)
      character*1   l_Hcnt      ! Limit flag on Hcnt
      real*4        Hcnt        ! (ct) Hard band (2-8keV) counts (2)
      real*4        e_Hcnt      ! (ct) ? The 1{sigma} statistical error in Hcnt
      character*2   f_Hcnt      ! [abc ] Flag on Hcnt (3)
      character*1   l_UHcnt     ! Limit flag on UHcnt
      real*4        UHcnt       ! (ct) Ultrahard band (4-8keV) counts (2)
      real*4        e_UHcnt     ! (ct) ? The 1{sigma} statistical error in UHcnt
      character*2   f_UHcnt     ! [abc ] Flag on UHcnt (3)
      character*1   l_HR        ! Limit flag on HR
      real*4        HR          ! ? Hardness band ratio (4)
      real*4        E_HR        ! ? Upper limit error on HR
      real*4        e_HR_1      ! ? Lower limit error on HR
      character*1   l_Sp_Index  ! Limit flag on Sp+Index
      real*4        Sp_Index    ! Effective photon index (5)
      character*1   f_Sp_Index  ! [d] Indicates Sp+Index set to given value
*                                   due to low number of counts
      real*4        ExpTime     ! (ks) Effective exposure time
      character*1   l_FFB       ! Limit flag on FFB
      real*4        FFB         ! (10-18W/m2) Full band (0.5-8keV) observed-frame flux
*                                   in units of 10^-15^ erg/cm^2^/s (6)
      character*1   l_FSB       ! Limit flag on FSB
      real*4        FSB         ! (10-18W/m2) Soft band (0.5-2keV) observed-frame flux
*                                   in units of 10^-15^ erg/cm^2^/s (6)
      character*1   l_FHB       ! Limit flag on FHB
      real*4        FHB         ! (10-18W/m2) Hard band (2-8keV) observed-frame flux in
*                                   units of 10^-15^ erg/cm^2^/s (6)
      character*1   l_FUHB      ! Limit flag on FUHB
      real*4        FUHB        ! (10-18W/m2) Ultrahard band (4-8keV) observed-frame
*                                   flux in units of 10^-15^ erg/cm^2^/s (6)
      character*4   Note        ! Source notes (7)
*Note (1): The designations are in Simbad:
*    [BAH2001] NNN = CXOHDFN JHHMMSS.s+DDMMSS
*    [BAH2001] SNN = CXOHDFN JHHMMSS.s+DDMMSS
*Note (2): Counts not corrected for vignetting and calculated using
*    circular aperture photometry. The circular aperture was centered at
*    the position given for all bands. A source-free local background has
*    been subtracted, and unexposed regions were masked.
*Note (3):
*    a = Source was detected with the restricted ACIS grade set with a
*        probability threshold of 10^-7^.
*    b = Source was detected with the standard ASCA grade set with a
*        probability threshold of 10^-5^.
*    c = Source positional offset >2.5'' from the primary source position.
*    d = Photon index set to given value due to low number of counts
*Note (4): Defined as the ratio of of hard-band counts to soft-band counts.
*Note (5): For a power-law model with the Galactic column density.
*Note (6): Corrected for vignetting but not corrected for absorption by
*          the Galaxy or intrinsic to the source.
*Note (7):
*    H = Object lying in the HDF-N area;
*    C = Object lying in the Caltech area;
*    O = Object that has large cross-band positional offsets ( >2.5'');
*    np = Object where the source position could not be updated to that from
*         a no-PSF run;
*    M = Source where the photometry was performed manually;
*    S = Close double source where manual separation was required.

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

C  Declarations for 'table6.dat'	! Supplementary Chandra point-source catalog

      integer*4 nr__1
      parameter (nr__1=11)	! Number of records
      character*161 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)

      character*3   Seq_1       ! Source number (1-370, S1-S11) (1)
      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        PosErr_1    ! (arcsec) Positional error
      character*1   l_Fcnt_1    ! Limit flag on Fcnt
      real*4        Fcnt_1      ! (ct) Full band counts (2)
      real*4        e_Fcnt_1    ! (ct) ? The 1{sigma} statistical error in Fcnt
      character*2   f_Fcnt_1    ! [abc ] Flag on Fcnt3)
      character*1   l_Scnt_1    ! Limit flag on Scnt
      real*4        Scnt_1      ! (ct) Soft band (0.5-2keV ) counts (2)
      real*4        e_Scnt_1    ! (ct) ? The 1{sigma} statistical error in Scnt
      character*2   f_Scnt_1    ! [abc ] Flag on Scnt (3)
      character*1   l_Hcnt_1    ! Limit flag on Hcnt
      real*4        Hcnt_1      ! (ct) Hard band (2-8keV) counts (2)
      real*4        e_Hcnt_1    ! (ct) ? The 1{sigma} statistical error in Hcnt
      character*2   f_Hcnt_1    ! [abc ] Flag on Hcnt (3)
      character*1   l_UHcnt_1   ! Limit flag on UHcnt
      real*4        UHcnt_1     ! (ct) Ultrahard band (4-8keV) counts (2)
      real*4        e_UHcnt_1   ! (ct) ? The 1{sigma} statistical error in UHcnt
      character*2   f_UHcnt_1   ! [abc ] Flag on UHcnt (3)
      character*1   l_HR_1      ! Limit flag on HR
      real*4        HR_1        ! ? Hardness band ratio (4)
      real*4        E_HR_2      ! ? Upper limit error on HR
      real*4        e_HR_3      ! ? Lower limit error on HR
      character*1   l_Sp_Index_1 ! Limit flag on Sp+Index
      real*4        Sp_Index_1  ! Effective photon index (5)
      character*1   f_Sp_Index_1 ! [d] Indicates Sp+Index set to given value
*                                   due to low number of counts
      real*4        ExpTime_1   ! (ks) Effective exposure time
      character*1   l_FFB_1     ! Limit flag on FFB
      real*4        FFB_1       ! (10-18W/m2) Full band (0.5-8keV) observed-frame flux
*                                   in units of 10^-15^ erg/cm^2^/s (6)
      character*1   l_FSB_1     ! Limit flag on FSB
      real*4        FSB_1       ! (10-18W/m2) Soft band (0.5-2keV) observed-frame flux
*                                   in units of 10^-15^ erg/cm^2^/s (6)
      character*1   l_FHB_1     ! Limit flag on FHB
      real*4        FHB_1       ! (10-18W/m2) Hard band (2-8keV) observed-frame flux in
*                                   units of 10^-15^ erg/cm^2^/s (6)
      character*1   l_FUHB_1    ! Limit flag on FUHB
      real*4        FUHB_1      ! (10-18W/m2) Ultrahard band (4-8keV) observed-frame
*                                   flux in units of 10^-15^ erg/cm^2^/s (6)
      character*4   Note_1      ! Source notes (7)
*Note (1): The designations are in Simbad:
*    [BAH2001] NNN = CXOHDFN JHHMMSS.s+DDMMSS
*    [BAH2001] SNN = CXOHDFN JHHMMSS.s+DDMMSS
*Note (2): Counts not corrected for vignetting and calculated using
*    circular aperture photometry. The circular aperture was centered at
*    the position given for all bands. A source-free local background has
*    been subtracted, and unexposed regions were masked.
*Note (3):
*    a = Source was detected with the restricted ACIS grade set with a
*        probability threshold of 10^-7^.
*    b = Source was detected with the standard ASCA grade set with a
*        probability threshold of 10^-5^.
*    c = Source positional offset >2.5'' from the primary source position.
*    d = Photon index set to given value due to low number of counts
*Note (4): Defined as the ratio of of hard-band counts to soft-band counts.
*Note (5): For a power-law model with the Galactic column density.
*Note (6): Corrected for vignetting but not corrected for absorption by
*          the Galaxy or intrinsic to the source.
*Note (7):
*    H = Object lying in the HDF-N area;
*    C = Object lying in the Caltech area;
*    O = Object that has large cross-band positional offsets ( >2.5'');
*    np = Object where the source position could not be updated to that from
*         a no-PSF run;
*    M = Source where the photometry was performed manually;
*    S = Close double source where manual separation was required.

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

C  Loading file 'table3.dat'	! Main Chandra Point-Source Catalog

C  Format for file interpretation

    1 format(
     +  A3,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1,1X,A1,
     +  F6.1,1X,F4.1,1X,A2,1X,A1,F6.1,1X,F4.1,1X,A2,1X,A1,F6.1,1X,
     +  F4.1,1X,A2,1X,A1,F5.1,1X,F4.1,1X,A2,1X,A1,F4.2,1X,F5.2,1X,
     +  F4.2,1X,A1,F5.2,1X,A1,1X,F5.1,1X,A1,F6.2,1X,A1,F5.2,1X,A1,
     +  F6.2,1X,A1,F5.2,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,370
        read(1,'(A162)')ar__
        read(ar__,1)
     +  Seq,RAh,RAm,RAs,DE_,DEd,DEm,DEs,PosErr,l_Fcnt,Fcnt,e_Fcnt,
     +  f_Fcnt,l_Scnt,Scnt,e_Scnt,f_Scnt,l_Hcnt,Hcnt,e_Hcnt,f_Hcnt,
     +  l_UHcnt,UHcnt,e_UHcnt,f_UHcnt,l_HR,HR,E_HR,e_HR_1,l_Sp_Index,
     +  Sp_Index,f_Sp_Index,ExpTime,l_FFB,FFB,l_FSB,FSB,l_FHB,FHB,
     +  l_FUHB,FUHB,Note
        if(ar__(41:44) .EQ. '') e_Fcnt = rNULL__
        if(ar__(57:60) .EQ. '') e_Scnt = rNULL__
        if(ar__(73:76) .EQ. '') e_Hcnt = rNULL__
        if(ar__(88:91) .EQ. '') e_UHcnt = rNULL__
        if(ar__(97:100) .EQ. '') HR = rNULL__
        if(ar__(102:106) .EQ. '') E_HR = rNULL__
        if(ar__(108:111) .EQ. '') e_HR_1 = 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)
     +  Seq,RAh,RAm,RAs,DE_,DEd,DEm,DEs,PosErr,l_Fcnt,Fcnt,e_Fcnt,
     +  f_Fcnt,l_Scnt,Scnt,e_Scnt,f_Scnt,l_Hcnt,Hcnt,e_Hcnt,f_Hcnt,
     +  l_UHcnt,UHcnt,e_UHcnt,f_UHcnt,l_HR,HR,E_HR,e_HR_1,l_Sp_Index,
     +  Sp_Index,f_Sp_Index,ExpTime,l_FFB,FFB,l_FSB,FSB,l_FHB,FHB,
     +  l_FUHB,FUHB,Note
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Supplementary Chandra point-source catalog

C  Format for file interpretation

    2 format(
     +  A3,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1,1X,A1,
     +  F6.1,1X,F4.1,1X,A2,1X,A1,F6.1,1X,F4.1,1X,A2,1X,A1,F6.1,1X,
     +  F4.1,1X,A2,1X,A1,F5.1,1X,F4.1,1X,A2,1X,A1,F4.2,1X,F5.2,1X,
     +  F4.2,1X,A1,F5.2,1X,A1,1X,F5.1,1X,A1,F6.2,1X,A1,F5.2,1X,A1,
     +  F6.2,1X,A1,F5.2,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,11
        read(1,'(A161)')ar__1
        read(ar__1,2)
     +  Seq_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,PosErr_1,
     +  l_Fcnt_1,Fcnt_1,e_Fcnt_1,f_Fcnt_1,l_Scnt_1,Scnt_1,e_Scnt_1,
     +  f_Scnt_1,l_Hcnt_1,Hcnt_1,e_Hcnt_1,f_Hcnt_1,l_UHcnt_1,UHcnt_1,
     +  e_UHcnt_1,f_UHcnt_1,l_HR_1,HR_1,E_HR_2,e_HR_3,l_Sp_Index_1,
     +  Sp_Index_1,f_Sp_Index_1,ExpTime_1,l_FFB_1,FFB_1,l_FSB_1,FSB_1,
     +  l_FHB_1,FHB_1,l_FUHB_1,FUHB_1,Note_1
        if(ar__1(41:44) .EQ. '') e_Fcnt_1 = rNULL__
        if(ar__1(57:60) .EQ. '') e_Scnt_1 = rNULL__
        if(ar__1(73:76) .EQ. '') e_Hcnt_1 = rNULL__
        if(ar__1(88:91) .EQ. '') e_UHcnt_1 = rNULL__
        if(ar__1(97:100) .EQ. '') HR_1 = rNULL__
        if(ar__1(102:106) .EQ. '') E_HR_2 = rNULL__
        if(ar__1(108:111) .EQ. '') e_HR_3 = 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,2)
     +  Seq_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,PosErr_1,
     +  l_Fcnt_1,Fcnt_1,e_Fcnt_1,f_Fcnt_1,l_Scnt_1,Scnt_1,e_Scnt_1,
     +  f_Scnt_1,l_Hcnt_1,Hcnt_1,e_Hcnt_1,f_Hcnt_1,l_UHcnt_1,UHcnt_1,
     +  e_UHcnt_1,f_UHcnt_1,l_HR_1,HR_1,E_HR_2,e_HR_3,l_Sp_Index_1,
     +  Sp_Index_1,f_Sp_Index_1,ExpTime_1,l_FFB_1,FFB_1,l_FSB_1,FSB_1,
     +  l_FHB_1,FHB_1,l_FUHB_1,FUHB_1,Note_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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