FORTRAN Generation
(/./ftp/cats/J/ApJ/633/L77)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/633/L77 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-Mar-29
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/633/L77          SWIFT/BAT detections of AGN            (Markwardt+, 2005)
*================================================================================
*The Swift/BAT high-latitude survey: first results.
*    Markwardt C.B., Tueller J., Skinner G.K., Gehrels N., Barthelmy S.D.,
*    Mushotzky R.F.
*   <Astrophys. J., 633, L77-L80 (2005)>
*   =2005ApJ...633L..77M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! BAT detections of AGN

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

C  J2000 position composed of: RAdeg DEdeg
      character*12  SWIFT      (nr__) ! SWIFT name
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        ePos       (nr__) ! (arcmin) The 99% confidence position error radius
      character*17  ID         (nr__) ! Source identification
      real*4        Off        (nr__) ! (arcmin) Source identification offset
      real*4        z          (nr__) ! Source redshift
      real*4        logNH      (nr__) ! ([cm-2]) ? Log of the hydrogen column density
      integer*4     r_logNH    (nr__) ! ? Reference for logNH (1)
      real*4        logLX      (nr__) ! ([mW/m2]) BAT 14-195keV luminosity (2)
      character*1   RL         (nr__) ! [YN] Radio Loud?
      character*2   Type       (nr__) ! Source type: Sy=Seyfert, Bl=Blazar
*Note (1): Reference for logNH, defined as follows:
*    1 = Turner et al. (2001, in AIP Conf. Proc. 599, X-Ray Astronomy: Stellar
*        Endpoints, AGN, and the Diffuse X-Ray Background, ed. N. E. White,
*        G. Malaguti, and G. G. C. Palumbo (Melville: AIP), 991);
*    2 = Lutz et al. (2004, Cat. <J/A+A/418/465>);
*    3 = This work (XMM-Newton);
*    4 = Gilli et al. (2000A&A...355..485G);
*    5 = This work (ASCA);
*    6 = Gondoin et al. (2003A&A...397..883G);
*    7 = Vignali & Comastri(2002A&A...381..834V);
*    8 = Perlman et al. (2005ApJ...625..727P);
*    9 = This work (Chandra).
*Note (2): In units of erg/s/cm^2^. Estimated systematic error: +20%, -50%.
*     Assumes a WMAP cosmology (H_0_=71km/s/Mpc; Spergel et al.
*     2003ApJS..148..175S).

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

C  Loading file 'table1.dat'	! BAT detections of AGN

C  Format for file interpretation

    1 format(
     +  A12,1X,F7.3,1X,F7.3,1X,F3.1,1X,A17,1X,F3.1,1X,F6.4,1X,F4.1,1X,
     +  I1,1X,F4.1,1X,A1,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,44
        read(1,'(A78)')ar__
        read(ar__,1)
     +  SWIFT(i__),RAdeg(i__),DEdeg(i__),ePos(i__),ID(i__),Off(i__),
     +  z(i__),logNH(i__),r_logNH(i__),logLX(i__),RL(i__),Type(i__)
        if(ar__(63:66) .EQ. '') logNH(i__) = rNULL__
        if(ar__(68:68) .EQ. '') r_logNH(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  SWIFT(i__),RAdeg(i__),DEdeg(i__),ePos(i__),ID(i__),Off(i__),
     +  z(i__),logNH(i__),r_logNH(i__),logLX(i__),RL(i__),Type(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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