FORTRAN Generation
(/./ftp/cats/J/ApJ/701/508)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/701/508 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-16
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/701/508      5000 AGNs behind the Magellanic clouds     (Kozlowski+, 2009)
*================================================================================
*Discovery of 5000 active galactic nuclei behind the Magellanic Clouds.
*    Kozlowski S., Kochanek C.S.
*   <Astrophys. J., 701, 508-513 (2009)>
*   =2009ApJ...701..508K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! AGN candidates behind the Large Magellanic Cloud

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

C  J2000 position composed of: RAdeg DEdeg
      character*20  ID         (nr__) ! Source identification (JHHMMSS.ss+DDMMSS.s)
*                                 (see Nomenclature notes)
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        v_3_6_     (nr__) ! (mag) ?=99.999 Spitzer/IRAC 3.6 micron band magnitude
      real*4        e__3_6_    (nr__) ! (mag) ?=9.999 The 1{sigma} error in 3.6mag
      real*4        v_4_5_     (nr__) ! (mag) ?=99.999 Spitzer/IRAC 4.5 micron band magnitude
      real*4        e__4_5_    (nr__) ! (mag) ?=9.999 The 1{sigma} error in 4.5mag
      real*4        v_5_8_     (nr__) ! (mag) ?=99.999 Spitzer/IRAC 5.8 micron band magnitude
      real*4        e__5_8_    (nr__) ! (mag) ?=9.999 The 1{sigma} error in 5.8mag
      real*4        v_8_0_     (nr__) ! (mag) ?=99.999 Spitzer/IRAC 8.0 micron band magnitude
      real*4        e__8_0_    (nr__) ! (mag) ?=9.999 The 1{sigma} error in 8.0mag
      real*4        Vmag       (nr__) ! (mag) ?=99.999 V band magnitude
      real*4        e_Vmag     (nr__) ! (mag) ?=9.999 The 1{sigma} error in Vmag
      real*4        Imag       (nr__) ! (mag) ?=99.999 I band magnitude
      real*4        e_Imag     (nr__) ! (mag) ?=9.999 The 1{sigma} error in Imag
      character*15  OGLE       (nr__) ! OGLE-III identification (smc/lmcFFF.F.NNNNNN; 
*                                 <OGLE {L/S}MCFFF.F NNNNNN> in Simbad)
      character*6   Type       (nr__) ! Source type, from color-magnitude diagrams (1)
      real*4        z          (nr__) ! ?=-1 Redshift
      character*27  r_z        (nr__) ! Reference of z (2)
*Note (1): The classification scheme is QSO-[AB][0ab] or YSO-[AB][0ab]
*     according to the location in color-magnitude diagrams: A and B for
*     IRAC colors/magnitudes, a and b with the I color from OGLE-III; 
*     0 means that the source had no optical match (outside the OGLE-III
*     regions or too faint). See section 2 of the paper for details.
*Note (2): In table 1, we indicate if the source is a known quasar if it is
*     flagged as a "YSO" by Whitney et al. (2008, Cat. J/AJ/136/18), and if
*     it is within the 90% confidence radius of a ROSAT source ("HP99",
*     Haberl & Pietsch 1999, Cat. J/A+AS/139/277; <[HP99] NNNN> in Simbad).
*     We estimate that 30% of the ROSAT identifications will be false
*     positives. For the ROSAT sources we indicate the ROSAT catalog number
*     using the format HP99_number. In table 2, if it is flagged as a "YSO"
*     by Bolatto et al. (2007, Cat. J/ApJ/655/212) and if it is within the
*     90% confidence radius of a ROSAT source (H00, Haberl et al. 2000, Cat.
*     J/A+AS/142/41; <[HFP2000] NNN> in Simbad). For the ROSAT sources we
*     indicate the ROSAT catalog number using format H00_number. A "-1"
*     indicates no existing reference.

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

C  Declarations for 'table2.dat'	! AGN candidates behind the Small Magellanic Cloud

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

C  J2000 position composed of: RAdeg DEdeg
      character*20  ID_1       (nr__1) ! Source identification (JHHMMSS.ss+DDMMSS.s)
*                                 (see Nomenclature notes)
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination in decimal degrees (J2000)
      real*4        v_3_6__1   (nr__1) ! (mag) ?=99.999 Spitzer/IRAC 3.6 micron band magnitude
      real*4        e__3_6__1  (nr__1) ! (mag) ?=9.999 The 1{sigma} error in 3.6mag
      real*4        v_4_5__1   (nr__1) ! (mag) ?=99.999 Spitzer/IRAC 4.5 micron band magnitude
      real*4        e__4_5__1  (nr__1) ! (mag) ?=9.999 The 1{sigma} error in 4.5mag
      real*4        v_5_8__1   (nr__1) ! (mag) ?=99.999 Spitzer/IRAC 5.8 micron band magnitude
      real*4        e__5_8__1  (nr__1) ! (mag) ?=9.999 The 1{sigma} error in 5.8mag
      real*4        v_8_0__1   (nr__1) ! (mag) ?=99.999 Spitzer/IRAC 8.0 micron band magnitude
      real*4        e__8_0__1  (nr__1) ! (mag) ?=9.999 The 1{sigma} error in 8.0mag
      real*4        Vmag_1     (nr__1) ! (mag) ?=99.999 V band magnitude
      real*4        e_Vmag_1   (nr__1) ! (mag) ?=9.999 The 1{sigma} error in Vmag
      real*4        Imag_1     (nr__1) ! (mag) ?=99.999 I band magnitude
      real*4        e_Imag_1   (nr__1) ! (mag) ?=9.999 The 1{sigma} error in Imag
      character*15  OGLE_1     (nr__1) ! OGLE-III identification (smc/lmcFFF.F.NNNNNN; 
*                                 <OGLE {L/S}MCFFF.F NNNNNN> in Simbad)
      character*6   Type_1     (nr__1) ! Source type, from color-magnitude diagrams (1)
      real*4        z_1        (nr__1) ! ?=-1 Redshift
      character*27  r_z_1      (nr__1) ! Reference of z (2)
*Note (1): The classification scheme is QSO-[AB][0ab] or YSO-[AB][0ab]
*     according to the location in color-magnitude diagrams: A and B for
*     IRAC colors/magnitudes, a and b with the I color from OGLE-III; 
*     0 means that the source had no optical match (outside the OGLE-III
*     regions or too faint). See section 2 of the paper for details.
*Note (2): In table 1, we indicate if the source is a known quasar if it is
*     flagged as a "YSO" by Whitney et al. (2008, Cat. J/AJ/136/18), and if
*     it is within the 90% confidence radius of a ROSAT source ("HP99",
*     Haberl & Pietsch 1999, Cat. J/A+AS/139/277; <[HP99] NNNN> in Simbad).
*     We estimate that 30% of the ROSAT identifications will be false
*     positives. For the ROSAT sources we indicate the ROSAT catalog number
*     using the format HP99_number. In table 2, if it is flagged as a "YSO"
*     by Bolatto et al. (2007, Cat. J/ApJ/655/212) and if it is within the
*     90% confidence radius of a ROSAT source (H00, Haberl et al. 2000, Cat.
*     J/A+AS/142/41; <[HFP2000] NNN> in Simbad). For the ROSAT sources we
*     indicate the ROSAT catalog number using format H00_number. A "-1"
*     indicates no existing reference.

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

C  Loading file 'table1.dat'	! AGN candidates behind the Large Magellanic Cloud

C  Format for file interpretation

    1 format(
     +  A20,1X,F9.6,1X,F10.6,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,
     +  A15,1X,A6,1X,F5.2,1X,A27)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,4699
        read(1,'(A176)')ar__
        read(ar__,1)
     +  ID(i__),RAdeg(i__),DEdeg(i__),v_3_6_(i__),e__3_6_(i__),
     +  v_4_5_(i__),e__4_5_(i__),v_5_8_(i__),e__5_8_(i__),v_8_0_(i__),
     +  e__8_0_(i__),Vmag(i__),e_Vmag(i__),Imag(i__),e_Imag(i__),
     +  OGLE(i__),Type(i__),z(i__),r_z(i__)
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),RAdeg(i__),DEdeg(i__),v_3_6_(i__),e__3_6_(i__),
     +  v_4_5_(i__),e__4_5_(i__),v_5_8_(i__),e__5_8_(i__),v_8_0_(i__),
     +  e__8_0_(i__),Vmag(i__),e_Vmag(i__),Imag(i__),e_Imag(i__),
     +  OGLE(i__),Type(i__),z(i__),r_z(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! AGN candidates behind the Small Magellanic Cloud

C  Format for file interpretation

    2 format(
     +  A20,1X,F9.6,1X,F10.6,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,
     +  A15,1X,A6,1X,F5.2,1X,A27)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,657
        read(1,'(A176)')ar__1
        read(ar__1,2)
     +  ID_1(i__),RAdeg_1(i__),DEdeg_1(i__),v_3_6__1(i__),
     +  e__3_6__1(i__),v_4_5__1(i__),e__4_5__1(i__),v_5_8__1(i__),
     +  e__5_8__1(i__),v_8_0__1(i__),e__8_0__1(i__),Vmag_1(i__),
     +  e_Vmag_1(i__),Imag_1(i__),e_Imag_1(i__),OGLE_1(i__),
     +  Type_1(i__),z_1(i__),r_z_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  ID_1(i__),RAdeg_1(i__),DEdeg_1(i__),v_3_6__1(i__),
     +  e__3_6__1(i__),v_4_5__1(i__),e__4_5__1(i__),v_5_8__1(i__),
     +  e__5_8__1(i__),v_8_0__1(i__),e__8_0__1(i__),Vmag_1(i__),
     +  e_Vmag_1(i__),Imag_1(i__),e_Imag_1(i__),OGLE_1(i__),
     +  Type_1(i__),z_1(i__),r_z_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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