FORTRAN Generation
(/./ftp/cats/J/ApJ/659/585)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/659/585 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-16
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/ApJ/659/585   X-ray classification of young star clusters   (Hojnacki+, 2007)
*================================================================================
*An X-ray spectral classification algorithm with application to young stellar
*clusters.
*    Hojnacki S.M., Kastner J.H., Micela G., Feigelson E.D., Lalonde S.M.
*   <Astrophys. J., 659, 585-598 (2007)>
*   =2007ApJ...659..585H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Properties of the 444 COUP sources

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

      integer*4     COUP       (nr__) ! COUP source number (1)
      integer*4     Class      (nr__) ! [1-17] X-ray spectral class (see paper)
      real*4        HR2        (nr__) ! ? Hardness ratio 2 (0.5-1.7 vs. 1.7-2.8keV) (1)
      real*4        HR3        (nr__) ! Hardness ratio 3 (1.7-2.8 vs. 2.8-8.0keV) (1)
      real*4        NH         (nr__) ! ([cm-2]) Log Hydrogen column density (1)
      real*4        kT1        (nr__) ! (keV) Energy of first plasma component (1)
      real*4        kT2        (nr__) ! (keV) ? Energy of second plasma component (1)
      real*4        T1_T2      (nr__) ! ? Ratio of first and second plasma components
      real*4        Teff       (nr__) ! ([K]) ? Log of the stellar effective temperature (1)
      real*4        EWCa       (nr__) ! (0.1nm) ? Equivalent width of CaII line in Angstroms (1)
      real*4        AV         (nr__) ! (mag) ? The visual absorption (1)
      real*4        DelK       (nr__) ! (mag) ? The {Delta}(I-K) near-infrared excess (1)
*Note (1): From Getman et al. (2005, Cat. J/ApJS/160/319).

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

C  Loading file 'table1.dat'	! Properties of the 444 COUP sources

C  Format for file interpretation

    1 format(
     +  I4,1X,I2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,
     +  F6.3,1X,F6.1,1X,F6.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,444
        read(1,'(A77)')ar__
        read(ar__,1)
     +  COUP(i__),Class(i__),HR2(i__),HR3(i__),NH(i__),kT1(i__),
     +  kT2(i__),T1_T2(i__),Teff(i__),EWCa(i__),AV(i__),DelK(i__)
        if(ar__(9:14) .EQ. '') HR2(i__) = rNULL__
        if(ar__(37:42) .EQ. '') kT2(i__) = rNULL__
        if(ar__(44:49) .EQ. '') T1_T2(i__) = rNULL__
        if(ar__(51:56) .EQ. '') Teff(i__) = rNULL__
        if(ar__(58:63) .EQ. '') EWCa(i__) = rNULL__
        if(ar__(65:70) .EQ. '') AV(i__) = rNULL__
        if(ar__(72:77) .EQ. '') DelK(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  COUP(i__),Class(i__),HR2(i__),HR3(i__),NH(i__),kT1(i__),
     +  kT2(i__),T1_T2(i__),Teff(i__),EWCa(i__),AV(i__),DelK(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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