FORTRAN Generation
(/./ftp/cats/J/A_A/526/A21)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/526/A21 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 2024-Apr-18
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/526/A21       Collinder 69 X-ray sources               (Barrado+, 2011)
*================================================================================
*XMM-Newton investigations of the {lambda} Orionis star-forming region (XILO).
*I. The young cluster Collinder 69.
*    Barrado D., Stelzer B., Morales-Calderon M., Bayo A., Huelamo N.,
*    Stauffer J.R., Hodgkin S., Galindo F., Verdugo E.
*   <Astron. Astrophys., 526, A21 (2011)>
*   =2011A&A...526A..21B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! X-ray sources detected with ML>15.0 in the EPIC
                              observation of Collinder 69, East field (C69E)

      integer*4 nr__
      parameter (nr__=112)	! Number of records
      character*82 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*4   Name        ! Designation (eNNN or wNNN)
      character*5   Inst        ! Instrument used for the spectral analysis
*                                     (see text in Sect. 2.1.)
      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        ePos        ! (arcsec) Position error
      real*4        Offaxis     ! (arcmin) Off-axis angle
      real*8        ML          ! Maximum likelihood
      real*4        CRate       ! (ct/ks) Source count rate
      real*4        e_CRate     ! (ct/ks) rms uncertainty on CRate
      real*4        HR1         ! Hardness ratio 1 (HR1=(M-S)/(M+S)) (2)
      real*4        e_HR1       ! rms uncertainty on HR1
      real*4        HR2         ! Hardness ratio 2 (HR2=(H+M-S)/(H+M+S)) (2)
      real*4        e_HR2       ! rms uncertainty on HR2
*Note (2): where soft (S), medium (M), hard (H) and broad (B) bands are:
*           S=0.5-1.0keV, M=1.0-2.0keV, H=2.0-7.3keV, and B=S+M+H.

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

C  Declarations for 'table4.dat'	! X-ray sources detected with ML>15.0 in the EPIC
                              observation of Collinder 69, West field (C69W)

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1     ! (deg) Right Ascension J2000
      real*8        DEdeg_1     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*4   Name_1      ! Designation (eNNN or wNNN)
      character*5   Inst_1      ! Instrument used for the spectral analysis
*                                     (see text in Sect. 2.1.)
      integer*4     RAh_1       ! (h) Right ascension (J2000)
      integer*4     RAm_1       ! (min) Right ascension (J2000)
      real*4        RAs_1       ! (s) Right ascension (J2000)
      character*1   DE__1       ! Declination sign (J2000)
      integer*4     DEd_1       ! (deg) Declination (J2000)
      integer*4     DEm_1       ! (arcmin) Declination (J2000)
      real*4        DEs_1       ! (arcsec) Declination (J2000)
      real*4        ePos_1      ! (arcsec) Position error
      real*4        Offaxis_1   ! (arcmin) Off-axis angle
      real*8        ML_1        ! Maximum likelihood
      real*4        CRate_1     ! (ct/ks) Source count rate
      real*4        e_CRate_1   ! (ct/ks) rms uncertainty on CRate
      real*4        HR1_1       ! Hardness ratio 1 (HR1=(M-S)/(M+S)) (2)
      real*4        e_HR1_1     ! rms uncertainty on HR1
      real*4        HR2_1       ! Hardness ratio 2 (HR2=(H+M-S)/(H+M+S)) (2)
      real*4        e_HR2_1     ! rms uncertainty on HR2
*Note (2): where soft (S), medium (M), hard (H) and broad (B) bands are:
*           S=0.5-1.0keV, M=1.0-2.0keV, H=2.0-7.3keV, and B=S+M+H.

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

C  Declarations for 'table5.dat'	! Optical and infrared photometry for all the 205
                              counterparts for 164 X-ray sources of Collinder
                              69 (eastern XMM-Newton pointing or Col 69E).
                              20091001, final version, after C69*.final.dat

      integer*4 nr__2
      parameter (nr__2=130)	! Number of records
      character*188 ar__2  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      character*4   Name_2      ! Designation (eNNN or wNNN)
      character*1   m_Name      ! [cwesnz] Multiplicity index on Name
      real*4        Bmag        ! (mag) ?=- Johnson B magnitude
      real*4        e_Bmag      ! (mag) ?=- rms uncertainty on Bmag
      real*4        Vmag        ! (mag) ?=- Johnson V magnitude
      real*4        e_Vmag      ! (mag) ?=- rms uncertainty on Vmag
      real*4        Rcmag       ! (mag) ?=- Cousins R magnitude
      real*4        e_Rcmag     ! (mag) ?=- rms uncertainty on Rcmag
      real*4        Icmag       ! (mag) ?=- Cousins I magnitude
      real*4        e_Icmag     ! (mag) ?=- rms uncertainty on Icmag
      character*1   l_Jmag      ! Limit flag on Jmag
      real*4        Jmag        ! (mag) ?=- Johnson J magnitude
      real*4        e_Jmag      ! (mag) ?=- rms uncertainty on Jmag
      character*1   l_Hmag      ! Limit flag on Hmag
      real*4        Hmag        ! (mag) ?=- Johnson H magnitude
      real*4        e_Hmag      ! (mag) ?=- rms uncertainty on Hmag
      character*1   l_Kmag      ! Limit flag on Kmag
      real*4        Kmag        ! (mag) ?=- Johnson K magnitude
      real*4        e_Kmag      ! (mag) ?=- rms uncertainty on Kmag
      real*4        v_3_6_      ! (mag) ?=- Spitzer/IRAC 3.6um magnitude
      real*4        e__3_6_     ! (mag) ?=- rms uncertainty on [3.6]
      real*4        v_4_5_      ! (mag) ?=- Spitzer/IRAC 4.5um magnitude
      real*4        e__4_5_     ! (mag) ?=- rms uncertainty on [4.5]
      real*4        v_5_8_      ! (mag) ?=- Spitzer/IRAC 5.8um magnitude
      real*4        e__5_8_     ! (mag) ?=- rms uncertainty on [5.8]
      real*4        v_8_0_      ! (mag) ?=- Spitzer/IRAC 8.0um magnitude
      real*4        e__8_0_     ! (mag) ?=- rms uncertainty on [8.0]
      real*4        v_24_       ! (mag) ?=- Spitzer/MIPS 24um magnitude
      real*4        e__24_      ! (mag) ?=- rms uncertainty on [24]
      character*1   r_Bmag      ! Reference for Bmag (1)
      character*1   r_Vmag      ! Reference for Vmag (1)
      character*1   r_Rcmag     ! Reference for Rcmag (1)
      character*1   r_Icmag     ! Reference for Icmag (1)
      character*1   r_Jmag      ! Reference for Jmag (1)
      character*1   r_Hmag      ! Reference for Hmag (1)
      character*1   r_Kmag      ! Reference for Kmag (1)
      character*1   r__3_6_     ! Reference for [3.6] (1)
      character*1   r__4_5_     ! Reference for [4.5] (1)
      character*1   r__5_8_     ! Reference for [5.8] (1)
      character*1   r__8_0_     ! Reference for [8.0] (1)
      character*1   r__24_      ! Reference for [24] (1)
      real*8        RAdeg_2     ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_2     ! (deg) Delcination in decimal degrees (J2000)
*Note (1): References as follows:
*   1 = 2MASS, Cat. II/246
*   2 = Optical Monitor (XMM)
*   3 = Spitzer
*   4 = O2000/2005
*   5 = CFHT1999
*   6 = Barrado y Navascues et al. (2004, Cat. J/ApJ/610/1064;
*       2007, Cat. J/ApJ/664/481)
*   7 = Dolan & Mathieu (1999, Cat. J/AJ/118/2409; 2001, Cat. J/AJ/121/2124)
*   8 = Dolan & Mathieu (2002, Cat. J/AJ/123/387)
*   9 = O2000/2007

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

C  Declarations for 'table6.dat'	! Optical and infrared photometry for all the 205
                              counterparts for 164 X-ray sources of Collinder
                              69 (western XMM-Newton pointing or Col 69W).

      integer*4 nr__3
      parameter (nr__3=75)	! Number of records
      character*188 ar__3  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      character*4   Name_3      ! Designation (eNNN or wNNN)
      character*1   m_Name_1    ! [cwesnz] Multiplicity index on Name
      real*4        Bmag_1      ! (mag) ?=- Johnson B magnitude
      real*4        e_Bmag_1    ! (mag) ?=- rms uncertainty on Bmag
      real*4        Vmag_1      ! (mag) ?=- Johnson V magnitude
      real*4        e_Vmag_1    ! (mag) ?=- rms uncertainty on Vmag
      real*4        Rcmag_1     ! (mag) ?=- Cousins R magnitude
      real*4        e_Rcmag_1   ! (mag) ?=- rms uncertainty on Rcmag
      real*4        Icmag_1     ! (mag) ?=- Cousins I magnitude
      real*4        e_Icmag_1   ! (mag) ?=- rms uncertainty on Icmag
      character*1   l_Jmag_1    ! Limit flag on Jmag
      real*4        Jmag_1      ! (mag) ?=- Johnson J magnitude
      real*4        e_Jmag_1    ! (mag) ?=- rms uncertainty on Jmag
      character*1   l_Hmag_1    ! Limit flag on Hmag
      real*4        Hmag_1      ! (mag) ?=- Johnson H magnitude
      real*4        e_Hmag_1    ! (mag) ?=- rms uncertainty on Hmag
      character*1   l_Kmag_1    ! Limit flag on Kmag
      real*4        Kmag_1      ! (mag) ?=- Johnson K magnitude
      real*4        e_Kmag_1    ! (mag) ?=- rms uncertainty on Kmag
      real*4        v_3_6__1    ! (mag) ?=- Spitzer/IRAC 3.6um magnitude
      real*4        e__3_6__1   ! (mag) ?=- rms uncertainty on [3.6]
      real*4        v_4_5__1    ! (mag) ?=- Spitzer/IRAC 4.5um magnitude
      real*4        e__4_5__1   ! (mag) ?=- rms uncertainty on [4.5]
      real*4        v_5_8__1    ! (mag) ?=- Spitzer/IRAC 5.8um magnitude
      real*4        e__5_8__1   ! (mag) ?=- rms uncertainty on [5.8]
      real*4        v_8_0__1    ! (mag) ?=- Spitzer/IRAC 8.0um magnitude
      real*4        e__8_0__1   ! (mag) ?=- rms uncertainty on [8.0]
      real*4        v_24__1     ! (mag) ?=- Spitzer/MIPS 24um magnitude
      real*4        e__24__1    ! (mag) ?=- rms uncertainty on [24]
      character*1   r_Bmag_1    ! Reference for Bmag (1)
      character*1   r_Vmag_1    ! Reference for Vmag (1)
      character*1   r_Rcmag_1   ! Reference for Rcmag (1)
      character*1   r_Icmag_1   ! Reference for Icmag (1)
      character*1   r_Jmag_1    ! Reference for Jmag (1)
      character*1   r_Hmag_1    ! Reference for Hmag (1)
      character*1   r_Kmag_1    ! Reference for Kmag (1)
      character*1   r__3_6__1   ! Reference for [3.6] (1)
      character*1   r__4_5__1   ! Reference for [4.5] (1)
      character*1   r__5_8__1   ! Reference for [5.8] (1)
      character*1   r__8_0__1   ! Reference for [8.0] (1)
      character*1   r__24__1    ! Reference for [24] (1)
      real*8        RAdeg_3     ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_3     ! (deg) Delcination in decimal degrees (J2000)
*Note (1): References as follows:
*   1 = 2MASS, Cat. II/246
*   2 = Optical Monitor (XMM)
*   3 = Spitzer
*   4 = O2000/2005
*   5 = CFHT1999
*   6 = Barrado y Navascues et al. (2004, Cat. J/ApJ/610/1064;
*       2007, Cat. J/ApJ/664/481)
*   7 = Dolan & Mathieu (1999, Cat. J/AJ/118/2409; 2001, Cat. J/AJ/121/2124)
*   8 = Dolan & Mathieu (2002, Cat. J/AJ/123/387)
*   9 = O2000/2007

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

C  Declarations for 'table8.dat'	! Membership criteria and other information for
                              X-ray sources of Collinder 69 East field

      integer*4 nr__4
      parameter (nr__4=130)	! Number of records
      character*81 ar__4  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      character*4   Name_4      ! Designation (eNNN or wNNN)
      character*1   m_Name_2    ! [cwesnz] Multiplicity index on Name
      real*8        RAdeg_4     ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_4     ! (deg) Delcination in decimal degrees (J2000)
      character*3   QSO         ! [Yes No pos ?] QSO flag (1)
      character*2   Mm6         ! [YN? -] HR diagram membership assigment (2)
      character*5   Mm7         ! [YN?-] Color-magnitude membership assigment (3)
      character*1   Mm8         ! [YN?-] Color-color membership assigment (3)
      character*3   Mmb         ! [Y? co NM noD] Final membership assigment (4)
      character*4   dCl         ! [I/- ] Disk class from IRAC colors (5)
      integer*4     ByN         ! ?=- Barrado y Navascues et al. J/ApJ/610/1064
*                                 identification number <LOri-CFHT NN> in Simbad
      integer*4     v_DM99_     ! ?=- Dolan & Mathieu (1999, J/AJ/118/2409 and
*                                  2001, J/AJ/121/2124) identification number
      character*13  USNO_A2     ! USNO-A2 (I/252) designation
      character*2   MmS         ! [Y?N -] Sacco membership assigment (6)
      character*4   SpT         ! MK spectral type (6)
*Note (1): "Yes" stands for objects located in the area of the diagram
*     (I-J versus J-[3.6]) where quasars are located, after Bouy et al.
*     (2009A&A...504..199B). See Fig. 5.
*Note (2): Membership based on the HR diagram, see Fig. 6.
*Note (3): Membership based on several color-magnitude and color-color
*     diagrams, see Fig. 8.
*Note (4): Final membership assigment:
*    Y   = Probable member
*    Y?  = Possible member
*    NM? = Possible non-member
*    NM  = Probable non-member
*    -   = noData
*Note (5): Disk class based on the Spitzer/IRAC color-color diagram, after
*     Lada (1987IAUS..115....1L) and Allen et al. (2004ApJS..154..363A).
*Note (6): Membership and spectra types after Sacco et al. 2008
*     (Cat. J/A+A/488/167).

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

C  Declarations for 'table9.dat'	! Membership criteria and other information for
                              X-ray sources of Collinder 69 West field

      integer*4 nr__5
      parameter (nr__5=75)	! Number of records
      character*81 ar__5  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      character*4   Name_5      ! Designation (eNNN or wNNN)
      character*1   m_Name_3    ! [cwesnz] Multiplicity index on Name
      real*8        RAdeg_5     ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_5     ! (deg) Delcination in decimal degrees (J2000)
      character*3   QSO_1       ! [Yes No pos ?] QSO flag (1)
      character*2   Mm6_1       ! [YN? -] HR diagram membership assigment (2)
      character*5   Mm7_1       ! [YN?-] Color-magnitude membership assigment (3)
      character*1   Mm8_1       ! [YN?-] Color-color membership assigment (3)
      character*3   Mmb_1       ! [Y? co NM noD] Final membership assigment (4)
      character*4   dCl_1       ! [I/- ] Disk class from IRAC colors (5)
      integer*4     ByN_1       ! ?=- Barrado y Navascues et al. J/ApJ/610/1064
*                                 identification number <LOri-CFHT NN> in Simbad
      integer*4     v_DM99__1   ! ?=- Dolan & Mathieu (1999, J/AJ/118/2409 and
*                                  2001, J/AJ/121/2124) identification number
      character*13  USNO_A2_1   ! USNO-A2 (I/252) designation
      character*2   MmS_1       ! [Y?N -] Sacco membership assigment (6)
      character*4   SpT_1       ! MK spectral type (6)
*Note (1): "Yes" stands for objects located in the area of the diagram
*     (I-J versus J-[3.6]) where quasars are located, after Bouy et al.
*     (2009A&A...504..199B). See Fig. 5.
*Note (2): Membership based on the HR diagram, see Fig. 6.
*Note (3): Membership based on several color-magnitude and color-color
*     diagrams, see Fig. 8.
*Note (4): Final membership assigment:
*    Y   = Probable member
*    Y?  = Possible member
*    NM? = Possible non-member
*    NM  = Probable non-member
*    -   = noData
*Note (5): Disk class based on the Spitzer/IRAC color-color diagram, after
*     Lada (1987IAUS..115....1L) and Allen et al. (2004ApJS..154..363A).
*Note (6): Membership and spectra types after Sacco et al. 2008
*     (Cat. J/A+A/488/167).

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

C  Loading file 'table3.dat'	! X-ray sources detected with ML>15.0 in the EPIC
*                              observation of Collinder 69, East field (C69E)

C  Format for file interpretation

    1 format(
     +  A4,1X,A5,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1,
     +  1X,F4.1,1X,F7.1,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,112
        read(1,'(A82)')ar__
        read(ar__,1)
     +  Name,Inst,RAh,RAm,RAs,DE_,DEd,DEm,DEs,ePos,Offaxis,ML,CRate,
     +  e_CRate,HR1,e_HR1,HR2,e_HR2
        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)
     +  Name,Inst,RAh,RAm,RAs,DE_,DEd,DEm,DEs,ePos,Offaxis,ML,CRate,
     +  e_CRate,HR1,e_HR1,HR2,e_HR2
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! X-ray sources detected with ML>15.0 in the EPIC
*                              observation of Collinder 69, West field (C69W)

C  Format for file interpretation

    2 format(
     +  A4,1X,A5,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1,
     +  1X,F4.1,1X,F7.1,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,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,52
        read(1,'(A82)')ar__1
        read(ar__1,2)
     +  Name_1,Inst_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
     +  ePos_1,Offaxis_1,ML_1,CRate_1,e_CRate_1,HR1_1,e_HR1_1,HR2_1,
     +  e_HR2_1
        RAdeg_1 = rNULL__
        DEdeg_1 = 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 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  Name_1,Inst_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
     +  ePos_1,Offaxis_1,ML_1,CRate_1,e_CRate_1,HR1_1,e_HR1_1,HR2_1,
     +  e_HR2_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Optical and infrared photometry for all the 205
*                              counterparts for 164 X-ray sources of Collinder
*                              69 (eastern XMM-Newton pointing or Col 69E).
*                              20091001, final version, after C69*.final.dat

C  Format for file interpretation

    3 format(
     +  A4,A1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,
     +  1X,F4.2,A1,F6.3,1X,F5.3,A1,F6.3,1X,F5.3,A1,F6.3,1X,F5.3,1X,
     +  F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,
     +  1X,F4.2,1X,F4.2,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,
     +  A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,F9.6,1X,F11.7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,130
        read(1,'(A188)')ar__2
        read(ar__2,3)
     +  Name_2,m_Name,Bmag,e_Bmag,Vmag,e_Vmag,Rcmag,e_Rcmag,Icmag,
     +  e_Icmag,l_Jmag,Jmag,e_Jmag,l_Hmag,Hmag,e_Hmag,l_Kmag,Kmag,
     +  e_Kmag,v_3_6_,e__3_6_,v_4_5_,e__4_5_,v_5_8_,e__5_8_,v_8_0_,
     +  e__8_0_,v_24_,e__24_,r_Bmag,r_Vmag,r_Rcmag,r_Icmag,r_Jmag,
     +  r_Hmag,r_Kmag,r__3_6_,r__4_5_,r__5_8_,r__8_0_,r__24_,RAdeg_2,
     +  DEdeg_2
        if (idig(ar__2(7:11)).EQ.0) Bmag =  rNULL__
        if (idig(ar__2(13:16)).EQ.0) e_Bmag =  rNULL__
        if (idig(ar__2(18:22)).EQ.0) Vmag =  rNULL__
        if (idig(ar__2(24:27)).EQ.0) e_Vmag =  rNULL__
        if (idig(ar__2(29:33)).EQ.0) Rcmag =  rNULL__
        if (idig(ar__2(35:38)).EQ.0) e_Rcmag =  rNULL__
        if (idig(ar__2(40:44)).EQ.0) Icmag =  rNULL__
        if (idig(ar__2(46:49)).EQ.0) e_Icmag =  rNULL__
        if (idig(ar__2(51:56)).EQ.0) Jmag =  rNULL__
        if (idig(ar__2(58:62)).EQ.0) e_Jmag =  rNULL__
        if (idig(ar__2(64:69)).EQ.0) Hmag =  rNULL__
        if (idig(ar__2(71:75)).EQ.0) e_Hmag =  rNULL__
        if (idig(ar__2(77:82)).EQ.0) Kmag =  rNULL__
        if (idig(ar__2(84:88)).EQ.0) e_Kmag =  rNULL__
        if (idig(ar__2(90:94)).EQ.0) v_3_6_ =  rNULL__
        if (idig(ar__2(96:99)).EQ.0) e__3_6_ =  rNULL__
        if (idig(ar__2(101:105)).EQ.0) v_4_5_ =  rNULL__
        if (idig(ar__2(107:110)).EQ.0) e__4_5_ =  rNULL__
        if (idig(ar__2(112:116)).EQ.0) v_5_8_ =  rNULL__
        if (idig(ar__2(118:121)).EQ.0) e__5_8_ =  rNULL__
        if (idig(ar__2(123:127)).EQ.0) v_8_0_ =  rNULL__
        if (idig(ar__2(129:132)).EQ.0) e__8_0_ =  rNULL__
        if (idig(ar__2(134:137)).EQ.0) v_24_ =  rNULL__
        if (idig(ar__2(139:142)).EQ.0) e__24_ =  rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2,m_Name,Bmag,e_Bmag,Vmag,e_Vmag,Rcmag,e_Rcmag,Icmag,
     +  e_Icmag,l_Jmag,Jmag,e_Jmag,l_Hmag,Hmag,e_Hmag,l_Kmag,Kmag,
     +  e_Kmag,v_3_6_,e__3_6_,v_4_5_,e__4_5_,v_5_8_,e__5_8_,v_8_0_,
     +  e__8_0_,v_24_,e__24_,r_Bmag,r_Vmag,r_Rcmag,r_Icmag,r_Jmag,
     +  r_Hmag,r_Kmag,r__3_6_,r__4_5_,r__5_8_,r__8_0_,r__24_,RAdeg_2,
     +  DEdeg_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Optical and infrared photometry for all the 205
*                              counterparts for 164 X-ray sources of Collinder
*                              69 (western XMM-Newton pointing or Col 69W).

C  Format for file interpretation

    4 format(
     +  A4,A1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,
     +  1X,F4.2,A1,F6.3,1X,F5.3,A1,F6.3,1X,F5.3,A1,F6.3,1X,F5.3,1X,
     +  F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,
     +  1X,F4.2,1X,F4.2,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,
     +  A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,F9.6,1X,F11.7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,75
        read(1,'(A188)')ar__3
        read(ar__3,4)
     +  Name_3,m_Name_1,Bmag_1,e_Bmag_1,Vmag_1,e_Vmag_1,Rcmag_1,
     +  e_Rcmag_1,Icmag_1,e_Icmag_1,l_Jmag_1,Jmag_1,e_Jmag_1,l_Hmag_1,
     +  Hmag_1,e_Hmag_1,l_Kmag_1,Kmag_1,e_Kmag_1,v_3_6__1,e__3_6__1,
     +  v_4_5__1,e__4_5__1,v_5_8__1,e__5_8__1,v_8_0__1,e__8_0__1,
     +  v_24__1,e__24__1,r_Bmag_1,r_Vmag_1,r_Rcmag_1,r_Icmag_1,
     +  r_Jmag_1,r_Hmag_1,r_Kmag_1,r__3_6__1,r__4_5__1,r__5_8__1,
     +  r__8_0__1,r__24__1,RAdeg_3,DEdeg_3
        if (idig(ar__3(7:11)).EQ.0) Bmag_1 =  rNULL__
        if (idig(ar__3(13:16)).EQ.0) e_Bmag_1 =  rNULL__
        if (idig(ar__3(18:22)).EQ.0) Vmag_1 =  rNULL__
        if (idig(ar__3(24:27)).EQ.0) e_Vmag_1 =  rNULL__
        if (idig(ar__3(29:33)).EQ.0) Rcmag_1 =  rNULL__
        if (idig(ar__3(35:38)).EQ.0) e_Rcmag_1 =  rNULL__
        if (idig(ar__3(40:44)).EQ.0) Icmag_1 =  rNULL__
        if (idig(ar__3(46:49)).EQ.0) e_Icmag_1 =  rNULL__
        if (idig(ar__3(51:56)).EQ.0) Jmag_1 =  rNULL__
        if (idig(ar__3(58:62)).EQ.0) e_Jmag_1 =  rNULL__
        if (idig(ar__3(64:69)).EQ.0) Hmag_1 =  rNULL__
        if (idig(ar__3(71:75)).EQ.0) e_Hmag_1 =  rNULL__
        if (idig(ar__3(77:82)).EQ.0) Kmag_1 =  rNULL__
        if (idig(ar__3(84:88)).EQ.0) e_Kmag_1 =  rNULL__
        if (idig(ar__3(90:94)).EQ.0) v_3_6__1 =  rNULL__
        if (idig(ar__3(96:99)).EQ.0) e__3_6__1 =  rNULL__
        if (idig(ar__3(101:105)).EQ.0) v_4_5__1 =  rNULL__
        if (idig(ar__3(107:110)).EQ.0) e__4_5__1 =  rNULL__
        if (idig(ar__3(112:116)).EQ.0) v_5_8__1 =  rNULL__
        if (idig(ar__3(118:121)).EQ.0) e__5_8__1 =  rNULL__
        if (idig(ar__3(123:127)).EQ.0) v_8_0__1 =  rNULL__
        if (idig(ar__3(129:132)).EQ.0) e__8_0__1 =  rNULL__
        if (idig(ar__3(134:137)).EQ.0) v_24__1 =  rNULL__
        if (idig(ar__3(139:142)).EQ.0) e__24__1 =  rNULL__
c    ..............Just test output...........
        write(6,4)
     +  Name_3,m_Name_1,Bmag_1,e_Bmag_1,Vmag_1,e_Vmag_1,Rcmag_1,
     +  e_Rcmag_1,Icmag_1,e_Icmag_1,l_Jmag_1,Jmag_1,e_Jmag_1,l_Hmag_1,
     +  Hmag_1,e_Hmag_1,l_Kmag_1,Kmag_1,e_Kmag_1,v_3_6__1,e__3_6__1,
     +  v_4_5__1,e__4_5__1,v_5_8__1,e__5_8__1,v_8_0__1,e__8_0__1,
     +  v_24__1,e__24__1,r_Bmag_1,r_Vmag_1,r_Rcmag_1,r_Icmag_1,
     +  r_Jmag_1,r_Hmag_1,r_Kmag_1,r__3_6__1,r__4_5__1,r__5_8__1,
     +  r__8_0__1,r__24__1,RAdeg_3,DEdeg_3
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Membership criteria and other information for
*                              X-ray sources of Collinder 69 East field

C  Format for file interpretation

    5 format(
     +  A4,A1,1X,F9.6,1X,F11.7,1X,A3,1X,A2,1X,A5,1X,A1,1X,A3,1X,A4,1X,
     +  I3,1X,I3,1X,A13,1X,A2,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,130
        read(1,'(A81)')ar__4
        read(ar__4,5)
     +  Name_4,m_Name_2,RAdeg_4,DEdeg_4,QSO,Mm6,Mm7,Mm8,Mmb,dCl,ByN,
     +  v_DM99_,USNO_A2,MmS,SpT
        if (ByN .EQ. 45) ByN =  iNULL__
        if (v_DM99_ .EQ. 45) v_DM99_ =  iNULL__
c    ..............Just test output...........
        write(6,5)
     +  Name_4,m_Name_2,RAdeg_4,DEdeg_4,QSO,Mm6,Mm7,Mm8,Mmb,dCl,ByN,
     +  v_DM99_,USNO_A2,MmS,SpT
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! Membership criteria and other information for
*                              X-ray sources of Collinder 69 West field

C  Format for file interpretation

    6 format(
     +  A4,A1,1X,F9.6,1X,F11.7,1X,A3,1X,A2,1X,A5,1X,A1,1X,A3,1X,A4,1X,
     +  I3,1X,I3,1X,A13,1X,A2,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,75
        read(1,'(A81)')ar__5
        read(ar__5,6)
     +  Name_5,m_Name_3,RAdeg_5,DEdeg_5,QSO_1,Mm6_1,Mm7_1,Mm8_1,Mmb_1,
     +  dCl_1,ByN_1,v_DM99__1,USNO_A2_1,MmS_1,SpT_1
        if (ByN_1 .EQ. 45) ByN_1 =  iNULL__
        if (v_DM99__1 .EQ. 45) v_DM99__1 =  iNULL__
c    ..............Just test output...........
        write(6,6)
     +  Name_5,m_Name_3,RAdeg_5,DEdeg_5,QSO_1,Mm6_1,Mm7_1,Mm8_1,Mmb_1,
     +  dCl_1,ByN_1,v_DM99__1,USNO_A2_1,MmS_1,SpT_1
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