FORTRAN Generation
(/./ftp/cats/J/ApJ/695/276)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/695/276 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/695/276       Search for megamasers in type-2 AGNs        (Bennert+, 2009)
*================================================================================
*A search for H_2_O megamasers in high-z Type-2 active galactic nuclei.
*    Bennert N., Barvainis R., Henkel C., Antonucci R.
*   <Astrophys. J., 695, 276-286 (2009)>
*   =2009ApJ...695..276B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Details of observations: 274 SDSS type-2 AGNs

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

      character*18  SDSS       (nr__) ! Source identification (1)
      real*4        z          (nr__) ! Heliocentric redshift (2)
      real*4        L_OIII_    (nr__) ! ([Lsun]) Log of [OIII] luminosity (3)
      real*8        F20cm      (nr__) ! (mJy) ? FIRST 20cm integrated flux (4)
      character*1   f_F20cm    (nr__) ! [n] 'n' if field not observed by FIRST survey
      real*8        nu         (nr__) ! (MHz) Observed frequency
      real*4        rms        (nr__) ! (mJy) Root mean square flux density
      integer*4     vmin       (nr__) ! (km/s) Minimum velocity covered by observation
      integer*4     vmax       (nr__) ! (km/s) Maximum velocity covered by observation
      real*4        dv         (nr__) ! (km/s) Channel width
      character*10  Tel        (nr__) ! Telescope used (G1)
      integer*4     Epoch      (nr__) ! Date of observation in MMYY format
*Note (1): Where the source position is given in the identification in the
*     format HHMMSS.ss+DDMMSS.s. Note that only in first object was
*     megamaser emission detected (Barvainis & Antonucci, 2005ApJ...628...89B)
*Note (2): From Zakamska et al. (2003, Cat. J/AJ/126/2125) as measured from
*     the [OII]3727 emission line.
*Note (3): From Zakamska et al. (2003, Cat. J/AJ/126/2125). A value >8.48
*     classifies the object as a type-2 QSO.
*Note (4): From Zakamska et al. (2003, Cat. J/AJ/126/2125), if the object is
*     matched within 3". There is no entry if the object was not detected,
*     i.e. <1mJy.

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

C  Declarations for 'table2.dat'	! The 78 galaxies at D>=100kpc with known H_2_O masers

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg      (nr__1) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__1) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*16  Name       (nr__1) ! Source name
      character*8   OName      (nr__1) ! Other name
      character*1   f_Name     (nr__1) ! [ad] Note for NGC 598 (1)
      integer*4     RAh        (nr__1) ! (h) Hour of right ascension (J2000)
      integer*4     RAm        (nr__1) ! (min) Minute of right ascension (J2000)
      real*4        RAs        (nr__1) ! (s) Second of right ascension (J2000)
      character*1   DE_        (nr__1) ! Declination sign (J2000)
      integer*4     DEd        (nr__1) ! (deg) Degree of declination (J2000)
      integer*4     DEm        (nr__1) ! (arcmin) Arcminute of declination (J2000)
      integer*4     DEs        (nr__1) ! (arcsec) Arcsecond of declination (J2000)
      integer*4     cz         (nr__1) ! (km/s) ? Systemic velocity from NED
      character*1   f_cz       (nr__1) ! [z] For SDSS J0804+3607, z=0.66
      real*8        Dist       (nr__1) ! (Mpc) ? Distance (2)
      real*4        LFIR       (nr__1) ! ([Lsun]) ? Far_infrared (FIR) luminosity
*                                  (log(L_FIR_/L_{sun}_)) (3)
      character*1   f_LFIR     (nr__1) ! [bhi] lower limit or missing measurements (4)
      integer*4     Tdust      (nr__1) ! (K) ? Dust temperature (4)(3)
      real*4        LH2O       (nr__1) ! ([Lsun]) H_2_O luminosity (log(L_H_2_O_/L_{sun}_),
*                                  using H_0_=75km/s/Mpc
      character*1   f_LH2O     (nr__1) ! [cef] Note on LH2O computation (5)
      character*14  Mtype      (nr__1) ! Host galaxy morphological type from NED
      character*1   f_Mtype    (nr__1) ! [j] Flag on Mtype (6)
      character*12  Otype      (nr__1) ! Activity type from NED (7)
      character*1   f_Otype    (nr__1) ! [g] Flag on Otype (8)
      character*11  Ref        (nr__1) ! Reference(s) number(s); see refs.dat file
*Note (1): Flag as follows:
*   a = While the detection of two more masers has been claimed by Huchtmeier et
*       al. (1978A&A....64L..21H, 1988A&A...200...26H), we list only the three
*       masers confirmed by Brunthaler et al.  (2006A&A...457..109B).
*   d = The maser luminosity refers to a brief flaring episode.
*Note (2): Using H_0_=75km/s/Mpc. For the 53 of the 78 masers that were
*     included in Henkel et al. (2005A&A...436...75H), we adapt the
*     distances from their table 4. For a few objects, we take distances
*     from the references listed in Column "Ref".
*Note (3): For the determination of L_FIR_ and T_dust_ (60/100um color
*     temperatures), see Wouterloot & Walmsley (1986A&A...168..237W). The
*     IRAS fluxes were taken from Fullmer & Lonsdale (1989, Cat. VII/113)
*     and, for a few sources (NGC 262, NGC 598, IC 0184, NGC 4151, NGC 4258,
*     IRAS F19370-0131, NGC 6323, 3C 403, and AM 2158-380b), from NED.
*Note (4): Flag as follows:
*   b = L_FIR_ and T_dust_ are lower limits as there are no IRAS flux
*       measurements at 12 and 25um.
*   h = There is no IRAS flux measurement at 12um.
*   i = There is no IRAS flux measurement at 100um.
*Note (5): Flag as follows:
*   c = Estimated from Figure 1 of Kondratko et al. (2006, Cat. J/ApJ/652/136)
*       using L_H_2_O_/L_{sun}_=0.023S_total_/(Jy.km/s)*D^2^/Mpc with
*       S_total_={Sigma}(1.06S_peak_*FWHM) (summed over the different
*       components).
*   e = We assume logL_H_2_O_/L_{sun}_=0.9 as total integrated single-dish flux
*       density when including NGC 2146 in Figures 1, 2, and 3.
*   f = Using H_0_=75km/s/Mpc, {Omega}_{Lambda}_=0.73, and {Omega}_M_=0.27.
*Note (6): j = Note that while NED lists "E/S0" as morphological
*     classification of the host galaxy according to Koekemoer et al.,
*     1995Natur.378..697K, Falcke et al. (2000ApJ...530L..13F) favor a
*     classification as a highly inclined spiral galaxy. We use the latter
*     in our statistics in Section 5.
*Note (7): Types as follows:
*   Sy   = Seyfert,
*   L    = LINER,
*   LIRG = luminous-infrared galaxy,
*   SB   = starburst,
*   NLRG = narrow-line radio galaxy,
*   RG   = radio galaxy
*Note (8):
*   g = Note that NED gives "Sy3" as classification, which corresponds to a LINER
*       (Veron-Cetty & Veron 1996, Cat. VII/258).

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

C  Declarations for 'table4.dat'	! Details of observations: radio galaxies

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1    (nr__2) ! (deg) Right Ascension J2000
      real*8        DEdeg_1    (nr__2) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*23  Name_1     (nr__2) ! Source identification
      character*3   Class      (nr__2) ! NED Classification (for table 5 only)
      integer*4     RAh_1      (nr__2) ! (h) NED Hour of Right Ascension (J2000)
      integer*4     RAm_1      (nr__2) ! (min) NED Minute of Right Ascension (J2000)
      real*4        RAs_1      (nr__2) ! (s) NED Second of Right Ascension (J2000)
      character*1   DE__1      (nr__2) ! Sign of the NED Declination (J2000)
      integer*4     DEd_1      (nr__2) ! (deg) NED Degree of Declination (J2000)
      integer*4     DEm_1      (nr__2) ! (arcmin) NED Arcminute of Declination (J2000)
      integer*4     DEs_1      (nr__2) ! (arcsec) NED Arcsecond of Declination (J2000)
      real*4        z_1        (nr__2) ! NED Heliocentric redshift
      real*8        nu_1       (nr__2) ! (MHz) Observed frequency
      real*4        rms_1      (nr__2) ! (mJy) Root mean square flux density
      integer*4     vmin_1     (nr__2) ! (km/s) Minimum velocity covered by observation
      integer*4     vmax_1     (nr__2) ! (km/s) Maximum velocity covered by observation
      real*4        dv_1       (nr__2) ! (km/s) Channel width
      character*10  Tel_1      (nr__2) ! Telescope used (G1)
      integer*4     Epoch_1    (nr__2) ! Date of observation in MMYY format

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

C  Declarations for 'table5.dat'	! Details of observations: miscellaneous sources

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_2    (nr__3) ! (deg) Right Ascension J2000
      real*8        DEdeg_2    (nr__3) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*23  Name_2     (nr__3) ! Source identification
      character*3   Class_1    (nr__3) ! NED Classification (for table 5 only)
      integer*4     RAh_2      (nr__3) ! (h) NED Hour of Right Ascension (J2000)
      integer*4     RAm_2      (nr__3) ! (min) NED Minute of Right Ascension (J2000)
      real*4        RAs_2      (nr__3) ! (s) NED Second of Right Ascension (J2000)
      character*1   DE__2      (nr__3) ! Sign of the NED Declination (J2000)
      integer*4     DEd_2      (nr__3) ! (deg) NED Degree of Declination (J2000)
      integer*4     DEm_2      (nr__3) ! (arcmin) NED Arcminute of Declination (J2000)
      integer*4     DEs_2      (nr__3) ! (arcsec) NED Arcsecond of Declination (J2000)
      real*4        z_2        (nr__3) ! NED Heliocentric redshift
      real*8        nu_2       (nr__3) ! (MHz) Observed frequency
      real*4        rms_2      (nr__3) ! (mJy) Root mean square flux density
      integer*4     vmin_2     (nr__3) ! (km/s) Minimum velocity covered by observation
      integer*4     vmax_2     (nr__3) ! (km/s) Maximum velocity covered by observation
      real*4        dv_2       (nr__3) ! (km/s) Channel width
      character*10  Tel_2      (nr__3) ! Telescope used (G1)
      integer*4     Epoch_2    (nr__3) ! Date of observation in MMYY format

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

C  Declarations for 'refs.dat'	! References for table 2

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

      integer*4     Ref_1      (nr__4) ! Reference number
      character*19  BibCode    (nr__4) ! Bibcode
      character*21  Aut        (nr__4) ! Author's name
      character*18  Com        (nr__4) ! Catalog reference in VizieR

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

C  Loading file 'table1.dat'	! Details of observations: 274 SDSS type-2 AGNs

C  Format for file interpretation

    1 format(
     +  A18,1X,F5.3,1X,F4.2,1X,F7.2,1X,A1,1X,F8.2,1X,F4.1,1X,I5,1X,I4,
     +  1X,F3.1,1X,A10,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,288
        read(1,'(A84)')ar__
        read(ar__,1)
     +  SDSS(i__),z(i__),L_OIII_(i__),F20cm(i__),f_F20cm(i__),nu(i__),
     +  rms(i__),vmin(i__),vmax(i__),dv(i__),Tel(i__),Epoch(i__)
        if(ar__(31:37) .EQ. '') F20cm(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  SDSS(i__),z(i__),L_OIII_(i__),F20cm(i__),f_F20cm(i__),nu(i__),
     +  rms(i__),vmin(i__),vmax(i__),dv(i__),Tel(i__),Epoch(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! The 78 galaxies at D>=100kpc with known H_2_O masers

C  Format for file interpretation

    2 format(
     +  A16,1X,A8,1X,A1,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,
     +  I5,A1,1X,F7.2,1X,F4.1,A1,1X,I3,1X,F4.1,A1,1X,A14,A1,1X,A12,A1,
     +  1X,A11)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,83
        read(1,'(A121)')ar__1
        read(ar__1,2)
     +  Name(i__),OName(i__),f_Name(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),cz(i__),f_cz(i__),
     +  Dist(i__),LFIR(i__),f_LFIR(i__),Tdust(i__),LH2O(i__),
     +  f_LH2O(i__),Mtype(i__),f_Mtype(i__),Otype(i__),f_Otype(i__),
     +  Ref(i__)
        if(ar__1(50:54) .EQ. '') cz(i__) = iNULL__
        if(ar__1(57:63) .EQ. '') Dist(i__) = rNULL__
        if(ar__1(65:68) .EQ. '') LFIR(i__) = rNULL__
        if(ar__1(71:73) .EQ. '') Tdust(i__) = iNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name(i__),OName(i__),f_Name(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),cz(i__),f_cz(i__),
     +  Dist(i__),LFIR(i__),f_LFIR(i__),Tdust(i__),LH2O(i__),
     +  f_LH2O(i__),Mtype(i__),f_Mtype(i__),Otype(i__),f_Otype(i__),
     +  Ref(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Details of observations: radio galaxies

C  Format for file interpretation

    3 format(
     +  A23,1X,A3,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F5.3,1X,
     +  F8.2,1X,F4.1,1X,I5,1X,I4,1X,F3.1,1X,A10,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,148
        read(1,'(A99)')ar__2
        read(ar__2,3)
     +  Name_1(i__),Class(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),z_1(i__),
     +  nu_1(i__),rms_1(i__),vmin_1(i__),vmax_1(i__),dv_1(i__),
     +  Tel_1(i__),Epoch_1(i__)
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  Name_1(i__),Class(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),z_1(i__),
     +  nu_1(i__),rms_1(i__),vmin_1(i__),vmax_1(i__),dv_1(i__),
     +  Tel_1(i__),Epoch_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Details of observations: miscellaneous sources

C  Format for file interpretation

    4 format(
     +  A23,1X,A3,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F5.3,1X,
     +  F8.2,1X,F4.1,1X,I5,1X,I4,1X,F3.1,1X,A10,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,26
        read(1,'(A99)')ar__3
        read(ar__3,4)
     +  Name_2(i__),Class_1(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),
     +  DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),z_2(i__),
     +  nu_2(i__),rms_2(i__),vmin_2(i__),vmax_2(i__),dv_2(i__),
     +  Tel_2(i__),Epoch_2(i__)
        RAdeg_2(i__) = rNULL__
        DEdeg_2(i__) = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
        if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
        if(RAs_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_2(i__)/240.
        if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
        if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
        if(DEs_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_2(i__)/3600.
        if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c    ..............Just test output...........
        write(6,4)
     +  Name_2(i__),Class_1(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),
     +  DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),z_2(i__),
     +  nu_2(i__),rms_2(i__),vmin_2(i__),vmax_2(i__),dv_2(i__),
     +  Tel_2(i__),Epoch_2(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References for table 2

C  Format for file interpretation

    5 format(I2,1X,A19,1X,A21,1X,A18)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,52
        read(1,'(A63)')ar__4
        read(ar__4,5)Ref_1(i__),BibCode(i__),Aut(i__),Com(i__)
c    ..............Just test output...........
        write(6,5)Ref_1(i__),BibCode(i__),Aut(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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