Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/426/2522 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-Oct-05
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/426/2522 FeK lines in Seyfert 1 galaxies (Patrick+, 2012)
*================================================================================
*A Suzaku survey of Fe K lines in Seyfert 1 active galactic nuclei.
* Patrick A.R., Reeves J.N., Porquet D., Markowitz A.G., Braito V.,
* Lobban A.P.
* <Mon. Not. R. Astron. Soc., 426, 2522-2565 (2012)>
* =2012MNRAS.426.2522P
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! The Suzaku Seyfert sample
integer*4 nr__
parameter (nr__=46) ! Number of records
character*58 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*19 Object ! Source name
integer*4 RAh ! (h) Right ascension (J2000)
integer*4 RAm ! (min) Right ascension (J2000)
real*4 RAs ! (s) Right ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
real*4 DEs ! (arcsec) Declination (J2000)
real*4 z ! Redshift
real*4 NH ! (10+22cm-2) Galactic H column density
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Broad Gaussian parametrisation of FeK region in
addition to the baseline model
integer*4 nr__1
parameter (nr__1=57) ! Number of records
character*92 ar__1 ! Full-size record
character*18 Object_1 ! Source name ["Mrk 355" was corrected into
* into "Mrk 335" at CDS]
character*1 n_Object ! [b] Multiple observations (1)
real*4 lineE ! (keV) ? Line energy (2)
real*4 E_lineE ! (keV) ? Error on lineE (upper value)
real*4 e_lineE_1 ! (keV) ? Error on lineE (lower value)
character*1 l_sigmaB ! Limit flag on signaB
real*4 sigmaB ! (keV) ? Broad line width ({sigma})
real*4 E_sigmaB ! (keV) ? Error on sigmaB (upper value)
real*4 e_sigmaB_1 ! (keV) ? Error on sigmaB (lower value)
character*1 l_EWB ! Limit flag on EWB
integer*4 EWB ! (eV) ? Broad line equivalent width
integer*4 E_EWB ! (eV) ? Error on EWB (upper value)
integer*4 e_EWB_1 ! (eV) ? Error on EWB (lower value)
character*1 l_Flux ! Limit flag on Flux
real*4 Flux ! (10-5/cm2/s) ?=- Flux
real*4 E_Flux ! (10-5/cm2/s) ?=- Error on Flux (upper value)
real*4 e_Flux_1 ! (10-5/cm2/s) ?=- Error on Flux (lower value)
integer*4 Dchi2 ! ? {Delta}{chi}^2^ value
character*1 Fe25 ! [X] Flag for FeXXV emission
character*1 Fe26 ! [X] Flag for FeXXVI emission
*Note (1): Parameters other than normalisation tied between multiple
* observations, all are tied in NGC 5506.
*Note (2): blank indicates that no broad Gaussian can be fit i.e. no
* discernible reduction in {chi}^2^ whatsoever.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Summary of RELLINE fits to objects in which some
statistical improvement is made.
Line energy fixed at 6.4keV
integer*4 nr__2
parameter (nr__2=45) ! Number of records
character*120 ar__2 ! Full-size record
character*18 Object_2 ! Name
character*1 n_Object_1 ! [c] Note on Object (1)
character*1 l_EW ! Limit flag on EW
integer*4 EW ! (eV) ? Equivalent width (lineE=6.4keV)
integer*4 E_EW ! (eV) ? Error on EW (upper value)
integer*4 e_EW_1 ! (eV) ? Error on EW (lower value)
character*1 l_q ! Limit flag on q
real*4 q ! ?=- Average emissivity index of the
* accretion disk (lineE=6.4keV)
real*4 E_q ! ? Error on q (upper value)
real*4 e_q_1 ! ? Error on q (lower value)
character*2 n_q ! [*d ] Note on q (1)
character*1 l_a ! Limit flag on a
real*4 a ! ? Black home spin parameter a (lineE=6.4keV)
real*4 E_a ! ? Error on a (upper value)
real*4 e_a_1 ! ? Error on a (lower value)
character*1 l_i ! Limit flag on i
integer*4 i ! (deg) ? Inclination of the accretion disk
* (lineE=6.4keV)
integer*4 E_i ! (deg) ? Error on i (upper value)
integer*4 e_i_1 ! (deg) ? Error on i (lower value)
character*1 l_Flux_1 ! Limit flag on Flux
real*4 Flux_1 ! (10-5/cm2/s) ?=- Flux, if spin is frozen at maximal
* (a=0.998) and the inner radius is allowed
* to vary away from R_ISCO_ (innermost stable
* circular orbit of the accretion disk)
real*4 E_Flux_2 ! (10-5/cm2/s) ?=- Error on Flux (upper value)
real*4 e_Flux_3 ! (10-5/cm2/s) ?=- Error on Flux (lower value)
character*1 l_Rin ! Limit flag on Rin
integer*4 Rin ! ? Inner radius of emission quoted as an
* alternative to the spin parameter, in
* units of R_g_
integer*4 E_Rin ! ? Error on Rin (upper value)
integer*4 e_Rin_1 ! ? Error on Rin (lower value)
character*1 Fe25_1 ! [X] Flag for FeXXV emission
character*1 Fe26_1 ! [X] Flag for FeXXVI emission
integer*4 Dchi2_1 ! ? {Delta}{chi}^2^ value (a negative value
* indicates a fit improvement)
real*4 chi2 ! ? {chi}^2^ value
integer*4 chi2b ! ? Second value of {chi}^2^
*Note (1): Notes as follows:
* c = Relline component is only employed in the 2006 of Mrk 766 observation
* d = Emissivity frozen at best-fit value from Patrick et al.
* (2011MNRAS.416.2725P)
* * = denotes a frozen parameter
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tableb1.dat' ! Summary of observations for the objects in
the sample
integer*4 nr__3
parameter (nr__3=204) ! Number of records
character*89 ar__3 ! Full-size record
character*18 Object_3 ! Name
character*6 Miss ! Mission name
character*3 Inst ! Instrument (1)
character*10 Date ! ("YYYY-MM-DD") Observation date
integer*4 Exp ! (s) ?=- Exposure time
real*4 CR ! (ct/s) Count rate (1)
real*4 e_CR ! (ct/s) rms uncertainty on CR
real*4 Flux_2 ! (10-14W/m2) X-ray flux, in 10^-11^erg/cm^2^/s (1)
integer*4 ObsID ! ? ObsID
integer*4 Nct ! (ct) ? Number of counts
*Note (1): The instruments are:
* XIS = Suzaku X-ray Image Spectrometer (2-10keV)
* HXD = Suzaku Hard X-ray Detector (15-50keV)
* BAT = Swift Burst Alert (20-100keV), from the 58-month BAT catalogue
* by Baumgartner et al. 2010 (ApJS, submitted)
C=============================================================================
C Loading file 'table1.dat' ! The Suzaku Seyfert sample
C Format for file interpretation
1 format(
+ A19,2X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.4,1X,F6.4)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,46
read(1,'(A58)')ar__
read(ar__,1)Object,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,NH
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)Object,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,NH
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Broad Gaussian parametrisation of FeK region in
* addition to the baseline model
C Format for file interpretation
2 format(
+ A18,A1,1X,F4.2,1X,F4.2,1X,F4.2,1X,A1,F5.3,1X,F5.3,1X,F5.3,1X,
+ A1,I3,1X,I3,1X,I3,1X,A1,F5.2,1X,F4.2,1X,F4.2,1X,I4,1X,A1,1X,A1)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,57
read(1,'(A92)')ar__1
read(ar__1,2)
+ Object_1,n_Object,lineE,E_lineE,e_lineE_1,l_sigmaB,sigmaB,
+ E_sigmaB,e_sigmaB_1,l_EWB,EWB,E_EWB,e_EWB_1,l_Flux,Flux,
+ E_Flux,e_Flux_1,Dchi2,Fe25,Fe26
if(ar__1(21:24) .EQ. '') lineE = rNULL__
if(ar__1(26:29) .EQ. '') E_lineE = rNULL__
if(ar__1(31:34) .EQ. '') e_lineE_1 = rNULL__
if(ar__1(37:41) .EQ. '') sigmaB = rNULL__
if(ar__1(43:47) .EQ. '') E_sigmaB = rNULL__
if(ar__1(49:53) .EQ. '') e_sigmaB_1 = rNULL__
if(ar__1(56:58) .EQ. '') EWB = iNULL__
if(ar__1(60:62) .EQ. '') E_EWB = iNULL__
if(ar__1(64:66) .EQ. '') e_EWB_1 = iNULL__
if (idig(ar__1(69:73)).EQ.0) Flux = rNULL__
if (idig(ar__1(75:78)).EQ.0) E_Flux = rNULL__
if (idig(ar__1(80:83)).EQ.0) e_Flux_1 = rNULL__
if(ar__1(85:88) .EQ. '') Dchi2 = iNULL__
c ..............Just test output...........
write(6,2)
+ Object_1,n_Object,lineE,E_lineE,e_lineE_1,l_sigmaB,sigmaB,
+ E_sigmaB,e_sigmaB_1,l_EWB,EWB,E_EWB,e_EWB_1,l_Flux,Flux,
+ E_Flux,e_Flux_1,Dchi2,Fe25,Fe26
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Summary of RELLINE fits to objects in which some
* statistical improvement is made.
* Line energy fixed at 6.4keV
C Format for file interpretation
3 format(
+ A18,A1,A1,I3,1X,I2,1X,I2,1X,A1,F3.1,1X,F3.1,1X,F3.1,A2,1X,A1,
+ F4.2,1X,F4.2,1X,F4.2,1X,A1,I2,1X,I2,1X,I2,1X,A1,F5.2,1X,F4.2,
+ 1X,F4.2,1X,A1,I3,1X,I2,1X,I2,2X,A1,1X,A1,1X,I4,1X,F6.1,1X,I4)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,45
read(1,'(A120)')ar__2
read(ar__2,3)
+ Object_2,n_Object_1,l_EW,EW,E_EW,e_EW_1,l_q,q,E_q,e_q_1,n_q,
+ l_a,a,E_a,e_a_1,l_i,i,E_i,e_i_1,l_Flux_1,Flux_1,E_Flux_2,
+ e_Flux_3,l_Rin,Rin,E_Rin,e_Rin_1,Fe25_1,Fe26_1,Dchi2_1,chi2,
+ chi2b
if(ar__2(21:23) .EQ. '') EW = iNULL__
if(ar__2(25:26) .EQ. '') E_EW = iNULL__
if(ar__2(28:29) .EQ. '') e_EW_1 = iNULL__
if (idig(ar__2(32:34)).EQ.0) q = rNULL__
if(ar__2(36:38) .EQ. '') E_q = rNULL__
if(ar__2(40:42) .EQ. '') e_q_1 = rNULL__
if(ar__2(47:50) .EQ. '') a = rNULL__
if(ar__2(52:55) .EQ. '') E_a = rNULL__
if(ar__2(57:60) .EQ. '') e_a_1 = rNULL__
if(ar__2(63:64) .EQ. '') i = iNULL__
if(ar__2(66:67) .EQ. '') E_i = iNULL__
if(ar__2(69:70) .EQ. '') e_i_1 = iNULL__
if (idig(ar__2(73:77)).EQ.0) Flux_1 = rNULL__
if (idig(ar__2(79:82)).EQ.0) E_Flux_2 = rNULL__
if (idig(ar__2(84:87)).EQ.0) e_Flux_3 = rNULL__
if(ar__2(90:92) .EQ. '') Rin = iNULL__
if(ar__2(94:95) .EQ. '') E_Rin = iNULL__
if(ar__2(97:98) .EQ. '') e_Rin_1 = iNULL__
if(ar__2(105:108) .EQ. '') Dchi2_1 = iNULL__
if(ar__2(110:115) .EQ. '') chi2 = rNULL__
if(ar__2(117:120) .EQ. '') chi2b = iNULL__
c ..............Just test output...........
write(6,3)
+ Object_2,n_Object_1,l_EW,EW,E_EW,e_EW_1,l_q,q,E_q,e_q_1,n_q,
+ l_a,a,E_a,e_a_1,l_i,i,E_i,e_i_1,l_Flux_1,Flux_1,E_Flux_2,
+ e_Flux_3,l_Rin,Rin,E_Rin,e_Rin_1,Fe25_1,Fe26_1,Dchi2_1,chi2,
+ chi2b
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tableb1.dat' ! Summary of observations for the objects in
* the sample
C Format for file interpretation
4 format(
+ A18,1X,A6,1X,A3,1X,A10,1X,I6,2X,E7.3,1X,E7.3,1X,F6.3,1X,I9,1X,
+ I7)
C Effective file loading
open(unit=1,status='old',file=
+'tableb1.dat')
write(6,*) '....Loading file: tableb1.dat'
do i__=1,204
read(1,'(A89)')ar__3
read(ar__3,4)
+ Object_3,Miss,Inst,Date,Exp,CR,e_CR,Flux_2,ObsID,Nct
if (Exp .EQ. 45) Exp = iNULL__
if(ar__3(73:81) .EQ. '') ObsID = iNULL__
if(ar__3(83:89) .EQ. '') Nct = iNULL__
c ..............Just test output...........
write(6,4)
+ Object_3,Miss,Inst,Date,Exp,CR,e_CR,Flux_2,ObsID,Nct
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end
C Locate position of first digit in string; or return 0
integer function idig(c)
character*(*) c
character*1 c1
integer lc,i
lc=len(c)
idig=0
do i=1,lc
if(c(i:i).ne.' ') go to 1
end do
1 if(i.gt.lc) return
c1=c(i:i)
if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
if(i.gt.lc) return
c1=c(i:i)
if(c1.ge.'0'.and.c1.le.'9') idig=i
return
end