FORTRAN Generation
(/./ftp/cats/J/AJ/135/693)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/135/693 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/AJ/135/693            X-ray and IR sources in RCW 108            (Wolk+, 2008)
*================================================================================
*X-ray and IR point source identification and characteristics in the embedded,
*massive star-forming region RCW 108.
*    Wolk S.J., Spitzbart B.D., Bourke T.L., Gutermuth R.A., Vigil M.,
*    Comeron F.
*   <Astron. J., 135, 693-721 (2008)>
*   =2008AJ....135..693W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Bright X-ray sources detected in the RCW 108 field

      integer*4 nr__
      parameter (nr__=337)	! Number of records
      character*73 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)

      integer*4     Src        (nr__) ! Running source number ([WSB2008] in Simbad)
      character*17  CXOWSB     (nr__) ! Official IAU style identification
*                               (HHMMSS.s+DDMMSS.s)
      integer*4     RAh        (nr__) ! (h) X-ray centroid hour of Right Ascension (J2000)
      integer*4     RAm        (nr__) ! (min) X-ray centroid minute of Right Ascension (J2000)
      real*4        RAs        (nr__) ! (s) X-ray centroid second of Right Ascension (J2000)
      character*1   DE_        (nr__) ! X-ray centroid sign of the Declination (J2000)
      integer*4     DEd        (nr__) ! (deg) X-ray centroid degree of Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) X-ray centroid arcminute of Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) X-ray centroid arcsecond of Declination (J2000)
      real*4        Off        (nr__) ! (arcsec) Off axis angle
      real*4        Rcts       (nr__) ! (ct) ? Raw counts (only for table1)
      real*4        Ssig       (nr__) ! (ct) ? Source signal (only for table2)
      real*4        Ncts       (nr__) ! (ct) Net counts
      integer*4     Var        (nr__) ! [1/7]? Number of Bayesian block >95% confidence
*                               required to describe the lightcurve (table1) (1)
*Note (1): Any number >1 indicates variability at 95% confidence.

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

C  Declarations for 'table2.dat'	! Faint X-ray sources detected in the RCW 108 field

      integer*4 nr__1
      parameter (nr__1=87)	! Number of records
      character*73 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)

      integer*4     Src_1      (nr__1) ! Running source number ([WSB2008] in Simbad)
      character*17  CXOWSB_1   (nr__1) ! Official IAU style identification
*                               (HHMMSS.s+DDMMSS.s)
      integer*4     RAh_1      (nr__1) ! (h) X-ray centroid hour of Right Ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) X-ray centroid minute of Right Ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) X-ray centroid second of Right Ascension (J2000)
      character*1   DE__1      (nr__1) ! X-ray centroid sign of the Declination (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) X-ray centroid degree of Declination (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) X-ray centroid arcminute of Declination (J2000)
      real*4        DEs_1      (nr__1) ! (arcsec) X-ray centroid arcsecond of Declination (J2000)
      real*4        Off_1      (nr__1) ! (arcsec) Off axis angle
      real*4        Rcts_1     (nr__1) ! (ct) ? Raw counts (only for table1)
      real*4        Ssig_1     (nr__1) ! (ct) ? Source signal (only for table2)
      real*4        Ncts_1     (nr__1) ! (ct) Net counts
      integer*4     Var_1      (nr__1) ! [1/7]? Number of Bayesian block >95% confidence
*                               required to describe the lightcurve (table1) (1)
*Note (1): Any number >1 indicates variability at 95% confidence.

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

C  Declarations for 'table5.dat'	! Quartile values of X-ray sources

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

      character*5   Loc1       (nr__2) ! Location (Inner/East/West/North/South)
      integer*4     Src_2      (nr__2) ! Running source number
      real*4        Q25        (nr__2) ! ? The bottom (25%) quartile value
      real*4        e_Q25      (nr__2) ! ? Error in Q25
      real*4        m          (nr__2) ! ? The median quartile (=Q50)
      real*4        e_m        (nr__2) ! ? Error in m
      real*4        Q75        (nr__2) ! ? The top (75%) quartile value
      real*4        e_Q75      (nr__2) ! ? Error in Q75
      real*4        log_m__1_m_(nr__2) ! ([-]) ? Log of the m/(1-m) value
      real*4        v3_Q25_Q75 (nr__2) ! ? Three times Q25 divided by Q75

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

C  Declarations for 'table7.dat'	! One temperature spectral fits

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

      character*10  Loc        (nr__3) ! Location (RCW 108-IR/East/West/North/South)
      integer*4     Src_3      (nr__3) ! Running source number
      real*4        chi2       (nr__3) ! The {chi}^2^ value (1)
      real*4        NH         (nr__3) ! (10+22/cm2) Model hydrogen column density
      real*4        e_NH       (nr__3) ! (10+22/cm2) ? Error in NH
      character*1   l_kT       (nr__3) ! Limit flag on kT
      real*4        kT         (nr__3) ! (keV) Model temperature
      real*4        e_kT       (nr__3) ! (keV) ? Error in kT
      real*4        AFlux      (nr__3) ! ([mW/m2]) Absorbed flux
      real*4        UFlux      (nr__3) ! ([mW/m2]) Unabsorbed flux
      real*4        LogLx      (nr__3) ! ([10-7W]) Log of X-ray luminosity
*Note (1): Per degree of freedom. {chi}^2^/d.o.f is included for
*     completeness. These models were calculated with C statistics, it is
*     unclear how {chi}^2^/d.o.f relates to goodness of fit. The formal
*     errors are unbiased however. See text.

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

C  Declarations for 'table10.dat'	! Near-IR observations of X-ray sources

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

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

      character*10  Loc_1      (nr__4) ! Location (RCW 108-IR/East/West/North/South)
      integer*4     Src_4      (nr__4) ! Running source number
      character*1   f_Src      (nr__4) ! [a] double source (1)
      integer*4     RAh_2      (nr__4) ! (h) IR source hour of Right Ascension (J2000)
      integer*4     RAm_2      (nr__4) ! (min) IR source minute of Right Ascension (J2000)
      real*4        RAs_2      (nr__4) ! (s) IR source second of Right Ascension (J2000)
      character*1   DE__2      (nr__4) ! IR source sign of the Declination (J2000)
      integer*4     DEd_2      (nr__4) ! (deg) IR source degree of Declination (J2000)
      integer*4     DEm_2      (nr__4) ! (arcmin) IR source arcminute of Declination (J2000)
      real*4        DEs_2      (nr__4) ! (arcsec) IR source arcsecond of Declination (J2000)
      real*4        Offset     (nr__4) ! (arcsec) ? Offset from X-ray centroid position
      real*4        Off_2      (nr__4) ! (arcsec) Off axis angle
      real*4        Jmag       (nr__4) ! (mag) ? The J band magnitude
      real*4        e_Jmag     (nr__4) ! (mag) ? Error in Jmag
      real*4        Hmag       (nr__4) ! (mag) ? The H band magnitude
      real*4        e_Hmag     (nr__4) ! (mag) ? Error in Hmag
      real*4        Ksmag      (nr__4) ! (mag) ? The K_S_ band magnitude
      real*4        e_Ksmag    (nr__4) ! (mag) ? Error in Kmag
      real*4        Qmag       (nr__4) ! (mag) ? Infrared excess, reddening free quantity (2)
      real*4        AV         (nr__4) ! (mag) ? The V band extinction
      character*6   Model      (nr__4) ! Stellar model used (Disk, M star or
*                                     HMS = Higher mass star)
      character*3   Flag       (nr__4) ! Source flag (4)
*Note (1): VLT adaptive optics data indicate this source is a double.
*Note (2): Using the reddening free quantity: Q=(J-H)-1.70*(H-K_S_).
*Note (4): Sources flag as follows:
*    VLT = data are from the Very Large Telescope, reduction discussed in
*          Comeron & Schneider (2007, Cat. <J/A+A/473/149>);
*    NTT = data are from New Technology Telescope, reduction discussed in
*          Comeron et al. (2005A&A...433..955C);
*    The codes AAA, UAB, UAU, AAU, etc. represent the 2MASS (Cat. II/246)
*    photometry quality codes for the JHK channels: 
*       A = error<10.9%,
*       B = error<15.6%,
*       E = This category includes detections where the goodness-of-fit
*           quality of the profile-fit photometry was very poor
*       U = upper limit

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

C  Declarations for 'table11.dat'	! IRAC detections of X-ray sources in the RCW 108 field

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

      character*10  Loc_2      (nr__5) ! Location (RCW 108-IR/East/West/North/South)
      integer*4     Src_5      (nr__5) ! Running source number
      real*4        Offset_1   (nr__5) ! (arcsec) Offset from X-ray centroid position
      character*6   Off_3      (nr__5) ! (arcsec) Off axis angle
      real*4        v3_6mag    (nr__5) ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude
      real*4        v4_5mag    (nr__5) ! (mag) ? Spitzer/IRAC 4.5 micron band magnitude
      real*4        v5_8mag    (nr__5) ! (mag) ? Spitzer/IRAC 5.8 micron band magnitude
      real*4        v8_0mag    (nr__5) ! (mag) ? Spitzer/IRAC 8.0 micron band magnitude
      real*4        e_3_6mag   (nr__5) ! (mag) ? Error in 3.6mag
      real*4        e_4_5mag   (nr__5) ! (mag) ? Error in 4.5mag
      real*4        e_5_8mag   (nr__5) ! (mag) ? Error in 5.8mag
      real*4        e_8_0mag   (nr__5) ! (mag) ? Error in 8.0mag
      character*3   Class      (nr__5) ! IR evolution class (I=protostars, II=PMS with
*                                     disk, III=diskless PMS star)

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

C  Loading file 'table1.dat'	! Bright X-ray sources detected in the RCW 108 field

C  Format for file interpretation

    1 format(
     +  I3,1X,A17,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F5.1,
     +  1X,F6.1,1X,F3.1,1X,F6.1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,337
        read(1,'(A73)')ar__
        read(ar__,1)
     +  Src(i__),CXOWSB(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),Off(i__),Rcts(i__),Ssig(i__),
     +  Ncts(i__),Var(i__)
        if(ar__(55:60) .EQ. '') Rcts(i__) = rNULL__
        if(ar__(62:64) .EQ. '') Ssig(i__) = rNULL__
        if(ar__(73:73) .EQ. '') Var(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)
     +  Src(i__),CXOWSB(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),Off(i__),Rcts(i__),Ssig(i__),
     +  Ncts(i__),Var(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 'table2.dat'	! Faint X-ray sources detected in the RCW 108 field

C  Format for file interpretation

    2 format(
     +  I3,1X,A17,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F5.1,
     +  1X,F6.1,1X,F3.1,1X,F6.1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,87
        read(1,'(A73)')ar__1
        read(ar__1,2)
     +  Src_1(i__),CXOWSB_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Off_1(i__),
     +  Rcts_1(i__),Ssig_1(i__),Ncts_1(i__),Var_1(i__)
        if(ar__1(55:60) .EQ. '') Rcts_1(i__) = rNULL__
        if(ar__1(62:64) .EQ. '') Ssig_1(i__) = rNULL__
        if(ar__1(73:73) .EQ. '') Var_1(i__) = iNULL__
        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)
     +  Src_1(i__),CXOWSB_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Off_1(i__),
     +  Rcts_1(i__),Ssig_1(i__),Ncts_1(i__),Var_1(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 'table5.dat'	! Quartile values of X-ray sources

C  Format for file interpretation

    3 format(
     +  A5,1X,I3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
     +  F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,336
        read(1,'(A58)')ar__2
        read(ar__2,3)
     +  Loc1(i__),Src_2(i__),Q25(i__),e_Q25(i__),m(i__),e_m(i__),
     +  Q75(i__),e_Q75(i__),log_m__1_m_(i__),v3_Q25_Q75(i__)
        if(ar__2(11:15) .EQ. '') Q25(i__) = rNULL__
        if(ar__2(17:21) .EQ. '') e_Q25(i__) = rNULL__
        if(ar__2(23:27) .EQ. '') m(i__) = rNULL__
        if(ar__2(29:33) .EQ. '') e_m(i__) = rNULL__
        if(ar__2(35:39) .EQ. '') Q75(i__) = rNULL__
        if(ar__2(41:45) .EQ. '') e_Q75(i__) = rNULL__
        if(ar__2(47:52) .EQ. '') log_m__1_m_(i__) = rNULL__
        if(ar__2(54:58) .EQ. '') v3_Q25_Q75(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Loc1(i__),Src_2(i__),Q25(i__),e_Q25(i__),m(i__),e_m(i__),
     +  Q75(i__),e_Q75(i__),log_m__1_m_(i__),v3_Q25_Q75(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! One temperature spectral fits

C  Format for file interpretation

    4 format(
     +  A10,1X,I3,1X,F4.2,1X,F5.2,1X,F4.2,1X,A1,1X,F5.2,1X,F5.2,1X,
     +  F6.2,1X,F6.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,337
        read(1,'(A64)')ar__3
        read(ar__3,4)
     +  Loc(i__),Src_3(i__),chi2(i__),NH(i__),e_NH(i__),l_kT(i__),
     +  kT(i__),e_kT(i__),AFlux(i__),UFlux(i__),LogLx(i__)
        if(ar__3(27:30) .EQ. '') e_NH(i__) = rNULL__
        if(ar__3(40:44) .EQ. '') e_kT(i__) = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  Loc(i__),Src_3(i__),chi2(i__),NH(i__),e_NH(i__),l_kT(i__),
     +  kT(i__),e_kT(i__),AFlux(i__),UFlux(i__),LogLx(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table10.dat'	! Near-IR observations of X-ray sources

C  Format for file interpretation

    5 format(
     +  A10,1X,I3,1X,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,
     +  F5.3,1X,F5.1,1X,F5.2,1X,F6.4,1X,F5.2,1X,F6.4,1X,F6.3,1X,F6.4,
     +  1X,F5.2,1X,F5.2,1X,A6,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table10.dat')
      write(6,*) '....Loading file: table10.dat'
      do i__=1,367
        read(1,'(A115)')ar__4
        read(ar__4,5)
     +  Loc_1(i__),Src_4(i__),f_Src(i__),RAh_2(i__),RAm_2(i__),
     +  RAs_2(i__),DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),
     +  Offset(i__),Off_2(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),
     +  e_Hmag(i__),Ksmag(i__),e_Ksmag(i__),Qmag(i__),AV(i__),
     +  Model(i__),Flag(i__)
        if(ar__4(42:46) .EQ. '') Offset(i__) = rNULL__
        if(ar__4(54:58) .EQ. '') Jmag(i__) = rNULL__
        if(ar__4(60:65) .EQ. '') e_Jmag(i__) = rNULL__
        if(ar__4(67:71) .EQ. '') Hmag(i__) = rNULL__
        if(ar__4(73:78) .EQ. '') e_Hmag(i__) = rNULL__
        if(ar__4(80:85) .EQ. '') Ksmag(i__) = rNULL__
        if(ar__4(87:92) .EQ. '') e_Ksmag(i__) = rNULL__
        if(ar__4(94:98) .EQ. '') Qmag(i__) = rNULL__
        if(ar__4(100:104) .EQ. '') AV(i__) = rNULL__
        RAdeg_2(i__) = rNULL__
        DEdeg_2(i__) = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
        if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
        if(RAs_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_2(i__)/240.
        if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
        if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
        if(DEs_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_2(i__)/3600.
        if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c    ..............Just test output...........
        write(6,5)
     +  Loc_1(i__),Src_4(i__),f_Src(i__),RAh_2(i__),RAm_2(i__),
     +  RAs_2(i__),DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),
     +  Offset(i__),Off_2(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),
     +  e_Hmag(i__),Ksmag(i__),e_Ksmag(i__),Qmag(i__),AV(i__),
     +  Model(i__),Flag(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table11.dat'	! IRAC detections of X-ray sources in the RCW 108 field

C  Format for file interpretation

    6 format(
     +  A10,1X,I3,1X,F5.3,1X,A6,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
     +  F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table11.dat')
      write(6,*) '....Loading file: table11.dat'
      do i__=1,235
        read(1,'(A75)')ar__5
        read(ar__5,6)
     +  Loc_2(i__),Src_5(i__),Offset_1(i__),Off_3(i__),v3_6mag(i__),
     +  v4_5mag(i__),v5_8mag(i__),v8_0mag(i__),e_3_6mag(i__),
     +  e_4_5mag(i__),e_5_8mag(i__),e_8_0mag(i__),Class(i__)
        if(ar__5(29:33) .EQ. '') v3_6mag(i__) = rNULL__
        if(ar__5(35:39) .EQ. '') v4_5mag(i__) = rNULL__
        if(ar__5(41:45) .EQ. '') v5_8mag(i__) = rNULL__
        if(ar__5(47:51) .EQ. '') v8_0mag(i__) = rNULL__
        if(ar__5(53:56) .EQ. '') e_3_6mag(i__) = rNULL__
        if(ar__5(58:61) .EQ. '') e_4_5mag(i__) = rNULL__
        if(ar__5(63:66) .EQ. '') e_5_8mag(i__) = rNULL__
        if(ar__5(68:71) .EQ. '') e_8_0mag(i__) = rNULL__
c    ..............Just test output...........
        write(6,6)
     +  Loc_2(i__),Src_5(i__),Offset_1(i__),Off_3(i__),v3_6mag(i__),
     +  v4_5mag(i__),v5_8mag(i__),v8_0mag(i__),e_3_6mag(i__),
     +  e_4_5mag(i__),e_5_8mag(i__),e_8_0mag(i__),Class(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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