FORTRAN Generation
(/./ftp/cats/J/A_A/505/417)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/505/417 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.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/A+A/505/417       Second INTEGRAL AGN catalogue            (Beckmann+, 2009)
*================================================================================
*The second INTEGRAL AGN catalogue.
*    Beckmann V., Soldi S., Ricci C., Alfonso-Garzon J., Courvoisier T.J.-L.,
*    Domingo A., Gehrels N., Lubinski P., Mas-Hesse J.M., Zdziarski A.A.
*   <Astron. Astrophys. 505, 417 (2009)>
*   =2009A&A...505..417B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! INTEGRAL AGN catalogue with type, position,
                             redshift, exposure time, black hole mass

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

C  J2000.0 position composed of: RAdeg DEdeg
      character*20  Name       (nr__) ! Source name
      real*4        Type       (nr__) ! Spectral classification (1)
      real*8        z          (nr__) ! ?=-1 Redshift (2)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000.0)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000.0)
      real*4        ISGRI      (nr__) ! (ks) Effective ISGRI exposure time
      real*4        JEMX       (nr__) ! (ks) Effective JEM-X exposure time
      real*4        logMBH     (nr__) ! ([solMass]) ? log of mass of black hole
      real*4        E_logMBH   (nr__) ! ([solMass]) ? Upper 1-{sigma} error on logMBH
      real*4        e_logMBH_1 (nr__) ! ([solMass]) ? Lower 1-{sigma} error on logMBH
      character*5   Method     (nr__) ! Method to derive logMBH (3)
*Note (1): Spectral classification as follows:
*      0 = unknown AGN type
*      1.0 = Seyfert type 1
*      1.5 = Seyfert type 1.5
*      2.0 = Seyfert type 2
*      3.0 = blazar/BL Lac
*      4.0 = galaxy cluster
*Note (2): -1: unknown redshift
*Note (3): See paper for details

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

C  Declarations for 'table2.dat'	! Results from spectral fitting of a power law
                             model to INTEGRAL IBIS/ISGRI data of AGN

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

      character*20  Name_1     (nr__1) ! Source name
      real*4        ISGRI_1    (nr__1) ! IBIS/ISGRI detection significance
      real*8        logNH      (nr__1) ! ([cm-2]) ?=-1 log of intrinsic absorption (G1)
      real*4        Flux20     (nr__1) ! (10-14W/m2) ?=-1 20-40keV flux (in 1e-11erg/cm2/s) (G1)
      real*4        Flux40     (nr__1) ! (10-14W/m2) ?=-1 40-100keV flux (in 1e-11erg/cm2/s) (G1)
      real*4        Gamma      (nr__1) ! ?=-1 Photon index (2)
      real*4        E_Gamma    (nr__1) ! ?=-1 Upper 1-{sigma} error on photon index (2)
      real*4        e_Gamma_1  (nr__1) ! ?=-1 Lower 1-{sigma} error on photon index (2)
      real*4        logLX      (nr__1) ! ([10-7W]) ?=-1 log of 20-100keV luminosity  (G1)
*Note (2): -1: photon index fixed to 2.0

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

C  Declarations for 'table3.dat'	! Spectral fit results of a cut-off power-law model
                             for AGN with more complex IBIS/ISGRI spectra

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

      character*20  Name_2     (nr__2) ! Source name
      real*4        logNH_1    (nr__2) ! ([cm-2]) log of intrinsic absorption
      real*4        Gamma_1    (nr__2) ! Photon index
      real*4        E_Gamma_2  (nr__2) ! Upper 1-{sigma} error on photon index
      real*4        e_Gamma_3  (nr__2) ! Lower 1-{sigma} error on photon index
      integer*4     EC         (nr__2) ! (keV) Cut-off energy
      integer*4     E_EC       (nr__2) ! (keV) Upper 1-{sigma} error on cut-off energy
      integer*4     e_EC_1     (nr__2) ! (keV) Lower 1-{sigma} error on cut-off energy
      real*4        chi2       (nr__2) ! Reduced chi squared of spectral fit
      integer*4     dof        (nr__2) ! Degrees of freedom of spectral fit

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

C  Declarations for 'table4.dat'	! Spectral fit results for combined JEM-X and
                             IBIS/ISGR data

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

      character*20  Name_3     (nr__3) ! Source name
      real*4        JEM_X      (nr__3) ! JEM-X detection significance
      real*4        logNH_2    (nr__3) ! ([cm-2]) log of intrinsic absorption
      real*4        Flux3      (nr__3) ! (10-14W/m2) 3-20keV flux (in 1e-11erg/cm2/s)
      real*4        Flux20_1   (nr__3) ! (10-14W/m2) 20-100keV flux (in 1e-11erg/cm2/s)
      real*4        Gamma_2    (nr__3) ! ?=-1 Photon index (G1)
      real*4        E_Gamma_4  (nr__3) ! ?=-1 Upper 1-{sigma} error on photon index (G1)
      real*4        e_Gamma_5  (nr__3) ! ?=-1 Lower 1-{sigma} error on photon index (G1)
      integer*4     EC_1       (nr__3) ! (keV) ?=-1 Cut-off energy (G1)
      integer*4     E_EC_2     (nr__3) ! (keV) ?=-1 Upper 1-{sigma} error on UC (G1)
      integer*4     e_EC_3     (nr__3) ! (keV) ?=-1 Lower 1-{sigma} error on UC (G1)
      real*4        logLX_1    (nr__3) ! ([10-7W]) ?=-1 log of 3-100keV luminosity (G1)
      real*4        chi2_1     (nr__3) ! ?=-1 Reduced chi squared of spectral fit (G1)
      integer*4     d_chi2     (nr__3) ! ?=-1 Degrees of freedom of spectral fit (G1)

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

C  Declarations for 'table5.dat'	! Optical V-band measurements by INTEGRAL/OMC

      integer*4 nr__4
      parameter (nr__4=57)	! Number of records
      character*49 ar__4  	! Full-size record

      character*20  Name_4     (nr__4) ! Source name
      real*4        Vmag       (nr__4) ! (mag) Median V magnitude
      real*4        e_Vmag     (nr__4) ! (mag) Average of error estimates on Vmag
      real*4        logLV      (nr__4) ! ([10-7W]) log of V-band luminosity
      real*4        alphaox    (nr__4) ! Alpha_ox_ between V band and hard X-rays
      integer*4     o_Vmag     (nr__4) ! Number of photometric points
      integer*4     q_Vmag     (nr__4) ! Potential contamination flag (0 = OK)

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

C  Loading file 'table1.dat'	! INTEGRAL AGN catalogue with type, position,
*                             redshift, exposure time, black hole mass

C  Format for file interpretation

    1 format(
     +  A20,1X,F3.1,F7.4,1X,F9.5,1X,F9.5,1X,F6.1,1X,F5.1,1X,F4.2,1X,
     +  F4.2,1X,F4.2,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,202
        read(1,'(A85)')ar__
        read(ar__,1)
     +  Name(i__),Type(i__),z(i__),RAdeg(i__),DEdeg(i__),ISGRI(i__),
     +  JEMX(i__),logMBH(i__),E_logMBH(i__),e_logMBH_1(i__),
     +  Method(i__)
        if(ar__(66:69) .EQ. '') logMBH(i__) = rNULL__
        if(ar__(71:74) .EQ. '') E_logMBH(i__) = rNULL__
        if(ar__(76:79) .EQ. '') e_logMBH_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),Type(i__),z(i__),RAdeg(i__),DEdeg(i__),ISGRI(i__),
     +  JEMX(i__),logMBH(i__),E_logMBH(i__),e_logMBH_1(i__),
     +  Method(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Results from spectral fitting of a power law
*                             model to INTEGRAL IBIS/ISGRI data of AGN

C  Format for file interpretation

    2 format(A20,1X,F5.1,1X,F7.3,F5.2,1X,F5.2,F5.2,F5.2,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,199
        read(1,'(A66)')ar__1
        read(ar__1,2)
     +  Name_1(i__),ISGRI_1(i__),logNH(i__),Flux20(i__),Flux40(i__),
     +  Gamma(i__),E_Gamma(i__),e_Gamma_1(i__),logLX(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),ISGRI_1(i__),logNH(i__),Flux20(i__),Flux40(i__),
     +  Gamma(i__),E_Gamma(i__),e_Gamma_1(i__),logLX(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Spectral fit results of a cut-off power-law model
*                             for AGN with more complex IBIS/ISGRI spectra

C  Format for file interpretation

    3 format(
     +  A20,1X,F6.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,I3,1X,I3,1X,I2,1X,F4.2,
     +  1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,12
        read(1,'(A60)')ar__2
        read(ar__2,3)
     +  Name_2(i__),logNH_1(i__),Gamma_1(i__),E_Gamma_2(i__),
     +  e_Gamma_3(i__),EC(i__),E_EC(i__),e_EC_1(i__),chi2(i__),
     +  dof(i__)
c    ..............Just test output...........
        write(6,3)
     +  Name_2(i__),logNH_1(i__),Gamma_1(i__),E_Gamma_2(i__),
     +  e_Gamma_3(i__),EC(i__),E_EC(i__),e_EC_1(i__),chi2(i__),
     +  dof(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Spectral fit results for combined JEM-X and
*                             IBIS/ISGR data

C  Format for file interpretation

    4 format(
     +  A20,1X,F5.1,1X,F6.2,1X,F4.1,1X,F4.1,F5.2,F5.2,F5.2,1X,I3,1X,
     +  I2,1X,I2,1X,F5.2,F5.2,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,23
        read(1,'(A83)')ar__3
        read(ar__3,4)
     +  Name_3(i__),JEM_X(i__),logNH_2(i__),Flux3(i__),Flux20_1(i__),
     +  Gamma_2(i__),E_Gamma_4(i__),e_Gamma_5(i__),EC_1(i__),
     +  E_EC_2(i__),e_EC_3(i__),logLX_1(i__),chi2_1(i__),d_chi2(i__)
c    ..............Just test output...........
        write(6,4)
     +  Name_3(i__),JEM_X(i__),logNH_2(i__),Flux3(i__),Flux20_1(i__),
     +  Gamma_2(i__),E_Gamma_4(i__),e_Gamma_5(i__),EC_1(i__),
     +  E_EC_2(i__),e_EC_3(i__),logLX_1(i__),chi2_1(i__),d_chi2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Optical V-band measurements by INTEGRAL/OMC

C  Format for file interpretation

    5 format(A20,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,I4,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,57
        read(1,'(A49)')ar__4
        read(ar__4,5)
     +  Name_4(i__),Vmag(i__),e_Vmag(i__),logLV(i__),alphaox(i__),
     +  o_Vmag(i__),q_Vmag(i__)
c    ..............Just test output...........
        write(6,5)
     +  Name_4(i__),Vmag(i__),e_Vmag(i__),logLV(i__),alphaox(i__),
     +  o_Vmag(i__),q_Vmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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