FORTRAN Generation
(/./ftp/cats/J/ApJ/905/77)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/905/77 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 2026-May-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/905/77   Monitoring AGNs with H{beta} Asymmetry. II.   (Brotherton+, 2020)
*================================================================================
*Monitoring AGNs with H{beta} Asymmetry (MAHA).
*II. Reverberation mapping of three Seyfert galaxies historically displaying
*H{beta} profiles with changing asymmetry: Mrk 79, NGC 3227, and Mrk 841.
*    Brotherton M.S., Du P., Xiao M., Bao D.-W., Zhao B., McLane J.N.,
*    Olson K.A., Wang K., Huang Z.-P., Hu C., Kasper D.H., Chick W.T.,
*    Nguyen M.L., Maithil J., Hand D., Li Y.-R., Ho L.C., Bai J.-M., Bian W.-H.,
*    Wang J.-M., the MAHA Collaboration.
*   <Astrophys. J., 905, 77 (2020)>
*   =2020ApJ...905...77B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Targets

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

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

      character*8   Name        ! AGN name
      integer*4     RAh         ! (h) Hour of right ascension (J2000)
      integer*4     RAm         ! (min) Minute of right ascension (J2000)
      real*4        RAs         ! (s) Second of right ascension (J2000)
      character*1   DE_         ! Sign of declination (J2000)
      integer*4     DEd         ! (deg) Degree of declination (J2000)
      integer*4     DEm         ! (arcmin) Arcminute of declination (J2000)
      integer*4     DEs         ! (arcsec) Arcsecond of declination (J2000)
      real*4        z           ! [0.0039/0.04] Redshift
      integer*4     Nsp         ! [17/48] Number of spectra
      real*4        Cad         ! [3.1/6.4] Average cadence

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

C  Declarations for 'table3.dat'	! Light curves

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

      character*8   Name_1      ! AGN name
      real*8        JD          ! (d) [46.8/202] Julian date; JD-2457700
      real*4        F5100       ! (10-15cW/m2/nm) [2.3/14.8] Continuum flux at 5100{AA} (1)
      real*4        e_F5100     ! (10-15cW/m2/nm) [0.004/0.3] Uncertainty in F5100 (1)
      real*4        FHb         ! (10-13mW/m2) [1.29/5.6] H{beta} line flux (2)
      real*4        e_FHb       ! (10-13mW/m2) [0.006/0.1] Uncertainty in FHb (2)
*Note (1): In units of 10^-15^erg/s/cm^2^/Angstroms.
*Note (2): In units of 10^-13^erg/s/cm^2^.

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

C  Declarations for 'table5.dat'	! *H{beta} width measurements and black hole masses

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

      character*8   Name_2      ! AGN name
      integer*4     vFWHM       ! (km/s) [4032/6191] FWHM (V_FWHM_) from mean
*                                      spectra
      integer*4     e_vFWHM     ! (km/s) [45/78] vFWHM uncertainty
      integer*4     sig         ! (km/s) [3370/3505] Line dispersion
*                                      ({sigma}_line_) from mean spectra
      integer*4     e_sig       ! (km/s) [16/33] sig uncertainty
      integer*4     vFWHMrms    ! (km/s) [2476/5087] FWHM (V_FWHM_) from rms spectra
      integer*4     e_vFWHMrms  ! (km/s) [21/27] vFWHMrms uncertainty
      integer*4     sigrms      ! (km/s) [1502/2092] Line dispersion
*                                      ({sigma}_line_) from rms spectra
      integer*4     e_sigrms    ! (km/s) [18/24] sigrms uncertainty
      real*4        MVP         ! (10+7Msun) [0.91/8.19] Virial product M_VP_ measured
*                                      from the rms spectrum,
*                                      R_H{beta}_.V^2^_FWHM_/G
      real*4        e_MVP       ! (10+7Msun) [0.12/1.86] Lower uncertainty on MVP
      real*4        E_MVP_1     ! (10+7Msun) [0.12/1.67] Upper uncertainty on MVP
      real*4        MBH1        ! (10+7Msun) [1.02/9.17] Black hole mass (M_{dot}_)
*                                      from the rms spectra,
*                                      1.12xR_H{beta}_.V^2^_FWHM_/G (1)
      real*4        e_MBH1      ! (10+7Msun) [0.14/2.08] Lower uncertainty on MBH1
      real*4        E_MBH1_1    ! (10+7Msun) [0.14/1.87] Upper uncertainty on MBH1
      real*4        MBH4        ! (10+7Msun) [1.5/6.19] Black hole mass (M_{dot}_) from
*                                      the rms spectra,
*                                      4.47xR_H{beta}_.{sigma}^2^_line_/G (1)
      real*4        e_MBH4      ! (10+7Msun) [0.2/1.77] Lower uncertainty on MBH4
      real*4        E_MBH4_1    ! (10+7Msun) [0.2/1.59] Upper uncertainty on MBH4
*Note (1): The black hole masses (M_{dot}_) are calculated from the rms spectra
*    using the f_BLR_ factors from Woo+ (2015ApJ...801...38W).

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

C  Loading file 'table1.dat'	! Targets

C  Format for file interpretation

    1 format(
     +  A8,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F6.4,1X,I2,1X,
     +  F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,3
        read(1,'(A43)')ar__
        read(ar__,1)Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,Nsp,Cad
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,Nsp,Cad
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Light curves

C  Format for file interpretation

    2 format(A8,1X,F8.4,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,105
        read(1,'(A42)')ar__1
        read(ar__1,2)Name_1,JD,F5100,e_F5100,FHb,e_FHb
c    ..............Just test output...........
        write(6,2)Name_1,JD,F5100,e_F5100,FHb,e_FHb
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! *H{beta} width measurements and black hole masses

C  Format for file interpretation

    3 format(
     +  A8,1X,I4,1X,I2,1X,I4,1X,I2,1X,I4,1X,I2,1X,I4,1X,I2,1X,F4.2,1X,
     +  F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,3
        read(1,'(A85)')ar__2
        read(ar__2,3)
     +  Name_2,vFWHM,e_vFWHM,sig,e_sig,vFWHMrms,e_vFWHMrms,sigrms,
     +  e_sigrms,MVP,e_MVP,E_MVP_1,MBH1,e_MBH1,E_MBH1_1,MBH4,e_MBH4,
     +  E_MBH4_1
c    ..............Just test output...........
        write(6,3)
     +  Name_2,vFWHM,e_vFWHM,sig,e_sig,vFWHMrms,e_vFWHMrms,sigrms,
     +  e_sigrms,MVP,e_MVP,E_MVP_1,MBH1,e_MBH1,E_MBH1_1,MBH4,e_MBH4,
     +  E_MBH4_1
c    .......End.of.Just test output...........
      end do
      close(1)

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