FORTRAN Generation
(/./ftp/cats/J/ApJ/614/91)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/614/91 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-Apr-18
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/614/91       Black hole mass and accretion rate of AGNs        (Wu+, 2004)
*================================================================================
*Black hole mass and accretion rate of active galactic nuclei with double-peaked
*broad emission lines.
*    Wu X.-B., Liu F.K.
*   <Astrophys. J., 614, 91-100 (2004)>
*   =2004ApJ...614...91W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Data of 116 double-peaked broad line AGNs in the
                              SDSS sample

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

      character*19  SDSS        ! SDSS designation (JHHMMSS.ss+DDMMSS.s)
      character*10  sSDSS       ! Short SDSS designation
      real*4        z           ! Redshift
      integer*4     FWHM        ! (km/s) ? Full width at half maximum
      real*4        logL        ! ([10-7W]) Log of the 5100{AA} luminosity [erg/s]
      real*4        logM        ! ([solMass]) ? Log of the black hole mass
      real*8        log_dM_dt   ! ([solMass/yr]) ? Log of the accretion rate
      real*4        Sp_Index    ! ? Optical-X-ray spectra index
      integer*4     PeakSep     ! (km/s) ? Peak separation

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

C  Declarations for 'table2.dat'	! Data of 26 double-peaked broad-line AGNs in the
                              radio-loud AGN sample

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

      character*15  Name        ! AGN Name
      real*4        z_1         ! Redshift
      real*4        Vmag        ! (mag) V-band magnitude
      real*4        AV          ! (mag) Galactic extinction
      real*4        SF          ! Starlight fraction (1)
      integer*4     FWHM_1      ! (km/s) Full width at half maximum
      real*4        logL_1      ! ([10-7W]) Log of the 5100{AA} luminosity [erg.s]
      real*4        logM_1      ! ([solMass]) Log of the black hole mass
      real*4        log_dM_dt_1 ! ([solMass/yr]) Log of the accretion rate
      real*4        Sp_Index_1  ! ? Optical-X-ray spectral index
*Note (1): Starlight fraction values were taken from Eracleous & Halpern
*          (1994ApJS...90....1E, 2003 Cat. <J/ApJ/599/886>), except that a value
*          of 0.9 instead of 1 was adopted for MS 0450.3-1817 and Arp 102B.

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

C  Loading file 'table1.dat'	! Data of 116 double-peaked broad line AGNs in the
*                              SDSS sample

C  Format for file interpretation

    1 format(
     +  5X,A19,1X,A10,1X,F6.4,1X,I5,1X,F5.2,1X,F5.3,1X,F7.4,1X,F3.1,
     +  1X,I5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,116
        read(1,'(A78)')ar__
        read(ar__,1)
     +  SDSS,sSDSS,z,FWHM,logL,logM,log_dM_dt,Sp_Index,PeakSep
        if(ar__(44:48) .EQ. '') FWHM = iNULL__
        if(ar__(56:60) .EQ. '') logM = rNULL__
        if(ar__(62:68) .EQ. '') log_dM_dt = rNULL__
        if(ar__(70:72) .EQ. '') Sp_Index = rNULL__
        if(ar__(74:78) .EQ. '') PeakSep = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  SDSS,sSDSS,z,FWHM,logL,logM,log_dM_dt,Sp_Index,PeakSep
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Data of 26 double-peaked broad-line AGNs in the
*                              radio-loud AGN sample

C  Format for file interpretation

    2 format(
     +  A15,1X,F5.3,3X,F5.2,3X,F5.3,3X,F4.2,4X,I5,3X,F5.2,3X,F5.3,3X,
     +  F6.3,2X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,26
        read(1,'(A86)')ar__1
        read(ar__1,2)
     +  Name,z_1,Vmag,AV,SF,FWHM_1,logL_1,logM_1,log_dM_dt_1,
     +  Sp_Index_1
        if(ar__1(81:86) .EQ. '') Sp_Index_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name,z_1,Vmag,AV,SF,FWHM_1,logL_1,logM_1,log_dM_dt_1,
     +  Sp_Index_1
c    .......End.of.Just test output...........
      end do
      close(1)

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