Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/392/1509 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 2024-Mar-28 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/392/1509 Distribution of AGNs in galaxy clusters (Gilmour+, 2009) *================================================================================ *The distribution of active galactic nuclei in a large sample of galaxy clusters. * Gilmour R., Best P., Almaini O. * <Mon. Not. R. Astron. Soc., 392, 1509-1531 (2009)> * =2009MNRAS.392.1509G C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Final cluster sample split by morphological class integer*4 nr__ parameter (nr__=182) ! Number of records character*136 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*2 Mcl (nr__) ! Morphological class code (1) character*24 Cluster (nr__) ! Cluster name (2) character*14 ObsID (nr__) ! Chandra observation identification number(s) integer*4 RAh (nr__) ! (h) Right ascension (J2000) integer*4 RAm (nr__) ! (min) Right ascension (J2000) real*4 RAs (nr__) ! (s) Right ascension (J2000) character*1 DE_ (nr__) ! Declination sign (J2000) integer*4 DEd (nr__) ! (deg) Declination (J2000) integer*4 DEm (nr__) ! (arcmin) Declination (J2000) real*4 DEs (nr__) ! (arcsec) Declination (J2000) character*4 CCD (nr__) ! ACIS detector or CCDs used real*4 Exp (nr__) ! (ks) Good exposure time, after filtering * (average over the selected chips) real*4 FX (nr__) ! (fW/m2) ?=- Observed X-ray flux in 0.5-8keV band (4) real*4 LX1 (nr__) ! (10+37W) ?=- Rest frame 0.5-8keV luminosity (4) real*4 LX2 (nr__) ! (10+37W) ?=- Rest frame 0.1-2.4keV luminosity (4) real*4 rchi2 (nr__) ! ?=- Reduced chi^2^ value real*4 z (nr__) ! Redshift character*5 r_z (nr__) ! References for redshift, in refs.dat file character*1 n_z (nr__) ! [1/3] Note on z (3) real*4 Excess (nr__) ! Excess number of sources in the central 1Mpc * (compared to the prediction) real*4 E_Excess (nr__) ! Error on Excess (upper value) real*4 e_Excess_1 (nr__) ! Error on Excess (lower value) real*4 Centre (nr__) ! ([10-7W]) ? log luminosity of any source detected * within 25 kpc of the cluster centre integer*4 n_Centre (nr__) ! [2]? Note on Centre (3) *Note (1): Morphological classes code explained in section 3.2.1: * 0 = no cluster emission visible * 1 = relaxed cluster (may be elliptical or have edges) * 2 = disturbed cluster (disturbance must be joined to the cluster * by visible emission) * 3 = merging cluster (double-peaked system with sub-cluster > 20% of * the main cluster) * 4 = two clusters (a second cluster but not clearly associated) * 1c = morphology 1 (relaxed cluster) with a small contamination (<20%) * 2c = morphology 2 (disturbed cluster) with a small contamination (<20%) * hz = High redshift (proto)clusters *Note (2): Name of cluster in the NED. If more than one cluster name exists, * then the nearest is given. If there is no cluster within 2 arcmin, * then the nearest object name at the cluster redshift is given. *Note (3): Notes as follows: * 1 = NED gives z=0.35, but the X-ray spectral data have a far better * fit with z=0.38 * 2 = this cluster has two X-ray point sources within 25kpc, which * overlap slightly. The second, at 10kpc, has log luminosity ~43.72 * 3 = NED gives two redshifts, but only one is given in the paper which * NED refers to *Note (4): X-ray flux in 10^-12^erg/cm^2^/s, and luminosities in 10^44^erg/s c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Properties of sources detected in the cluster fields integer*4 nr__1 parameter (nr__1=9833) ! Number of records character*105 ar__1 ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_1 (nr__1) ! (deg) Right Ascension J2000 real*8 DEdeg_1 (nr__1) ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*24 Cluster_1 (nr__1) ! Cluster name character*16 CXOGBA (nr__1) ! Source name (JHHMMSS.s+DDMMSS) integer*4 RAh_1 (nr__1) ! (h) Right ascension (J2000) integer*4 RAm_1 (nr__1) ! (min) Right ascension (J2000) real*4 RAs_1 (nr__1) ! (s) Right ascension (J2000) character*1 DE__1 (nr__1) ! Declination sign (J2000) integer*4 DEd_1 (nr__1) ! (deg) Declination (J2000) integer*4 DEm_1 (nr__1) ! (arcmin) Declination (J2000) real*4 DEs_1 (nr__1) ! (arcsec) Declination (J2000) real*8 Ct (nr__1) ! (ct) Net Counts real*8 FX_1 (nr__1) ! (aW/m2) X-ray flux (1) real*4 Sig (nr__1) ! Source significance (2) real*4 HR (nr__1) ! ?=-1.00 Hardness ratio (3) real*4 e_HR (nr__1) ! ?=0.00 rms uncertainty on HR *Note (1): assuming a spectrum with {Gamma}=1.7; expressed in 10^-15^erg/cm^2^/s *Note (2): Sig=Counts/{sigma}_bg_, where {sigma}_bg_ is he error on the * calculated background counts in the annulus *Note (3): Hardness ratio, (H-S)/(H+S), where H(2-8keV) and S(0.5-2keV) are * set to 0 for detections with significance <3 in that band. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'refs.dat' ! References integer*4 nr__2 parameter (nr__2=81) ! Number of records character*54 ar__2 ! Full-size record integer*4 Ref (nr__2) ! Reference code character*19 BibCode (nr__2) ! BibCode character*31 Aut (nr__2) ! Author's name C============================================================================= C Loading file 'table2.dat' ! Final cluster sample split by morphological class C Format for file interpretation 1 format( + A2,1X,A24,1X,A14,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1, + 1X,A4,F5.1,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.3,1X,A5,1X, + A1,1X,F5.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,I1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,182 read(1,'(A136)')ar__ read(ar__,1) + Mcl(i__),Cluster(i__),ObsID(i__),RAh(i__),RAm(i__),RAs(i__), + DE_(i__),DEd(i__),DEm(i__),DEs(i__),CCD(i__),Exp(i__),FX(i__), + LX1(i__),LX2(i__),rchi2(i__),z(i__),r_z(i__),n_z(i__), + Excess(i__),E_Excess(i__),e_Excess_1(i__),Centre(i__), + n_Centre(i__) if (idig(ar__(77:81)).EQ.0) FX(i__) = rNULL__ if (idig(ar__(83:87)).EQ.0) LX1(i__) = rNULL__ if (idig(ar__(89:93)).EQ.0) LX2(i__) = rNULL__ if (idig(ar__(95:98)).EQ.0) rchi2(i__) = rNULL__ if(ar__(130:134) .EQ. '') Centre(i__) = rNULL__ if(ar__(136:136) .EQ. '') n_Centre(i__) = iNULL__ 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) + Mcl(i__),Cluster(i__),ObsID(i__),RAh(i__),RAm(i__),RAs(i__), + DE_(i__),DEd(i__),DEm(i__),DEs(i__),CCD(i__),Exp(i__),FX(i__), + LX1(i__),LX2(i__),rchi2(i__),z(i__),r_z(i__),n_z(i__), + Excess(i__),E_Excess(i__),e_Excess_1(i__),Centre(i__), + n_Centre(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 'table4.dat' ! Properties of sources detected in the cluster * fields C Format for file interpretation 2 format( + A24,8X,A16,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F7.1, + 1X,F7.2,1X,F6.1,1X,F5.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,9833 read(1,'(A105)')ar__1 read(ar__1,2) + Cluster_1(i__),CXOGBA(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__), + DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Ct(i__),FX_1(i__), + Sig(i__),HR(i__),e_HR(i__) RAdeg_1(i__) = rNULL__ DEdeg_1(i__) = rNULL__ c Derive coordinates RAdeg_1 and DEdeg_1 from input data c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown) if(RAh_1(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15. if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4. if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240. if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__) if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60. if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600. if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__) c ..............Just test output........... write(6,2) + Cluster_1(i__),CXOGBA(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__), + DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Ct(i__),FX_1(i__), + Sig(i__),HR(i__),e_HR(i__) write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'refs.dat' ! References C Format for file interpretation 3 format(I2,1X,A19,1X,A31) C Effective file loading open(unit=1,status='old',file= +'refs.dat') write(6,*) '....Loading file: refs.dat' do i__=1,81 read(1,'(A54)')ar__2 read(ar__2,3)Ref(i__),BibCode(i__),Aut(i__) c ..............Just test output........... write(6,3)Ref(i__),BibCode(i__),Aut(i__) 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