FORTRAN Generation
(/./ftp/cats/J/ApJS/160/319)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/160/319 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-Sep-10
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/ApJS/160/319      COUP: observations and source lists          (Getman+, 2005)
*================================================================================
*Chandra Orion Ultradeep Project: observations and sources lists.
*    Getman K.V., Flaccomio E., Broos P.S., Grosso N., Tsujimoto M.,
*    Townsley L., Garmire G.P., Kastner J., Li J., Harnden F.R.JR, Wolk S.,
*    Murray S.S., Lada C.J., Muench A.A., McCaughrean M.J., Meeus G.,
*    Damiani F., Micela G., Sciortino S., Bally J., Hillenbrand L.A., Herbst W.,
*    Preibisch T., Feigelson E.D.
*   <Astrophys. J. Suppl. Ser., 160, 319-352 (2005)>
*   =2005ApJS..160..319G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! COUP X-ray source locations

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     COUP        ! COUP source number
      character*16  Name        ! IAU designation
*                                 (COUP JHHMMSS.s+DDMMSS in Simbad)
      real*8        RAdeg       ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        PosErr      ! (arcsec) Positional error, 1{sigma} arcsec
      real*4        Offaxis     ! (arcmin) Off-axis angle
      character*6   Flags       ! Flag indicating source detection problem (1)
      integer*4     Fl1         ! Flag indicating source detection map for
*                                 Chicago wavdetect (2)
      integer*4     Fl2         ! Flag indicating source detection map for
*                                 Palermo wavelet detection (3)
      integer*4     M1          ! Flag indicating source detection method (4)
      integer*4     M2          ! Flag indicating source detection method (5)
      integer*4     M3          ! Flag indicating source detection method (6)
      real*4        SigAE       ! Source significance (in {sigma})
*                                 from acis_extract
      real*4        SigPWD      ! ? Source significance (in {sigma}) from
*                                 Palermo wavelet detection
      integer*4     ACIS        ! ? Previous Chandra ACIS X-ray source
      integer*4     HRC         ! ? Previous Chandra HRC X-ray source
*Note (1): Flag indicating source detection problem:
*    u----- = source existence is uncertain;
*    -d---- = double source (90% point spread function overlap);
*    --p--- = pileup source (photon surface brightness >0.003ct/s/pix);
*    ---t-- = source extraction region crosses a bright source readout trail;
*    ----w- = source in wings of a bright source with >20000ct,
*             or source with Offaxis<2';
*    -----x = source with inhomogeneous or low exposure map.
*Note (2): Flag indicating source detection map for Chicago wavdetect,
*          defined as follows:
*    0 = no detection map for Chicago wavdetect
*    1 = total band (0.5-8keV) image
*    2 = soft band (0.5-2keV) image
*    3 = hard band (2-8keV) image
*    4 = very faint mode total band image
*Note (3): Flag indicating source detection map for Palermo wavelet detection,
*          defined as follows:
*    0 = non-zero value of second digit indicates detection map
*         for Palermo wavelet detection
*    1 = very faint mode 0.3-7keV band image
*    2 = sub-pixel enhanced resolution 0.3-7keV band image
*Note (4): Flag indicating source detection method, defined as follows:
*    0 = no detection using Chicago wavdetect
*    1 = probability threshold 1.10^-6^
*    2 = probability threshold 1.10^-5^
*Note (5): Flag indicating source detection method, defined as follows:
*    0 = no detection using Palermo wavelet detection
*    1 = detection using Palermo wavelet detection
*Note (6): Flag indicating source detection method, defined as follows:
*    0 = non-zero entry indicates that the source was found only by visual
*         inspection
*    1 = Penn State and Palermo groups
*    2 = Penn State group only
*    3 = Palermo group only

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

C  Declarations for 'table4.dat'	! COUP source X-ray photometry

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

      integer*4     COUP_1      ! COUP source number
      character*16  Name_1      ! IAU designation
*                                    (COUP JHHMMSS.s+DDMMSS in Simbad)
      integer*4     SrcCts      ! (ct) Source counts in extracted area
      integer*4     BkgCts      ! (ct) Background counts in extracted area
      integer*4     NetCts      ! (ct) Net counts in extracted area
      integer*4     ExtArea     ! (pix) Extraction area
      real*4        PSFFrac     ! Point spread fraction in extracted area
*                                    at fiducial energy 1.5keV
      real*4        ExpTime     ! (ks) Exposure time
      real*4        CtFlConv    ! (10+9cm2) Conversion factor between counts and
*                                    flux in units of 10^9^ct.cm^2^/photon
      real*8        Xflux       ! ([cm-2.s-1]) Log of the 0.5-8.0keV Incident photon
*                                    flux in units of photons/cm^2^/s
      real*4        v_E_        ! (keV) Median energy corrected for background
      real*4        HR1         ! ? Hardness ratio 1 (0.5-2.0/2.0-8.0keV) (1)
      real*4        e_HR1       ! ? Lower uncertainty on HR1
      real*4        E_HR1_1     ! ? Upper uncertainty on HR1
      real*4        HR2         ! ? Hardness ratio 2 (0.5-1.7/1.7-2.8keV) (1)
      real*4        e_HR2       ! ? Lower uncertainty on HR2
      real*4        E_HR2_1     ! ? Upper uncertainty on HR2
      real*4        HR3         ! ? Hardness ratio 3 (1.7-2.8/2.8-8.0keV) (1)
      real*4        e_HR3       ! ? Lower uncertainty on HR3
      real*4        E_HR3_1     ! ? Upper uncertainty on HR3
*Note (1): The hardness ratios are defined by HR=(Cts_h_-Cts_s_)/(Cts_h_+Cts_s_),
*          where subscripts "h" and "s" refer to a harder and softer band,
*          respectively. For COUP, we define HR1 to reproduce the commonly used
*          hardness ratio between the s=0.5-2.0keV and h=2.0-8.0keV bands,
*          HR2 to highlight the softer part of the spectrum between s=0.5-1.7keV
*          and h=1.7-2.8keV, and HR3 to measure the harder part of the spectrum
*          between s=1.7-2.8keV and h=2.8-8.0keV.

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

C  Declarations for 'table6.dat'	! COUP source X-ray spectroscopy

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

      integer*4     COUP_2      ! COUP source number
      character*16  Name_2      ! IAU designation
*                                (COUP JHHMMSS.s+DDMMSS in Simbad)
      real*4        logNH       ! ([cm-2]) ? Hydrogen column density
      real*4        e_logNH     ! ([cm-2]) ? Error in logNH
      real*4        kT1         ! (keV) ? Energy of first plasma component
      real*4        e_kT1       ! (keV) ? Error in kT1
      real*4        kT2         ! (keV) ? Energy of second plasma component, if needed
      real*4        e_kT2       ! (keV) ? Error in kT2
      real*4        EM1         ! ([cm-3]) ? Emission measure of first plasma component
      real*4        e_EM1       ! ([cm-3]) ? Error in EM1
      real*4        EM2         ! ([cm-3]) ? Emission measure of second plasma component
      real*4        e_EM2       ! ([cm-3]) ? Error in EM2
      real*4        Chi2        ! ? Chi-squared per degree of freedom for
*                                  spectral fit
      integer*4     d_Chi2      ! ? Degrees of freedom for Chi2
      character*2   f_Chi2      ! Spectral fit flag (1)
      character*2   Nph         ! Spectral model flag (2)
      character*1   Nc          ! Spectral model flag (3)
      character*2   Npl         ! Spectral model flag (4)
      character*9   sFlags      ! Spectral features and problems flag (5)
*Note (1): Flag marking low quality spectral fits:
*    m = marginal fit (probability of chi-squared between 0.005 and 0.05);
*    p = poor fit (probability of chi-squared less than 0.005).
*Note (2): Number of photons binned together prior to spectral fitting.
*Note (3): Number of absorption components used in the best fit.
*Note (4): Number of plasma components used in the best fit.  A "g" indicates
*          that a grid of initial spectral parameters was computed.
*Note (5): Spectral features and problems flag:
*    l-------- = emission line deviations from fit;
*    -s------- = soft energy deviation from fit;
*    --h------ = hard energy deviation from fit;
*    ---c----- = spectrum possibly corrupted by nearby source;
*    ----t---- = possibly two components with different NH values;
*    -----p--- = poor statistics and/or poor fit;
*    ------m-- = manual background extraction used due to PSF wings or
*                readout trails from bright sources;
*    -------a- = annular extraction region used for heavily pileup source;
*    --------w = whole extraction region used for slightly pileup source.

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

C  Declarations for 'table7.dat'	! COUP source X-ray variability

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

      integer*4     COUP_3      ! COUP source number
      character*16  Name_3      ! IAU designation
*                                    (COUP JHHMMSS.s+DDMMSS in Simbad)
      character*1   Var         ! Variability flag (1)
      real*4        logP_KS     ! ([-]) log probability of variability (2)
      integer*4     BBNum       ! Bayesian blocks, number of segments
      real*8        BBMin       ! (ct/ks) Bayesian blocks, minimum count rate
      real*4        e_BBMin     ! (ct/ks) Bayesian blocks, error in minimum count rate
      real*8        BBMax       ! (ct/ks) Bayesian blocks, maximum count rate
      real*4        e_BBMax     ! (ct/ks) Bayesian blocks, error in maximum count rate
*Note (1): An x indicates the source is located on an ACIS CCD chip gap and the
*          variability analysis was based on the primary chip data only.
*Note (2): This is the log of the probability that a source is constant, as
*          measured with a Kolmogorov-Smirnov 1-sample test.  A value of -4.0
*          indicates a probability less than 0.0001.

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

C  Declarations for 'table8.dat'	! COUP source X-ray luminosities

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

      integer*4     COUP_4      ! COUP source number
      character*16  Name_4      ! IAU designation
*                                     (COUP JHHMMSS.s+DDMMSS in Simbad)
      character*1   l_Ls        ! Upper limit flag for Ls
      real*4        Ls          ! ([10-7W]) ? Log of the observed soft band
*                                     (0.5-2.0keV) luminosity (1)
      character*1   l_Lh        ! Upper limit flag for Lh
      real*4        Lh          ! ([10-7W]) ? Log of the observed hard band
*                                     (2.0-8.0keV) luminosity
      real*4        Lhc         ! ([10-7W]) ? Log of the estimated luminosity in hard
*                                     band corrected for absorption
      real*4        Lt          ! ([10-7W]) Log of the observed total band
*                                     (0.5-8.0keV) luminosity
      real*4        Ltc         ! ([10-7W]) ? Log of the estimated luminosity in total
*                                     band corrected for absorption
*Note (1): In units of erg/s.

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

C  Declarations for 'table9.dat'	! Probable optical counterparts of COUP sources

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

      integer*4     COUP_5      ! COUP source number
      character*16  Name_5      ! IAU designation
*                                      (COUP JHHMMSS.s+DDMMSS in Simbad)
      character*6   OptID       ! Optical star designation (1)
      real*4        OptOff      ! (arcsec) ? COUP-optical positional offset (2)
      real*4        Vmag        ! (mag) ? The V band magnitude (2)
      real*4        Imag        ! (mag) ? The I band magnitude (2)
      character*11  SpType      ! Spectral type (2)
      real*4        AV          ! (mag) ? The visual absorption (2)
      real*4        log_Teff    ! ([K]) ? Log of the stellar effective
*                                      temperature (2)
      real*4        log_LBol    ! ([solLum]) ? Log of the stellar bolometric
*                                      luminosity (2)
      real*4        Rad         ! (solRad) ? Stellar radius (2)
      real*4        Mass        ! (solMass) ? Stellar mass (3)
      real*4        log_Age     ! ([yr]) ? Log of stellar age (3)
      real*4        Del_I_K     ! (mag) ? The {Delta}(I-K) near-infrared excess (4)
      real*4        EWCa        ! (0.1nm) ? Equivalent width Ca II line in {AA} (4)
      real*4        v_Vmag_     ! (mag) ? The average V band magnitude (5)
      real*4        e__Vmag_    ! (mag) ? Error in Vmag (5)
      real*4        VRange      ! (mag) ? Range in V band magnitudes (5)
      real*4        Per         ! (d) ? Photometric rotational period (5)
*Note (1): 0-9999 from Hillenbrand (1997, Cat. <J/AJ/113/1733>),
*          10000-11000 from Herbst et al. (2002, Cat. <J/A+A/396/513>).
*    Notes  on individual source 053508.0-053243:
*    This source spans optical stars 312 and 313.
*Note (2): From Hillenbrand (1997, Cat. <J/AJ/113/1733>).
*Note (3): Masses and ages from PMS models of Siess et al. (2000A&A...358..593S).
*Note (4): From Hillenbrand et al. (1998, Cat. <J/AJ/116/1816>).
*Note (5): From Herbst et al. (2002, Cat. <J/A+A/396/513>) based on about 92
*          measurements.

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

C  Declarations for 'notes.dat'	! Notes on individual sources

      integer*4 nr__6
      parameter (nr__6=48)	! Number of records
      character*66 ar__6  	! Full-size record

      character*16  Name_6      ! IAU designation
*                                   (COUP JHHMMSS.s+DDMMSS in Simbad)
      character*48  Note        ! Note

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

C  Declarations for 'table10.dat'	! Probable near-infrared counterparts of COUP sources

      integer*4 nr__7
      parameter (nr__7=1616)	! Number of records
      character*88 ar__7  	! Full-size record

      integer*4     COUP_6      ! COUP source number (1)
      character*16  Name_7      ! IAU designation
*                                   (COUP JHHMMSS.s+DDMMSS in Simbad)
      character*16  JHKSrc      ! JHK source name (2)
      real*4        JHKOff      ! (arcsec) ? The COUP-JHK source positional offset
      real*4        Jmag        ! (mag) ? The J band magnitude
      real*4        Hmag        ! (mag) ? The H band magnitude
      real*4        Ksmag       ! (mag) ? The K_s_ band magnitude
      character*3   r_Ksmag     ! Source of photometry flag (3)
      character*3   q_2M        ! 2MASS photometric quality flag (G1)
      character*3   f_2M        ! 2MASS contamination and confusion flag (G2)
      character*1   r_Lmag      ! Reference flag for Lmag (6)
      character*5   LSrc        ! The L band source name
      real*4        Lmag        ! (mag) ? The L band magnitude
*Note (1): Notes  on individual sources:
*    053502.4-052046 = This source spans VLT stars 18 and 19
*    053516.2-052456 = This source spans VLT stars 575 and 580
*    053520.4-052329 = This source spans VLT stars 853 and 855
*    053521.3-052345 = This source spans VLT stars 902 and 905
*    053526.9-052400 = This source spans VLT stars 1107 and 1108
*Note (2): When obtained from the 2MASS catalog (outer region of the field),
*          this is the IAU designation of the 2MASS source.  When obtained from
*          the VLT merged catalog (inner region), this is the running source
*          number given by McCaughrean et al. (2005, in prep.).
*Note (3): This is the flag for the merged catalog of McCaughrean et al.
*          (2005, in prep.) indicating the source of the photometry where the
*          three characters refer to the JHKs bands, respectively.
*    0 = Undetected;
*    1 = VLT;
*    2 = MLLA NTT;
*    3 = MLLA FLWO;
*    4 = Hillenbrand & Carpenter (2000, Cat. <J/ApJ/540/236>);
*    5 = 2MASS (and in few cases, other sources).
*Note (6): References, defined as follows:
*    M = Muench, Lada, Lada, & Alves (2002, Cat. <J/ApJ/573/366> - MLLA);
*    L = Lada, Muench, Lada, & Alves (2004, Cat. <J/AJ/128/1254>).

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

C  Declarations for 'table11.dat'	! Upper limits of undetected stars from
                             Hillenbrand (1997, Cat. <J/AJ/113/1733>)

      integer*4 nr__8
      parameter (nr__8=201)	! Number of records
      character*117 ar__8  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      character*5   v_H97b_     ! Optical star designation (1)
      real*8        RAdeg_1     ! (deg) Right ascension (J2000) (1)
      real*8        DEdeg_1     ! (deg) Declination (J2000) (1)
      integer*4     LimCt       ! (ct) Upper limit to the X-ray counts at this
*                                      location
      real*4        ExpTime_1   ! (ks) Exposure time at this location
      character*2   ConfFl      ! Confusion flag with nearby X-ray source
      real*4        Vmag_1      ! (mag) ? The V band magnitude (1)
      real*4        Imag_1      ! (mag) ? The I band magnitude (1)
      character*8   SpType_1    ! Spectral type (1)
      real*4        AV_1        ! (mag) ? The visual absorption (1)
      real*4        log_Teff_1  ! ([K]) ? Log of the stellar effective
*                                      temperature (1)
      real*4        log_LBol_1  ! ([solLum]) ? Log of the stellar bolometric
*                                      luminosity (1)
      real*4        Rad_1       ! (solRad) ? Stellar radius (1)
      real*4        Mass_1      ! (solMass) ? Stellar mass (2)
      real*4        log_Age_1   ! ([yr]) ? Log of the stellar age (2)
      real*4        Del_I_K_1   ! (mag) ? The {Delta}(I-K) near-infrared excess (3)
      real*4        EWCa_1      ! (0.1nm) ? Equivalent width Ca II line
*                                      in Angstroms (3)
*Note (1):  From Hillenbrand (1997, Cat. <J/AJ/113/1733>).
*Note (2):  Masses and ages from PMS models of Siess et al. (2000A&A...358..593S)
*Note (3):  From Hillenbrand et al. (1998, Cat. <J/AJ/116/1816>).

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

C  Declarations for 'table12.dat'	! Upper limits of undetected sources from the
                             Two Micron All Sky Survey (Cat. <II/246>)

      integer*4 nr__9
      parameter (nr__9=1145)	! Number of records
      character*64 ar__9  	! Full-size record

      character*16  v2MASS      ! 2MASS source name
      integer*4     LimCt_1     ! (ct) Upper limit to the X-ray counts at this location
      real*4        ExpTime_2   ! (ks) Exposure time at this location
      character*2   ConfFl_1    ! Confusion flag with nearby X-ray source
      real*4        Jmag_1      ! (mag) The 2MASS J band magnitude
      real*4        Hmag_1      ! (mag) The 2MASS H band magnitude
      real*4        Ksmag_1     ! (mag) The 2MASS K_s_ band magnitude
      character*4   q_2M_1      ! 2MASS photometric quality flag (G1)
      character*4   f_2M_1      ! 2MASS contamination and confusion flag (G2)

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

C  Loading file 'table2.dat'	! COUP X-ray source locations

C  Format for file interpretation

    1 format(
     +  I4,1X,A16,1X,F9.6,1X,F9.6,1X,F4.2,1X,F5.2,1X,A6,1X,I1,I1,1X,
     +  I1,I1,I1,1X,F5.1,1X,F5.1,1X,I4,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1616
        read(1,'(A87)')ar__
        read(ar__,1)
     +  COUP,Name,RAdeg,DEdeg,PosErr,Offaxis,Flags,Fl1,Fl2,M1,M2,M3,
     +  SigAE,SigPWD,ACIS,HRC
        if(ar__(74:78) .EQ. '') SigPWD = rNULL__
        if(ar__(80:83) .EQ. '') ACIS = iNULL__
        if(ar__(85:87) .EQ. '') HRC = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  COUP,Name,RAdeg,DEdeg,PosErr,Offaxis,Flags,Fl1,Fl2,M1,M2,M3,
     +  SigAE,SigPWD,ACIS,HRC
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! COUP source X-ray photometry

C  Format for file interpretation

    2 format(
     +  I4,1X,A16,1X,I5,1X,I4,1X,I5,1X,I4,1X,F5.2,1X,F6.1,1X,F6.3,1X,
     +  F7.3,1X,F5.2,1X,F6.2,1X,F5.2,1X,F5.2,1X,F6.2,1X,F5.2,1X,F5.2,
     +  1X,F6.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,1616
        read(1,'(A134)')ar__1
        read(ar__1,2)
     +  COUP_1,Name_1,SrcCts,BkgCts,NetCts,ExtArea,PSFFrac,ExpTime,
     +  CtFlConv,Xflux,v_E_,HR1,e_HR1,E_HR1_1,HR2,e_HR2,E_HR2_1,HR3,
     +  e_HR3,E_HR3_1
        if(ar__1(79:84) .EQ. '') HR1 = rNULL__
        if(ar__1(86:90) .EQ. '') e_HR1 = rNULL__
        if(ar__1(92:96) .EQ. '') E_HR1_1 = rNULL__
        if(ar__1(98:103) .EQ. '') HR2 = rNULL__
        if(ar__1(105:109) .EQ. '') e_HR2 = rNULL__
        if(ar__1(111:115) .EQ. '') E_HR2_1 = rNULL__
        if(ar__1(117:122) .EQ. '') HR3 = rNULL__
        if(ar__1(124:128) .EQ. '') e_HR3 = rNULL__
        if(ar__1(130:134) .EQ. '') E_HR3_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  COUP_1,Name_1,SrcCts,BkgCts,NetCts,ExtArea,PSFFrac,ExpTime,
     +  CtFlConv,Xflux,v_E_,HR1,e_HR1,E_HR1_1,HR2,e_HR2,E_HR2_1,HR3,
     +  e_HR3,E_HR3_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! COUP source X-ray spectroscopy

C  Format for file interpretation

    3 format(
     +  I4,1X,A16,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,
     +  F6.2,1X,F5.2,1X,F6.2,1X,F5.2,1X,F5.2,1X,I4,1X,A2,2X,A2,1X,A1,
     +  1X,A2,2X,A9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,1616
        read(1,'(A123)')ar__2
        read(ar__2,3)
     +  COUP_2,Name_2,logNH,e_logNH,kT1,e_kT1,kT2,e_kT2,EM1,e_EM1,EM2,
     +  e_EM2,Chi2,d_Chi2,f_Chi2,Nph,Nc,Npl,sFlags
        if(ar__2(23:28) .EQ. '') logNH = rNULL__
        if(ar__2(30:35) .EQ. '') e_logNH = rNULL__
        if(ar__2(37:42) .EQ. '') kT1 = rNULL__
        if(ar__2(44:49) .EQ. '') e_kT1 = rNULL__
        if(ar__2(51:56) .EQ. '') kT2 = rNULL__
        if(ar__2(58:63) .EQ. '') e_kT2 = rNULL__
        if(ar__2(65:70) .EQ. '') EM1 = rNULL__
        if(ar__2(72:76) .EQ. '') e_EM1 = rNULL__
        if(ar__2(78:83) .EQ. '') EM2 = rNULL__
        if(ar__2(85:89) .EQ. '') e_EM2 = rNULL__
        if(ar__2(91:95) .EQ. '') Chi2 = rNULL__
        if(ar__2(97:100) .EQ. '') d_Chi2 = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  COUP_2,Name_2,logNH,e_logNH,kT1,e_kT1,kT2,e_kT2,EM1,e_EM1,EM2,
     +  e_EM2,Chi2,d_Chi2,f_Chi2,Nph,Nc,Npl,sFlags
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! COUP source X-ray variability

C  Format for file interpretation

    4 format(
     +  I4,1X,A16,2X,A1,1X,F6.2,1X,I4,1X,F7.2,1X,F6.2,1X,F8.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,1616
        read(1,'(A67)')ar__3
        read(ar__3,4)
     +  COUP_3,Name_3,Var,logP_KS,BBNum,BBMin,e_BBMin,BBMax,e_BBMax
c    ..............Just test output...........
        write(6,4)
     +  COUP_3,Name_3,Var,logP_KS,BBNum,BBMin,e_BBMin,BBMax,e_BBMax
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! COUP source X-ray luminosities

C  Format for file interpretation

    5 format(I4,1X,A16,1X,A1,F5.2,1X,A1,F5.2,1X,F5.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,1616
        read(1,'(A53)')ar__4
        read(ar__4,5)COUP_4,Name_4,l_Ls,Ls,l_Lh,Lh,Lhc,Lt,Ltc
        if(ar__4(24:28) .EQ. '') Ls = rNULL__
        if(ar__4(31:35) .EQ. '') Lh = rNULL__
        if(ar__4(37:41) .EQ. '') Lhc = rNULL__
        if(ar__4(49:53) .EQ. '') Ltc = rNULL__
c    ..............Just test output...........
        write(6,5)COUP_4,Name_4,l_Ls,Ls,l_Lh,Lh,Lhc,Lt,Ltc
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! Probable optical counterparts of COUP sources

C  Format for file interpretation

    6 format(
     +  I4,1X,A16,1X,A6,1X,F5.2,1X,F6.2,1X,F6.2,1X,A11,1X,F6.2,1X,
     +  F6.3,1X,F6.2,1X,F6.2,1X,F6.2,1X,F5.2,1X,F6.2,1X,F6.1,1X,F6.2,
     +  1X,F5.2,1X,F5.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,1616
        read(1,'(A141)')ar__5
        read(ar__5,6)
     +  COUP_5,Name_5,OptID,OptOff,Vmag,Imag,SpType,AV,log_Teff,
     +  log_LBol,Rad,Mass,log_Age,Del_I_K,EWCa,v_Vmag_,e__Vmag_,
     +  VRange,Per
        if(ar__5(30:34) .EQ. '') OptOff = rNULL__
        if(ar__5(36:41) .EQ. '') Vmag = rNULL__
        if(ar__5(43:48) .EQ. '') Imag = rNULL__
        if(ar__5(62:67) .EQ. '') AV = rNULL__
        if(ar__5(69:74) .EQ. '') log_Teff = rNULL__
        if(ar__5(76:81) .EQ. '') log_LBol = rNULL__
        if(ar__5(83:88) .EQ. '') Rad = rNULL__
        if(ar__5(90:95) .EQ. '') Mass = rNULL__
        if(ar__5(97:101) .EQ. '') log_Age = rNULL__
        if(ar__5(103:108) .EQ. '') Del_I_K = rNULL__
        if(ar__5(110:115) .EQ. '') EWCa = rNULL__
        if(ar__5(117:122) .EQ. '') v_Vmag_ = rNULL__
        if(ar__5(124:128) .EQ. '') e__Vmag_ = rNULL__
        if(ar__5(130:134) .EQ. '') VRange = rNULL__
        if(ar__5(136:141) .EQ. '') Per = rNULL__
c    ..............Just test output...........
        write(6,6)
     +  COUP_5,Name_5,OptID,OptOff,Vmag,Imag,SpType,AV,log_Teff,
     +  log_LBol,Rad,Mass,log_Age,Del_I_K,EWCa,v_Vmag_,e__Vmag_,
     +  VRange,Per
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Notes on individual sources

C  Format for file interpretation

    7 format(A16,2X,A48)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,48
        read(1,'(A66)')ar__6
        read(ar__6,7)Name_6,Note
c    ..............Just test output...........
        write(6,7)Name_6,Note
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table10.dat'	! Probable near-infrared counterparts of COUP sources

C  Format for file interpretation

    8 format(
     +  I4,1X,A16,1X,A16,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,A3,1X,A3,
     +  1X,A3,1X,A1,1X,A5,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table10.dat')
      write(6,*) '....Loading file: table10.dat'
      do i__=1,1616
        read(1,'(A88)')ar__7
        read(ar__7,8)
     +  COUP_6,Name_7,JHKSrc,JHKOff,Jmag,Hmag,Ksmag,r_Ksmag,q_2M,f_2M,
     +  r_Lmag,LSrc,Lmag
        if(ar__7(40:44) .EQ. '') JHKOff = rNULL__
        if(ar__7(46:50) .EQ. '') Jmag = rNULL__
        if(ar__7(52:56) .EQ. '') Hmag = rNULL__
        if(ar__7(58:62) .EQ. '') Ksmag = rNULL__
        if(ar__7(84:88) .EQ. '') Lmag = rNULL__
c    ..............Just test output...........
        write(6,8)
     +  COUP_6,Name_7,JHKSrc,JHKOff,Jmag,Hmag,Ksmag,r_Ksmag,q_2M,f_2M,
     +  r_Lmag,LSrc,Lmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table11.dat'	! Upper limits of undetected stars from
*                             Hillenbrand (1997, Cat. <J/AJ/113/1733>)

C  Format for file interpretation

    9 format(
     +  A5,1X,F9.6,1X,F9.6,1X,I6,1X,F6.1,1X,A2,1X,F6.2,1X,F6.2,1X,A8,
     +  1X,F5.2,1X,F6.3,1X,F6.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F6.2,1X,
     +  F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table11.dat')
      write(6,*) '....Loading file: table11.dat'
      do i__=1,201
        read(1,'(A117)')ar__8
        read(ar__8,9)
     +  v_H97b_,RAdeg_1,DEdeg_1,LimCt,ExpTime_1,ConfFl,Vmag_1,Imag_1,
     +  SpType_1,AV_1,log_Teff_1,log_LBol_1,Rad_1,Mass_1,log_Age_1,
     +  Del_I_K_1,EWCa_1
        if(ar__8(44:49) .EQ. '') Vmag_1 = rNULL__
        if(ar__8(51:56) .EQ. '') Imag_1 = rNULL__
        if(ar__8(67:71) .EQ. '') AV_1 = rNULL__
        if(ar__8(73:78) .EQ. '') log_Teff_1 = rNULL__
        if(ar__8(80:85) .EQ. '') log_LBol_1 = rNULL__
        if(ar__8(87:91) .EQ. '') Rad_1 = rNULL__
        if(ar__8(93:97) .EQ. '') Mass_1 = rNULL__
        if(ar__8(99:103) .EQ. '') log_Age_1 = rNULL__
        if(ar__8(105:110) .EQ. '') Del_I_K_1 = rNULL__
        if(ar__8(112:117) .EQ. '') EWCa_1 = rNULL__
c    ..............Just test output...........
        write(6,9)
     +  v_H97b_,RAdeg_1,DEdeg_1,LimCt,ExpTime_1,ConfFl,Vmag_1,Imag_1,
     +  SpType_1,AV_1,log_Teff_1,log_LBol_1,Rad_1,Mass_1,log_Age_1,
     +  Del_I_K_1,EWCa_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table12.dat'	! Upper limits of undetected sources from the
*                             Two Micron All Sky Survey (Cat. <II/246>)

C  Format for file interpretation

   10 format(
     +  A16,1X,I6,1X,F6.1,1X,A2,1X,F6.2,1X,F6.2,1X,F6.2,1X,A4,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table12.dat')
      write(6,*) '....Loading file: table12.dat'
      do i__=1,1145
        read(1,'(A64)')ar__9
        read(ar__9,10)
     +  v2MASS,LimCt_1,ExpTime_2,ConfFl_1,Jmag_1,Hmag_1,Ksmag_1,
     +  q_2M_1,f_2M_1
c    ..............Just test output...........
        write(6,10)
     +  v2MASS,LimCt_1,ExpTime_2,ConfFl_1,Jmag_1,Hmag_1,Ksmag_1,
     +  q_2M_1,f_2M_1
c    .......End.of.Just test output...........
      end do
      close(1)

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