FORTRAN Generation
(/./ftp/cats/J/MNRAS/470/3071)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/470/3071 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-Oct-12
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/MNRAS/470/3071         PAH features of AGN                     (Jensen+, 2017)
*================================================================================
*PAH features within few hundred parsecs of active galactic nuclei.
*    Jensen J., Hoenig S.F., Rakshit S., Alonso-Herrero A., Asmus D., Gandhi P.,
*    Kishimoto M., Smette A., Tristram K.R.W.
*    <Mon. Not. R. Astron. Soc. 470, 3071 (2017)>
*    =2017MNRAS.470.3071J        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Characteristics of our AGN mid-IR spectroscopic
                                 sample

      integer*4 nr__
      parameter (nr__=28)	! Number of records
      character*221 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*12  Object     (nr__) ! Object name
      character*4   Type       (nr__) ! AGN type (1)
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) RAm Right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000)
      integer*4     DEs        (nr__) ! (arcsec) Declination (J2000)
      real*4        z          (nr__) ! Redshift from NED
      real*4        DL         (nr__) ! (Mpc) Luminosity distance (2)
      integer*4     Slit       (nr__) ! (deg) Slit orientation
      real*4        logLX      (nr__) ! ([10-7W]) Absorption-corrected 2-10keV luminosity from
*                                    Asmus et al. (2015MNRAS.454..766A)
      real*4        e_logLX    (nr__) ! ([10-7W]) rms uncertainty on logLX
      real*4        rsub       (nr__) ! (pc) Dust sublimation radius (3)
      real*4        e_rsub     (nr__) ! (pc) rms uncertainty on rsub
      integer*4     Ref        (nr__) ! [1/3] Reference (4)
      character*3   PAH        (nr__) ! [yes/no ] PAH detected ?
      character*11  sp0        (nr__) ! Name of spectrum file extracted slit position
*                                    r=0" in subdirectory sp
      character*13  sp0_4      (nr__) ! Name of spectrum file extracted slit position
*                                    r=0.4" in subdirectory sp
      character*13  sp0_8      (nr__) ! Name of spectrum file extracted slit position
*                                    r=0.8" in subdirectory sp
      character*13  sp1_2      (nr__) ! Name of spectrum file extracted slit position
*                                    r=1.2" in subdirectory sp
      character*13  sp1_6      (nr__) ! Name of spectrum file extracted slit position
*                                    r=1.6" in subdirectory sp
      character*12  sp2        (nr__) ! Name of spectrum file extracted slit position
*                                    r=2" in subdirectory sp
      character*13  sp2_4      (nr__) ! Name of spectrum file extracted slit position
*                                    r=2.4" in subdirectory sp
      character*13  sp2_8      (nr__) ! Name of spectrum file extracted slit position
*                                    r=2.8" in subdirectory sp
      character*13  sp3_2      (nr__) ! Name of spectrum file extracted slit position
*                                    r=3.2" in subdirectory sp
      character*13  sp3_6      (nr__) ! Name of spectrum file extracted slit position
*                                    r=3.6" in subdirectory sp
*Note (1): from Veron-Cetty and Veron (2010A&A...518A..10V, Cat. VII/258)
*Note (2): luminosity distance based on CMB reference frame redshifts from NED
*  and H_0_ = 73 km s^-1^ Mpc^-1^, {Omega}__m = 0.27, and {Omega}_vac_ = 0.73
*Note (3): dust sublimation radius calculated from equation ??? in this work,
*  except for IC4329 A (kishimoto et al., 2011A&A...527A.121K),
*  NGC 3783 (Glass, 1992MNRAS.256p..23G), and
*  Mark 509, NGC 3227, and NGC 4593 (Koshida et al., 2014ApJ...788..159K).
*Note (4): Reference for the VISIR spectroscopic data as follows:
*  1 = This work
*  2 = Honig et al., 2010A&A...515A..23H
*  3 = Burtscher et al., 2013, Cat. J/A+A/558/A149

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

C  Declarations for 'sp/*'	! Individual spectra

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

      real*8        lambda     (nr__1) ! (um) Wavelength
      real*4        S          (nr__1) ! (Jy) Flux density
      real*4        e_S        (nr__1) ! (Jy) rms uncertainty on S

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

C  Loading file 'table2.dat'	! Characteristics of our AGN mid-IR spectroscopic
*                                 sample

C  Format for file interpretation

    1 format(
     +  A12,1X,A4,2X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F6.4,1X,
     +  F5.1,1X,I3,1X,F5.2,1X,F4.2,1X,F5.3,1X,F5.3,1X,I1,1X,A3,1X,A11,
     +  1X,A13,1X,A13,1X,A13,1X,A13,A12,1X,A13,1X,A13,1X,A13,1X,A13)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,28
        read(1,'(A221)')ar__
        read(ar__,1)
     +  Object(i__),Type(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),z(i__),DL(i__),Slit(i__),
     +  logLX(i__),e_logLX(i__),rsub(i__),e_rsub(i__),Ref(i__),
     +  PAH(i__),sp0(i__),sp0_4(i__),sp0_8(i__),sp1_2(i__),sp1_6(i__),
     +  sp2(i__),sp2_4(i__),sp2_8(i__),sp3_2(i__),sp3_6(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)
     +  Object(i__),Type(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),z(i__),DL(i__),Slit(i__),
     +  logLX(i__),e_logLX(i__),rsub(i__),e_rsub(i__),Ref(i__),
     +  PAH(i__),sp0(i__),sp0_4(i__),sp0_8(i__),sp1_2(i__),sp1_6(i__),
     +  sp2(i__),sp2_4(i__),sp2_8(i__),sp3_2(i__),sp3_6(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 'sp/*'	! Individual spectra

C  Format for file interpretation

    2 format(F8.5,2X,E12.10,2X,E11.10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sp/*')
      write(6,*) '....Loading file: sp/*'
      do i__=1,250
        read(1,'(A35)')ar__1
        read(ar__1,2)lambda(i__),S(i__),e_S(i__)
c    ..............Just test output...........
        write(6,2)lambda(i__),S(i__),e_S(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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