FORTRAN Generation
(/./ftp/cats/J/A_A/488/417)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/488/417 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-Apr-19
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/A+A/488/417    XMM-Newton survey of the ELAIS-S1 field. II.  (Feruglio+, 2008)
*================================================================================
*The XMM-Newton survey of the ELAIS-S1 field.
*II. Identifications and multiwavelength catalogue of X-ray sources.
*    Feruglio C., Fiore F., La Franca F., Sacchi N., Puccetti S., Comastri A.,
*    Berta S., Gruppioni C., Mathur S, Matute I., Mignoli M., Vignali C.,
*    Zamorani G.
*   <Astron. Astrophys. 488, 417 (2008)>
*   =2008A&A...488..417F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! Multiband catalog

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

C  J2000.0 position composed of: RAdeg DEdeg
      integer*4     XMMES1     (nr__) ! [1/479] XMM sequential number
      real*8        RAdeg      (nr__) ! (deg) XMM Right ascension (J2000.0)
      real*8        DEdeg      (nr__) ! (deg) XMM Declination (J2000.0)
      real*4        FX0_5_10   (nr__) ! (mW/m2) Flux 0.5-10keV
      real*4        SN0_5_10   (nr__) ! S/N in 0.5-10keV band
      real*4        e_FX0_5_10 (nr__) ! (mW/m2) ?=99.0 Error on Flux 0.5-10keV
      real*4        FX2_10     (nr__) ! (mW/m2) Flux 2-10keV band
      real*4        SN2_10     (nr__) ! S/N in 2-10keV band
      real*4        e_FX2_10   (nr__) ! (mW/m2) ?=99.0 Error on Flux 2-10keV
      real*4        FX0_5_2    (nr__) ! (mW/m2) Flux 0.5-2keV band
      real*4        SNX0_5_2   (nr__) ! S/N in 0.5-2keV band
      real*4        e_FX0_5_2  (nr__) ! (mW/m2) ?=99.0 Error on Flux 0.5-2keV
      real*4        FX5_10     (nr__) ! (mW/m2) Flux 5-10 keV band
      real*4        SNFX5_10   (nr__) ! S/N in 5-10keV band
      real*4        e_FX5_10   (nr__) ! (mW/m2) ?=99.0 Error on Flux 5-10keV
      integer*4     Chandra    (nr__) ! ?=-999 Chandra ID
      real*8        RACdeg     (nr__) ! (deg) ?=-9.9999 Chandra Right ascension (J2000.0)
      real*8        DECdeg     (nr__) ! (deg) ?=-99. Chandra Declination (J2000.0)
      integer*4     covCh      (nr__) ! [0/1] Flag, if area is covered by Chandra
*                                        observations (1=yes, 0=no)
      integer*4     ESIS       (nr__) ! ?=0 ID in ESIS catalog
      real*8        RAEdeg     (nr__) ! (deg) ?=-9.9999 Right ascension (J2000.0)
*                                            in ESIS catalog
      real*8        DEEdeg     (nr__) ! (deg) ?=-99. Declination (J2000.0) in ESIS catalog
      character*1   l_BmagE    (nr__) ! Limit flag on BmagE
      real*4        BmagE      (nr__) ! (mag) ?=99.0 B band magnitude (Vega) from ESIS
*                                    catalog
      real*8        e_BmagE    (nr__) ! (mag) ?=99.0 B mag error
      character*1   l_VmagE    (nr__) ! Limit flag on VmagE
      real*4        VmagE      (nr__) ! (mag) ?=99.0 V band magnitude (Vega) from
*                                    ESIS catalog
      real*8        e_VmagE    (nr__) ! (mag) ?=99.0 V mag error
      character*1   l_RmagE    (nr__) ! Limit flag on RmagE
      real*4        RmagE      (nr__) ! (mag) ?=99.0 R band magnitude (Vega) from
*                                    ESIS catalog
      real*8        e_RmagE    (nr__) ! (mag) ?=99.0 R mag error
      real*8        RAVdeg     (nr__) ! (deg) ?=99. VIMOS/VLT Right ascension (J2000.0)
      real*8        DEVdeg     (nr__) ! (deg) ?=99. VIMOS/VLT Declination (J2000.0)
      character*1   l_RmagBest (nr__) ! Limit flag on RmagBest
      real*4        RmagBest   (nr__) ! (mag) ?=99. R band magnitude (Vega) from VIMOS
*                                        (mag_best)
      real*4        e_RmagBest (nr__) ! (mag) ?=99.0 R mag error
      real*8        Rell       (nr__) ! ?=99.0 Ellipticity in R band
      integer*4     Rflg       (nr__) ! ?=99 Sextractor flags in R band
      real*8        Rs_g       (nr__) ! ?=99.0 Star/galaxy separation in R band
*                                         (0 for galaxy)
      real*4        ProbOpt    (nr__) ! Chance coincidence probability (R band)
      real*4        DXOpt      (nr__) ! (arcsec) ?=99.0 X-ray to optical position offset
      real*8        RAOdeg     (nr__) ! (deg) ?=-99.0 J-band Right ascension (J2000.0)
      real*8        DEOdeg     (nr__) ! (deg) ?=-99.0 J-band Declination (J2000.0)
      real*4        JmagBest   (nr__) ! (mag) ?=99.0 J band magnitude (Vega)
      real*4        e_JmagBest (nr__) ! (mag) ?=99.0 J mag error
      character*1   l_Kmag     (nr__) ! Limit flag on Kmag
      real*4        Kmag       (nr__) ! (mag) ?=99.0 K band magnitude (Vega) (mag_best)
      real*8        e_Kmag     (nr__) ! (mag) ?=99.0 K mag error
      real*8        Kell       (nr__) ! ?=99.0 Ellipticity in K band
      integer*4     Kflg       (nr__) ! ?=99 Sextractor flags in K band
      real*4        Ks_g       (nr__) ! ?=99.0 Star/galaxy separation in K band
*                                         (0 for galaxy)
      integer*4     IRAC       (nr__) ! ?=0 Swire IRAC ID
      real*8        RAIdeg     (nr__) ! (deg) ?=-99.0 IRAC Right ascension (J2000.0)
      real*8        DEIdeg     (nr__) ! (deg) ?=-99.0 IRAC Declination (J2000.0)
      real*8        F3_6um     (nr__) ! (uJy) ?=-999.0 IRAC 3.6um flux
      real*4        e_F3_6um   (nr__) ! (uJy) ?=99.0 IRAC 3.6um flux error
      real*8        F4_5um     (nr__) ! (uJy) ?=-999.0 IRAC 4.5um flux
      real*4        e_F4_5um   (nr__) ! (uJy) ?=99.0 IRAC 4.5um flux error
      real*8        F5_8um     (nr__) ! (uJy) ?=-999.0 IRAC 5.8um flux
      real*4        e_F5_8um   (nr__) ! (uJy) ?=99.0 IRAC 5.8um flux error
      real*8        F8_0um     (nr__) ! (uJy) ?=-999.0 IRAC 8.0um flux
      real*4        e_F8_0um   (nr__) ! (uJy) ?=99.0 IRAC 8.0um flux error
      real*8        F24um      (nr__) ! (uJy) ?=-999.0 MIPS 24um flux
      real*4        e_F24um    (nr__) ! (uJy) ?=99.0 MIPS 24um flux error
      real*4        DXIR       (nr__) ! (arcsec) ?=-9.0 X-ray to IRAC position offset
      real*4        ProbIR     (nr__) ! ?=-9.0 Chance coincidence probability
*                                         (IRAC 3.6 micron)
      real*4        Tel        (nr__) ! Photometry from : 2.2=ESO/WFI  8.0=VIMOS/VLT
      integer*4     SpID       (nr__) ! Spectrum ID (unexplained)
      integer*4     SpCode     (nr__) ! Spectrum code (unexplained)
      real*8        z          (nr__) ! ?=-9.0 or -1.0 Spectroscopic redshift
      real*4        q_z        (nr__) ! ?=-9.0 Redshift quality flag (1)
      integer*4     Class      (nr__) ! ?=-9.0 Classification (2)
      integer*4     Inst       (nr__) ! Instrument (3)
      integer*4     SED        (nr__) ! ?=0 SED classification (4)
      real*8        zpho       (nr__) ! ?=-1.0 Best fit Photometric redshift
      real*4        chi2       (nr__) ! ?=0.0 Chi squared for Photometric redshift fit
*Note (1): Spectroscopic redshift quality flag as follows:
*      2 = secure
*      1 = only 1 emission line
*     <1 = tentative
*Note (2): Classification as follows:
*      1 = type 1 AGN
*      2 = emission line galaxy
*      3 = galaxy without emission lines
*      4 = star
*      5 = type 2 AGN
*      6 = galaxies associated to extended sources (clusters)
*Note (3): Instrument code as follows:
*     15 = spectra of bright sources from La Franca et al. (2004,
*          Cat. <J/AJ/127/3075>
*     73 = VIMOS/VLT
*     75 = VIMOS/VLT
*     77 = FORS2/VLT
*     78 = FORS2/VLT
*    360 = EFOSC/VLT
*Note (4): SED classification as follows:
*      0 = no classification
*      2 = early-type-like
*      3 = infrared excess
*      4 = infrared excess
*      5 = dominated by emission features
*     11 = optically blue power-law
*     12 = optically red power-law

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

C  Loading file 'catalog.dat'	! Multiband catalog

C  Format for file interpretation

    1 format(
     +  I3,1X,F7.5,1X,F9.5,1X,E12.7,1X,F5.2,1X,E12.7,1X,E12.7,1X,F5.2,
     +  1X,E12.7,1X,E12.7,1X,F5.2,1X,E12.7,1X,E12.7,1X,F4.2,1X,E12.7,
     +  1X,I4,1X,F9.6,1X,F9.5,1X,I1,1X,I6,1X,F12.9,3X,F13.9,1X,A1,
     +  F6.3,1X,F7.4,1X,A1,F6.3,1X,F7.4,1X,A1,F6.3,1X,F7.4,1X,F10.7,
     +  1X,F11.7,1X,A1,F5.2,1X,F5.2,1X,F7.4,1X,I2,1X,F7.2,1X,F5.3,1X,
     +  F5.2,2X,F9.6,1X,F9.5,1X,F5.2,1X,F5.2,1X,A1,F5.2,1X,F7.4,1X,
     +  F9.4,1X,I2,1X,F5.2,1X,I6,1X,F10.6,1X,F9.5,1X,F8.2,1X,F5.2,
     +  F9.2,1X,F5.2,1X,F8.2,1X,F5.2,1X,F8.2,2X,F5.2,1X,F8.2,2X,F5.2,
     +  1X,F5.2,1X,F6.3,1X,F3.1,1X,I4,1X,I5,1X,F7.4,1X,F4.1,1X,I2,1X,
     +  I3,1X,I2,1X,F7.4,1X,E17.8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,478
        read(1,'(A575)')ar__
        read(ar__,1)
     +  XMMES1(i__),RAdeg(i__),DEdeg(i__),FX0_5_10(i__),SN0_5_10(i__),
     +  e_FX0_5_10(i__),FX2_10(i__),SN2_10(i__),e_FX2_10(i__),
     +  FX0_5_2(i__),SNX0_5_2(i__),e_FX0_5_2(i__),FX5_10(i__),
     +  SNFX5_10(i__),e_FX5_10(i__),Chandra(i__),RACdeg(i__),
     +  DECdeg(i__),covCh(i__),ESIS(i__),RAEdeg(i__),DEEdeg(i__),
     +  l_BmagE(i__),BmagE(i__),e_BmagE(i__),l_VmagE(i__),VmagE(i__),
     +  e_VmagE(i__),l_RmagE(i__),RmagE(i__),e_RmagE(i__),RAVdeg(i__),
     +  DEVdeg(i__),l_RmagBest(i__),RmagBest(i__),e_RmagBest(i__),
     +  Rell(i__),Rflg(i__),Rs_g(i__),ProbOpt(i__),DXOpt(i__),
     +  RAOdeg(i__),DEOdeg(i__),JmagBest(i__),e_JmagBest(i__),
     +  l_Kmag(i__),Kmag(i__),e_Kmag(i__),Kell(i__),Kflg(i__),
     +  Ks_g(i__),IRAC(i__),RAIdeg(i__),DEIdeg(i__),F3_6um(i__),
     +  e_F3_6um(i__),F4_5um(i__),e_F4_5um(i__),F5_8um(i__),
     +  e_F5_8um(i__),F8_0um(i__),e_F8_0um(i__),F24um(i__),
     +  e_F24um(i__),DXIR(i__),ProbIR(i__),Tel(i__),SpID(i__),
     +  SpCode(i__),z(i__),q_z(i__),Class(i__),Inst(i__),SED(i__),
     +  zpho(i__),chi2(i__)
c    ..............Just test output...........
        write(6,1)
     +  XMMES1(i__),RAdeg(i__),DEdeg(i__),FX0_5_10(i__),SN0_5_10(i__),
     +  e_FX0_5_10(i__),FX2_10(i__),SN2_10(i__),e_FX2_10(i__),
     +  FX0_5_2(i__),SNX0_5_2(i__),e_FX0_5_2(i__),FX5_10(i__),
     +  SNFX5_10(i__),e_FX5_10(i__),Chandra(i__),RACdeg(i__),
     +  DECdeg(i__),covCh(i__),ESIS(i__),RAEdeg(i__),DEEdeg(i__),
     +  l_BmagE(i__),BmagE(i__),e_BmagE(i__),l_VmagE(i__),VmagE(i__),
     +  e_VmagE(i__),l_RmagE(i__),RmagE(i__),e_RmagE(i__),RAVdeg(i__),
     +  DEVdeg(i__),l_RmagBest(i__),RmagBest(i__),e_RmagBest(i__),
     +  Rell(i__),Rflg(i__),Rs_g(i__),ProbOpt(i__),DXOpt(i__),
     +  RAOdeg(i__),DEOdeg(i__),JmagBest(i__),e_JmagBest(i__),
     +  l_Kmag(i__),Kmag(i__),e_Kmag(i__),Kell(i__),Kflg(i__),
     +  Ks_g(i__),IRAC(i__),RAIdeg(i__),DEIdeg(i__),F3_6um(i__),
     +  e_F3_6um(i__),F4_5um(i__),e_F4_5um(i__),F5_8um(i__),
     +  e_F5_8um(i__),F8_0um(i__),e_F8_0um(i__),F24um(i__),
     +  e_F24um(i__),DXIR(i__),ProbIR(i__),Tel(i__),SpID(i__),
     +  SpCode(i__),z(i__),q_z(i__),Class(i__),Inst(i__),SED(i__),
     +  zpho(i__),chi2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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