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 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 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      (nr__) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*8   Name       (nr__) ! AGN name
      integer*4     RAh        (nr__) ! (h) Hour of right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Minute of right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Second of right ascension (J2000)
      character*1   DE_        (nr__) ! Sign of declination (J2000)
      integer*4     DEd        (nr__) ! (deg) Degree of declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of declination (J2000)
      integer*4     DEs        (nr__) ! (arcsec) Arcsecond of declination (J2000)
      real*4        z          (nr__) ! [0.0039/0.04] Redshift
      integer*4     Nsp        (nr__) ! [17/48] Number of spectra
      real*4        Cad        (nr__) ! [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     (nr__1) ! AGN name
      real*8        JD         (nr__1) ! (d) [46.8/202] Julian date; JD-2457700
      real*4        F5100      (nr__1) ! (10-15cW/m2/nm) [2.3/14.8] Continuum flux at 5100{AA} (1)
      real*4        e_F5100    (nr__1) ! (10-15cW/m2/nm) [0.004/0.3] Uncertainty in F5100 (1)
      real*4        FHb        (nr__1) ! (10-13mW/m2) [1.29/5.6] H{beta} line flux (2)
      real*4        e_FHb      (nr__1) ! (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     (nr__2) ! AGN name
      integer*4     vFWHM      (nr__2) ! (km/s) [4032/6191] FWHM (V_FWHM_) from mean
*                                      spectra
      integer*4     e_vFWHM    (nr__2) ! (km/s) [45/78] vFWHM uncertainty
      integer*4     sig        (nr__2) ! (km/s) [3370/3505] Line dispersion
*                                      ({sigma}_line_) from mean spectra
      integer*4     e_sig      (nr__2) ! (km/s) [16/33] sig uncertainty
      integer*4     vFWHMrms   (nr__2) ! (km/s) [2476/5087] FWHM (V_FWHM_) from rms spectra
      integer*4     e_vFWHMrms (nr__2) ! (km/s) [21/27] vFWHMrms uncertainty
      integer*4     sigrms     (nr__2) ! (km/s) [1502/2092] Line dispersion
*                                      ({sigma}_line_) from rms spectra
      integer*4     e_sigrms   (nr__2) ! (km/s) [18/24] sigrms uncertainty
      real*4        MVP        (nr__2) ! (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      (nr__2) ! (10+7Msun) [0.12/1.86] Lower uncertainty on MVP
      real*4        E_MVP_1    (nr__2) ! (10+7Msun) [0.12/1.67] Upper uncertainty on MVP
      real*4        MBH1       (nr__2) ! (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     (nr__2) ! (10+7Msun) [0.14/2.08] Lower uncertainty on MBH1
      real*4        E_MBH1_1   (nr__2) ! (10+7Msun) [0.14/1.87] Upper uncertainty on MBH1
      real*4        MBH4       (nr__2) ! (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     (nr__2) ! (10+7Msun) [0.2/1.77] Lower uncertainty on MBH4
      real*4        E_MBH4_1   (nr__2) ! (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(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),z(i__),Nsp(i__),Cad(i__)
        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,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),z(i__),Nsp(i__),Cad(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 '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(i__),JD(i__),F5100(i__),e_F5100(i__),FHb(i__),
     +  e_FHb(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),JD(i__),F5100(i__),e_F5100(i__),FHb(i__),
     +  e_FHb(i__)
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(i__),vFWHM(i__),e_vFWHM(i__),sig(i__),e_sig(i__),
     +  vFWHMrms(i__),e_vFWHMrms(i__),sigrms(i__),e_sigrms(i__),
     +  MVP(i__),e_MVP(i__),E_MVP_1(i__),MBH1(i__),e_MBH1(i__),
     +  E_MBH1_1(i__),MBH4(i__),e_MBH4(i__),E_MBH4_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  Name_2(i__),vFWHM(i__),e_vFWHM(i__),sig(i__),e_sig(i__),
     +  vFWHMrms(i__),e_vFWHMrms(i__),sigrms(i__),e_sigrms(i__),
     +  MVP(i__),e_MVP(i__),E_MVP_1(i__),MBH1(i__),e_MBH1(i__),
     +  E_MBH1_1(i__),MBH4(i__),e_MBH4(i__),E_MBH4_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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