FORTRAN Generation
(/./ftp/cats/J/A_A/359/227)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/359/227 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-20
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/359/227       Lindroos binary systems X-ray emission   (Huelamo+, 2000)
*================================================================================
*X-ray emission from Lindroos binary systems.
*    Huelamo N., Neuhaeuser R., Stelzer B., Supper R., Zinnecker H.
*   <Astron. Astrophys. 359, 227 (2000)>
*   =2000A&A...359..227H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Stellar Data of the binary sample

      integer*4 nr__
      parameter (nr__=50)	! Number of records
      character*90 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     HD         (nr__) ! HD (Cat. III/135) number
      character*3   m_HD       (nr__) ! (A+BCX ) Multiplicity index on HD
      character*12  SpType     (nr__) ! MK spectral type (1)
      integer*4     RAh        (nr__) ! (h) Optical right ascension (J2000) (2)
      integer*4     RAm        (nr__) ! (min) Optical right ascension (J2000) (2)
      real*4        RAs        (nr__) ! (s) Optical right ascension (J2000) (2)
      character*1   DE_        (nr__) ! Optical declination sign (J2000) (2)
      integer*4     DEd        (nr__) ! (deg) Optical declination (J2000) (2)
      integer*4     DEm        (nr__) ! (arcmin) Optical declination (J2000) (2)
      real*4        DEs        (nr__) ! (arcsec) Optical declination (J2000) (2)
      real*4        Sep        (nr__) ! (arcsec) Separation angle (1)
      real*4        Dist       (nr__) ! (pc) Distance (3)
      character*1   u_Dist     (nr__) ! Uncertainty flag on Dist
      character*1   r_Dist     (nr__) ! [+] +: data from Lindroos, 1986A&A...156..223L
      real*4        e_Dist     (nr__) ! (pc) ? rms uncertainty on Dist
      character*1   u_e_Dist   (nr__) ! Uncertainty flag on e_Dist
      real*4        VmagA      (nr__) ! (mag) V magnitude of the primary
      character*1   n_VmagA    (nr__) ! [*] Note on VmagA (4)
      real*4        VmagB      (nr__) ! (mag) ? V magnitude of the secondary
      character*1   n_VmagB    (nr__) ! [*7] Note on VmagB (4), (7)
      real*4        AV         (nr__) ! (mag) ? Absorption in V band
      character*2   Class      (nr__) ! Classification (6)
*Note (1): Taken from Pallavicini et al. (1992A&A...261..245P)
*Note (2): Coordinates of the primary star
*Note (3): Deduced from Hipparcos parallax of the primary star, except
*     those marked with + taken from Lindroos, 1986A&A...156..223L
*Note (4): Adopted from Pallavicini et al. (1992A&A...261..245P) except
*     those marked with an asterisk obtained from the SIMBAD database
*Note (6): Classification taken by Pallavicini et al. (1992A&A...261..245P)
*     with respect to the presence of the Lithium absorption line and CaII
*     (H and K) chromospheric lines in the spectrum of the secondary:
*        CP (certainly physical);
*        PP (probably physical);
*        LO (likely optical)
*Note (7): Unknown visual magnitude for the secondary star.

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

C  Declarations for 'table2.dat'	! RASS observations: Detections and upper limits

      integer*4 nr__1
      parameter (nr__1=37)	! Number of records
      character*99 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     HD_1       (nr__1) ! HD (Cat. III/135) number
      integer*4     RAh_1      (nr__1) ! (h) ? X-ray right ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) ? X-ray right ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) ? X-ray right ascension (J2000)
      character*1   DE__1      (nr__1) ! X-ray declination sign (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) ? X-ray declination sign (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) ? X-ray declination sign (J2000)
      real*4        DEs_1      (nr__1) ! (arcsec) ? X-ray declination sign (J2000)
      real*4        DeltaA     (nr__1) ! (arcsec) ? Displacement between the detected X-ray
*                                     source and the optical position of the
*                                     primary component (1)
      real*4        DeltaB     (nr__1) ! (arcsec) ? Displacement between the detected X-ray
*                                     source and the optical position of the
*                                     secondary component (1)
      character*1   l_Count    (nr__1) ! Limit flag on Count
      real*4        Count      (nr__1) ! (ct) Count of the primary component or
*                                   of the both is upper limit (2)
      real*4        e_Count    (nr__1) ! (ct) ? rms uncertainty on Counts
      real*4        Bcnt       (nr__1) ! (ct) ? Counts of the secondary component
      real*4        ExpTime    (nr__1) ! (s) Exposition time
      character*1   l_HR1      (nr__1) ! Limit flag on HR1
      real*4        HR1        (nr__1) ! ? Hardness ratio 1 (G1)
      real*4        e_HR1      (nr__1) ! ? rms uncertainty on HR1
      character*1   l_HR2      (nr__1) ! Limit flag on HR2
      real*4        HR2        (nr__1) ! ? Hardness ratio 2 (G1)
      real*4        e_HR2      (nr__1) ! ? rms uncertainty on HR2
      real*4        ML         (nr__1) ! ? Maximum likelihood
*Note (1): Given the low spatial resolution of the PSPC, we cannot resolve
*     the two components of the binary system. As a consequence, the
*     displacement {delta} between the detected X-ray source and the
*     optical positions of the two components of the system are given.
*Note (2): In the case of non-detection, upper limits are computed at
*     the positions of both components, A and B, respectively.

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

C  Declarations for 'table3.dat'	! PSPC pointed observations

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

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

      integer*4     HD_2       (nr__2) ! HD (Cat. III/135) number
      integer*4     n_HD       (nr__2) ! [1/2]? Individual note (1)
      integer*4     ROR        (nr__2) ! ROSAT Observation request number
      character*1   m_ROR      (nr__2) ! Multiplicity index on ROR
      integer*4     RAh_2      (nr__2) ! (h) ? X-ray right ascension (J2000)
      integer*4     RAm_2      (nr__2) ! (min) ? X-ray right ascension (J2000)
      real*4        RAs_2      (nr__2) ! (s) ? X-ray right ascension (J2000)
      character*1   DE__2      (nr__2) ! X-ray declination sign (J2000)
      integer*4     DEd_2      (nr__2) ! (deg) ? X-ray declination sign (J2000)
      integer*4     DEm_2      (nr__2) ! (arcmin) ? X-ray declination sign (J2000)
      real*4        DEs_2      (nr__2) ! (arcsec) ? X-ray declination sign (J2000)
      real*4        DeltaA_1   (nr__2) ! (arcsec) ? Displacement between the detected X-ray
*                                     source and the optical position of the
*                                     primary component
      real*4        DeltaB_1   (nr__2) ! (arcsec) ? Displacement between the detected X-ray
*                                    source and the optical position of the
*                                    secondary component
      real*4        Offaxis    (nr__2) ! (arcmin) ? Offaxis
      character*1   l_Count_1  (nr__2) ! Limit flag on Count
      real*4        Count_1    (nr__2) ! (ct) Count of the primary component or
*                                   of the both is upper limit  (2)
      real*4        e_Count_1  (nr__2) ! (ct) ? rms uncertainty on Counts
      real*4        Bcnt_1     (nr__2) ! (ct) ? Counts of the secondary component
      real*8        ExpTime_1  (nr__2) ! (s) Exposition time
      real*4        HR1_1      (nr__2) ! ? Hardness ratio 1 (G1)
      real*4        e_HR1_1    (nr__2) ! ? rms uncertainty on HR1
      real*4        HR2_1      (nr__2) ! ? Hardness ratio 2 (G1)
      real*4        e_HR2_1    (nr__2) ! ? rms uncertainty on HR2
      real*8        ML_1       (nr__2) ! ? Maximum likelihood
*Note (1): Individual notes as follows:
*      1 = The source is very close to the support structure of the
*          telescope, so we are not sure about the reliability of the
*          upper limit
*      2 = This source has two PSPC observations: 201271p and 201271 p-1.
*          There are no detections in the individual observations, so we
*          have added up both files to improve the S/N ratio.
*Note (2): In the case of non-detection, upper limits are computed at the
*     positions of both components, A and B, respectively.

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

C  Declarations for 'table4.dat'	! HRI observations

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

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

      integer*4     HD_3       (nr__3) ! ? HD (Cat. III/135) number)
      character*3   n_HD_1     (nr__3) ! Note on HD (1)
      integer*4     ROR_1      (nr__3) ! ROSAT Observation request number
      character*5   m_ROR_1    (nr__3) ! Multiplicity index on ROR
      character*2   n_Comp     (nr__3) ! Note on elongation (2)
      character*6   Comp       (nr__3) ! Composant designation
      integer*4     RAh_3      (nr__3) ! (h) ? X-ray right ascension (J2000)
      integer*4     RAm_3      (nr__3) ! (min) ? X-ray right ascension (J2000)
      real*4        RAs_3      (nr__3) ! (s) ? X-ray right ascension (J2000)
      character*1   DE__3      (nr__3) ! X-ray declination sign (J2000)
      integer*4     DEd_3      (nr__3) ! (deg) ? X-ray declination (J2000)
      integer*4     DEm_3      (nr__3) ! (arcmin) ? X-ray declination (J2000)
      real*4        DEs_3      (nr__3) ! (arcsec) ? X-ray declination (J2000)
      real*4        DeltaA_2   (nr__3) ! (arcsec) ? Displacement between the detected X-ray
*                                     source and the optical position of the
*                                     binary system or of the primary component
*                                     if DeltaB exist (3)
      real*4        DeltaB_2   (nr__3) ! (arcsec) ? Displacement between the detected X-ray
*                                     source and the optical position of the
*                                     secondary component (3)
      real*4        OffAxis_1  (nr__3) ! (arcmin) ? Displacement of the sources with respect to
*                                     the axis of the telescope
      character*1   l_Count_2  (nr__3) ! Limit flag on Count
      real*8        Count_2    (nr__3) ! (ct) Total counts in the broad band
      real*4        e_Count_2  (nr__3) ! (ct) ? rms uncertainty on Counts
      real*8        ExpTime_2  (nr__3) ! (s) Exposition time (4)
      character*1   l_HR       (nr__3) ! Limit flag in HR
      real*4        HR         (nr__3) ! ? Hardness ratio
      real*4        e_HR       (nr__3) ! ? rms uncertainty on HR
      real*4        ML_2       (nr__3) ! ? Maximum of likelihood coefficient
*Note (1): Notes as follows:
*      1 = If both components are detected, coordinates of both X-ray
*          sources are given. The displacement of the secondary with
*          respect to the detected X-ray source is computed comparing with
*          its optical coordinates.
*      2 = The two stars of the system are not completely resolved so each
*          star is contributing to the count rate of the companion.
*      3 = The undetected component is so close to the X-ray source that no
*          reliable upper limit can be computed.
*      4 = HD74146 has another observation, 200186h, but with very low
*          exposure time (t_exp_=357.5s).
*      s = stars previously studied by Schmitt et al. (1993ApJ...402L..13S).
*Note (2): Elongation information as follows:
*      e = for elongated sources;
*      * = The elongated shape is due to attitude problems in the 
*          processed data
*Note (3): When we cannot resolve the two components of the binary system,
*     the displacement {delta} between the detected X-ray source and the
*     optical positions of the two components of the system are given.
*Note (4): For ROR 201685h B, the printed value is "4535.3.8", modified
*     in 45353.8 in the present table.

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

C  Declarations for 'table5.dat'	! X-ray luminosities

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

      integer*4     HD_4       (nr__4) ! HD (Cat. III/135) number
      character*3   Comp_1     (nr__4) ! Component designation
      character*1   l_logNH    (nr__4) ! Limit flag on logNH
      real*4        logNH      (nr__4) ! ([cm-2]) Computed hydrogen column density
      integer*4     r_logNH    (nr__4) ! ? Source of logNH (1)
      character*1   Obs        (nr__4) ! [HRP] Type of observations (2)
      character*1   l_logLX    (nr__4) ! Limit flag on logLX
      real*4        logLX      (nr__4) ! ([10-7W]) X-ray luminosity (3)
      real*4        e_logLX    (nr__4) ! ([10-7W]) ? rms uncertainty on logLX
      character*1   n_logLX    (nr__4) ! [*] *: Mean X-ray luminosity computed from
*                                            several observations
      character*1   l_logLX2   (nr__4) ! Limit flag on logLX2
      real*4        logLX2     (nr__4) ! ([10-7W]) ? X-ray luminosity of the secondary
*Note (1): Source of logNH as follows:
*      1 = Adopted from Berghofer et al. (1996, Cat. J/A+AS/118/481)
*      2 = Adopted from Fruscione et al. (1994, Cat. J/ApJS/94/127)
*Note (2): Type of observation as follows:
*      R = RASS (ROSAT All-Sky Survey, Cat. IX/10)
*      P = PSPC (Position-Sensitive Proportional Counter, Cat. IX/30)
*      H = HRI  (High Resolution Imager, Cat. IX/28)
*Note (3): If the binary system is observed and resolved by the HRI, we
*     provide the fluxes and luminosities for both members of the pair. 
*     If unresolved, we just can provide one X-ray luminosity associated
*     with the pair. In hese cases we have adopted a temperature of 1keV
*     to compute the ECF's although, in principle, both stars could be
*     contributing to the total emission. he last method has also been
*     applied to those systems with only RASS or PSPC pointed observations,
*     given that they are always unresolved. In the case of RASS or PSPC
*     non-detections, we have estimated two upper limit luminosities,
*     corresponding to the count rates computed at the optical positions
*     of the primary and the secondary star, respectively (see Table 2).

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

C  Declarations for 'table6.dat'	! HRI soft-band rate and UV-rate for detected
                            early-type stars

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

      integer*4     HD_5       (nr__5) ! HD (Cat. III/135) number
      character*1   n_Umag     (nr__5) ! Note on U-magnitudes (1)
      real*4        Umag       (nr__5) ! (mag) U magnitude (from HR catalogue V/50)
      real*4        Srate      (nr__5) ! (ct/ks) S-band count rate (2)
      real*4        UVrate     (nr__5) ! (ct/ks) UV count rate (2)
      real*8        S_UV       (nr__5) ! S to UV rates ratio
      real*4        log_LX_Lbol(nr__5) ! Bolometric to X-ray Luminosity ratio
*Note (1): *: No U-magnitudes available. We derived them from their spectral
*     types and their V-magnitudes, according to Kenyon & Hartmann (1995,
*     Cat. J/ApJS/101/117).
*Note (2): The S-band rate and the UV rate have been both computed in
*     channels 1-8 of the detector.

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

C  Declarations for 'table7.dat'	! Stellar properties of the post-TTau (PTTS) candidates

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

      integer*4     HD_6       (nr__6) ! HD (Cat. III/135) number
      character*1   Comp_2     (nr__6) ! Component designation
      character*1   u_Comp     (nr__6) ! [?] Uncertainty flag on Comp
      character*1   n_HD_2     (nr__6) ! [t] Note on HD (1)
      character*4   SpType_1   (nr__6) ! MK Spectral type
      character*1   l_logLX_1  (nr__6) ! Limit flag on logLX
      real*4        logLX_1    (nr__6) ! ([10-7W]) X-ray luminosity
      character*1   l_EWLi     (nr__6) ! Limit flag on EWLi
      real*4        EWLi       (nr__6) ! (0.1nm) Li I absorption line equivalent width
      real*4        e_EWLi     (nr__6) ! (0.1nm) ? rms uncertainty on EWLi
      character*1   n_EWLi     (nr__6) ! [1-3] Note on EWLi (2)
      real*4        F12um      (nr__6) ! (Jy) ? 12{mu}m flux density (3)
      character*1   u_F12um    (nr__6) ! [?] ?: unknown value
      real*4        F100um     (nr__6) ! (Jy) ? 100{mu}m flux density (3)
      character*1   u_F100um   (nr__6) ! [?] ?: unknown value
      character*2   f_RV       (nr__6) ! [Ee :] Radial velocity comment (4)
      character*1   Xray       (nr__6) ! [+-] X-ray emission ? (5)
      character*1   LiI        (nr__6) ! [+-] Li I equivalent width ? (5)
      character*1   IR_ex      (nr__6) ! [+-?] Measured IR excess ? (5)
      character*3   RV         (nr__6) ! [+-? ()] Measured radial velocity of pair ? (5)
*Note (1): The two sources marked with a t are located close to the Galactic
*     plane and this seems to be the reason of not being detected by IRAS
*Note (2): Most of the Li I EW values have been adopted Pallavicini et al.
*     (1992A&A...261..245P). These measurements were derived from
*     high-resolution spectra (resolution of 0.1{AA}), except those
*     with a note (1, 2 or 3):
*     1 = obtained from low-resolution spectra (resolution of 2{AA})
*     2 = taken from Martin et al., 1992A&A...257..186M
*         (disp. of 0.22{AA}/pix)
*     3 = adopted from Webb et al. (1999ApJ...512L..63W);
*Note (3): The IR data are taken from Ray et al. (1995ApJ...440L..89R)
*Note (4): If similar radial velocities have been measured for both members
*     of the pair it is indicated by an 'e' (if taken from Gahm, 1982,
*     Stockholm Obs. Rep. No.20 ) and by an 'E' (if taken from Martin et
*     al., 1992A&A...257..186M). If the measurements are doubtful, it is
*     indicated by a ":" (see Gahm, 1982, Stockholm Obs. Rep. No.20, and
*     Martin et al., 1992A&A...257..186M, for more details)
*Note (5): We have summarized the data of the table in these columns using
*     the symbols +,- and ? for positive, negative and unknown properties
*     respectively. The (+) symbols indicate doubtful properties.

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

C  Loading file 'table1.dat'	! Stellar Data of the binary sample

C  Format for file interpretation

    1 format(
     +  I6,1X,A3,1X,A12,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,
     +  F5.1,1X,F6.1,A1,A1,F5.1,A1,1X,F4.2,A1,1X,F5.2,A1,1X,F4.2,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,50
        read(1,'(A90)')ar__
        read(ar__,1)
     +  HD(i__),m_HD(i__),SpType(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),Sep(i__),Dist(i__),
     +  u_Dist(i__),r_Dist(i__),e_Dist(i__),u_e_Dist(i__),VmagA(i__),
     +  n_VmagA(i__),VmagB(i__),n_VmagB(i__),AV(i__),Class(i__)
        if(ar__(64:68) .EQ. '') e_Dist(i__) = rNULL__
        if(ar__(77:81) .EQ. '') VmagB(i__) = rNULL__
        if(ar__(84:87) .EQ. '') AV(i__) = rNULL__
        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)
     +  HD(i__),m_HD(i__),SpType(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),Sep(i__),Dist(i__),
     +  u_Dist(i__),r_Dist(i__),e_Dist(i__),u_e_Dist(i__),VmagA(i__),
     +  n_VmagA(i__),VmagB(i__),n_VmagB(i__),AV(i__),Class(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'	! RASS observations: Detections and upper limits

C  Format for file interpretation

    2 format(
     +  I6,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,F5.1,1X,F5.2,A1,
     +  F6.2,1X,F4.1,2X,F4.2,2X,F6.1,1X,A1,F5.2,1X,F4.2,1X,A1,F5.2,1X,
     +  F4.2,1X,F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,37
        read(1,'(A99)')ar__1
        read(ar__1,2)
     +  HD_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),DeltaA(i__),DeltaB(i__),
     +  l_Count(i__),Count(i__),e_Count(i__),Bcnt(i__),ExpTime(i__),
     +  l_HR1(i__),HR1(i__),e_HR1(i__),l_HR2(i__),HR2(i__),e_HR2(i__),
     +  ML(i__)
        if(ar__1(8:9) .EQ. '') RAh_1(i__) = iNULL__
        if(ar__1(11:12) .EQ. '') RAm_1(i__) = iNULL__
        if(ar__1(14:18) .EQ. '') RAs_1(i__) = rNULL__
        if(ar__1(21:22) .EQ. '') DEd_1(i__) = iNULL__
        if(ar__1(24:25) .EQ. '') DEm_1(i__) = iNULL__
        if(ar__1(27:31) .EQ. '') DEs_1(i__) = rNULL__
        if(ar__1(32:36) .EQ. '') DeltaA(i__) = rNULL__
        if(ar__1(38:42) .EQ. '') DeltaB(i__) = rNULL__
        if(ar__1(51:54) .EQ. '') e_Count(i__) = rNULL__
        if(ar__1(57:60) .EQ. '') Bcnt(i__) = rNULL__
        if(ar__1(71:75) .EQ. '') HR1(i__) = rNULL__
        if(ar__1(77:80) .EQ. '') e_HR1(i__) = rNULL__
        if(ar__1(83:87) .EQ. '') HR2(i__) = rNULL__
        if(ar__1(89:92) .EQ. '') e_HR2(i__) = rNULL__
        if(ar__1(94:99) .EQ. '') ML(i__) = rNULL__
        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)
     +  HD_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),DeltaA(i__),DeltaB(i__),
     +  l_Count(i__),Count(i__),e_Count(i__),Bcnt(i__),ExpTime(i__),
     +  l_HR1(i__),HR1(i__),e_HR1(i__),l_HR2(i__),HR2(i__),e_HR2(i__),
     +  ML(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 'table3.dat'	! PSPC pointed observations

C  Format for file interpretation

    3 format(
     +  I6,1X,I1,1X,I6,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,
     +  F4.1,1X,F4.1,1X,F5.2,1X,A1,F6.1,1X,F4.1,1X,F5.2,1X,F7.1,1X,
     +  F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F7.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,5
        read(1,'(A112)')ar__2
        read(ar__2,3)
     +  HD_2(i__),n_HD(i__),ROR(i__),m_ROR(i__),RAh_2(i__),RAm_2(i__),
     +  RAs_2(i__),DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),
     +  DeltaA_1(i__),DeltaB_1(i__),Offaxis(i__),l_Count_1(i__),
     +  Count_1(i__),e_Count_1(i__),Bcnt_1(i__),ExpTime_1(i__),
     +  HR1_1(i__),e_HR1_1(i__),HR2_1(i__),e_HR2_1(i__),ML_1(i__)
        if(ar__2(8:8) .EQ. '') n_HD(i__) = iNULL__
        if(ar__2(18:19) .EQ. '') RAh_2(i__) = iNULL__
        if(ar__2(21:22) .EQ. '') RAm_2(i__) = iNULL__
        if(ar__2(24:28) .EQ. '') RAs_2(i__) = rNULL__
        if(ar__2(31:32) .EQ. '') DEd_2(i__) = iNULL__
        if(ar__2(34:35) .EQ. '') DEm_2(i__) = iNULL__
        if(ar__2(37:41) .EQ. '') DEs_2(i__) = rNULL__
        if(ar__2(42:45) .EQ. '') DeltaA_1(i__) = rNULL__
        if(ar__2(47:50) .EQ. '') DeltaB_1(i__) = rNULL__
        if(ar__2(52:56) .EQ. '') Offaxis(i__) = rNULL__
        if(ar__2(66:69) .EQ. '') e_Count_1(i__) = rNULL__
        if(ar__2(71:75) .EQ. '') Bcnt_1(i__) = rNULL__
        if(ar__2(85:89) .EQ. '') HR1_1(i__) = rNULL__
        if(ar__2(91:94) .EQ. '') e_HR1_1(i__) = rNULL__
        if(ar__2(96:99) .EQ. '') HR2_1(i__) = rNULL__
        if(ar__2(101:104) .EQ. '') e_HR2_1(i__) = rNULL__
        if(ar__2(106:112) .EQ. '') ML_1(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,3)
     +  HD_2(i__),n_HD(i__),ROR(i__),m_ROR(i__),RAh_2(i__),RAm_2(i__),
     +  RAs_2(i__),DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),
     +  DeltaA_1(i__),DeltaB_1(i__),Offaxis(i__),l_Count_1(i__),
     +  Count_1(i__),e_Count_1(i__),Bcnt_1(i__),ExpTime_1(i__),
     +  HR1_1(i__),e_HR1_1(i__),HR2_1(i__),e_HR2_1(i__),ML_1(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 'table4.dat'	! HRI observations

C  Format for file interpretation

    4 format(
     +  I6,1X,A3,2X,I6,A5,1X,A2,A6,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,
     +  1X,F4.1,1X,F4.1,1X,F3.1,1X,F5.2,1X,A1,F7.2,1X,F4.1,1X,F7.1,1X,
     +  A1,F5.2,1X,F4.2,1X,F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,46
        read(1,'(A112)')ar__3
        read(ar__3,4)
     +  HD_3(i__),n_HD_1(i__),ROR_1(i__),m_ROR_1(i__),n_Comp(i__),
     +  Comp(i__),RAh_3(i__),RAm_3(i__),RAs_3(i__),DE__3(i__),
     +  DEd_3(i__),DEm_3(i__),DEs_3(i__),DeltaA_2(i__),DeltaB_2(i__),
     +  OffAxis_1(i__),l_Count_2(i__),Count_2(i__),e_Count_2(i__),
     +  ExpTime_2(i__),l_HR(i__),HR(i__),e_HR(i__),ML_2(i__)
        if(ar__3(1:6) .EQ. '') HD_3(i__) = iNULL__
        if(ar__3(34:35) .EQ. '') RAh_3(i__) = iNULL__
        if(ar__3(37:38) .EQ. '') RAm_3(i__) = iNULL__
        if(ar__3(40:44) .EQ. '') RAs_3(i__) = rNULL__
        if(ar__3(47:48) .EQ. '') DEd_3(i__) = iNULL__
        if(ar__3(50:51) .EQ. '') DEm_3(i__) = iNULL__
        if(ar__3(53:56) .EQ. '') DEs_3(i__) = rNULL__
        if(ar__3(58:61) .EQ. '') DeltaA_2(i__) = rNULL__
        if(ar__3(63:65) .EQ. '') DeltaB_2(i__) = rNULL__
        if(ar__3(67:71) .EQ. '') OffAxis_1(i__) = rNULL__
        if(ar__3(82:85) .EQ. '') e_Count_2(i__) = rNULL__
        if(ar__3(96:100) .EQ. '') HR(i__) = rNULL__
        if(ar__3(102:105) .EQ. '') e_HR(i__) = rNULL__
        if(ar__3(107:112) .EQ. '') ML_2(i__) = rNULL__
        RAdeg_3(i__) = rNULL__
        DEdeg_3(i__) = rNULL__
c  Derive coordinates RAdeg_3 and DEdeg_3 from input data
c  (RAdeg_3 and DEdeg_3 are set to rNULL__ when unknown)
        if(RAh_3(i__) .GT. -180) RAdeg_3(i__)=RAh_3(i__)*15.
        if(RAm_3(i__) .GT. -180) RAdeg_3(i__)=RAdeg_3(i__)+RAm_3(i__)/4.
        if(RAs_3(i__) .GT. -180) RAdeg_3(i__)=RAdeg_3(i__)+RAs_3(i__)/240.
        if(DEd_3(i__) .GE. 0) DEdeg_3(i__)=DEd_3(i__)
        if(DEm_3(i__) .GE. 0) DEdeg_3(i__)=DEdeg_3(i__)+DEm_3(i__)/60.
        if(DEs_3(i__) .GE. 0) DEdeg_3(i__)=DEdeg_3(i__)+DEs_3(i__)/3600.
        if(DE__3(i__).EQ.'-'.AND.DEdeg_3(i__).GE.0) DEdeg_3(i__)=-DEdeg_3(i__)
c    ..............Just test output...........
        write(6,4)
     +  HD_3(i__),n_HD_1(i__),ROR_1(i__),m_ROR_1(i__),n_Comp(i__),
     +  Comp(i__),RAh_3(i__),RAm_3(i__),RAs_3(i__),DE__3(i__),
     +  DEd_3(i__),DEm_3(i__),DEs_3(i__),DeltaA_2(i__),DeltaB_2(i__),
     +  OffAxis_1(i__),l_Count_2(i__),Count_2(i__),e_Count_2(i__),
     +  ExpTime_2(i__),l_HR(i__),HR(i__),e_HR(i__),ML_2(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_3(i__),DEdeg_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! X-ray luminosities

C  Format for file interpretation

    5 format(
     +  I6,1X,A3,1X,A1,F5.2,1X,I1,1X,A1,1X,A1,F5.2,2X,F5.2,A1,1X,A1,
     +  F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,51
        read(1,'(A43)')ar__4
        read(ar__4,5)
     +  HD_4(i__),Comp_1(i__),l_logNH(i__),logNH(i__),r_logNH(i__),
     +  Obs(i__),l_logLX(i__),logLX(i__),e_logLX(i__),n_logLX(i__),
     +  l_logLX2(i__),logLX2(i__)
        if(ar__4(19:19) .EQ. '') r_logNH(i__) = iNULL__
        if(ar__4(31:35) .EQ. '') e_logLX(i__) = rNULL__
        if(ar__4(39:43) .EQ. '') logLX2(i__) = rNULL__
c    ..............Just test output...........
        write(6,5)
     +  HD_4(i__),Comp_1(i__),l_logNH(i__),logNH(i__),r_logNH(i__),
     +  Obs(i__),l_logLX(i__),logLX(i__),e_logLX(i__),n_logLX(i__),
     +  l_logLX2(i__),logLX2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! HRI soft-band rate and UV-rate for detected
*                            early-type stars

C  Format for file interpretation

    6 format(I6,A1,1X,F4.2,1X,F5.2,1X,F5.2,1X,F7.2,1X,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,10
        read(1,'(A37)')ar__5
        read(ar__5,6)
     +  HD_5(i__),n_Umag(i__),Umag(i__),Srate(i__),UVrate(i__),
     +  S_UV(i__),log_LX_Lbol(i__)
c    ..............Just test output...........
        write(6,6)
     +  HD_5(i__),n_Umag(i__),Umag(i__),Srate(i__),UVrate(i__),
     +  S_UV(i__),log_LX_Lbol(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Stellar properties of the post-TTau (PTTS) candidates

C  Format for file interpretation

    7 format(
     +  I6,1X,A1,A1,A1,1X,A4,1X,A1,F5.2,2X,A1,F5.3,1X,F5.3,1X,A1,1X,
     +  F5.3,A1,1X,F5.3,A1,1X,A2,1X,A1,2X,A1,2X,A1,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,20
        read(1,'(A67)')ar__6
        read(ar__6,7)
     +  HD_6(i__),Comp_2(i__),u_Comp(i__),n_HD_2(i__),SpType_1(i__),
     +  l_logLX_1(i__),logLX_1(i__),l_EWLi(i__),EWLi(i__),e_EWLi(i__),
     +  n_EWLi(i__),F12um(i__),u_F12um(i__),F100um(i__),u_F100um(i__),
     +  f_RV(i__),Xray(i__),LiI(i__),IR_ex(i__),RV(i__)
        if(ar__6(32:36) .EQ. '') e_EWLi(i__) = rNULL__
        if(ar__6(40:44) .EQ. '') F12um(i__) = rNULL__
        if(ar__6(47:51) .EQ. '') F100um(i__) = rNULL__
c    ..............Just test output...........
        write(6,7)
     +  HD_6(i__),Comp_2(i__),u_Comp(i__),n_HD_2(i__),SpType_1(i__),
     +  l_logLX_1(i__),logLX_1(i__),l_EWLi(i__),EWLi(i__),e_EWLi(i__),
     +  n_EWLi(i__),F12um(i__),u_F12um(i__),F100um(i__),u_F100um(i__),
     +  f_RV(i__),Xray(i__),LiI(i__),IR_ex(i__),RV(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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