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

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/160/450 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-Oct-11
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/450   X-ray emission in Orion Nebula young stars   (Flaccomio+, 2005)
*================================================================================
*Rotational modulation of X-ray emission in Orion Nebula young stars.
*    Flaccomio E., Micela G., Sciortino S., Feigelson E.D., Herbst W.,
*    Favata F., Harnden F.R.JR, Vrtilek S.D.
*   <Astrophys. J. Suppl. Ser., 160, 450-468 (2005)>
*   =2005ApJS..160..450F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! COUP sources with assigned rotational period.

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

      integer*4     COUP        ! The COUP source number
      integer*4     Cts         ! (ct) Net (background subtracted) ACIS counts
      integer*4     OptId       ! ? Optical identification (1)
      character*1   m_OptId     ! [ab] Multiplicity indicator (1)
      real*4        Per         ! (d) Optically determined rotation period
      character*1   n_Per       ! Note on Per (2)
      character*4   r_Per       ! Reference for Per (3)
      real*4        Mass        ! (solMass) ? Stellar mass
      real*4        LogAge      ! ([yr]) ? Log of the stellar age
      real*4        LogLx       ! ([10-7W]) ? Log of the X-ray luminosity in erg/s
      real*4        Log_Lx_Lb   ! ([-]) ? Log of the X-ray to bolometric
*                                       luminosity ratio
      real*4        WCaII       ! (0.1nm) ? Ca II line equivalent width in Angstroms
      character*3   Mod         ! The X-ray modulation flag (4)
*Note (1): Identification number from Hillenbrand (1997, Cat. J/AJ/113/1733),
*          Herbst+ (2002, Cat. J/A+A/396/513).
*Note (2): Indicates other periods reported in the literature when differing by
*          more than 10% from Per. References (note 3) are given in parentheses.
*          Note on Per, defined as follows:
*    a =  2.99 (Carpenter et al. 2001, Cat. J/AJ/121/3160);
*    b =  1.40 (Herbst et al. 2000AJ....119..261H);
*    c =  2.85 (Carpenter et al. 2001, Cat. J/AJ/121/3160);
*    d = 20.10 (Herbst et al. 2000AJ....119..261H);
*    e =  1.57 (Herbst et al. 2000AJ....119..261H);
*    f =  7.78 (Stassun et al. 1999, Cat. J/AJ/117/2941);
*    g = 13.43 (Carpenter et al. 2001, Cat. J/AJ/121/3160);
*    h =  5.59 (Herbst et al. 2000AJ....119..261H);
*    i =  2.13 (Stassun et al. 1999, Cat. J/AJ/117/2941);
*    j = 11.19 (Carpenter et al. 2001, Cat. J/AJ/121/3160);
*    k =  4.00 (Herbst et al. 2000AJ....119..261H);
*    l =  2.40 (Carpenter et al. 2001, Cat. J/AJ/121/3160);
*    m =  9.04 (Carpenter et al. 2001, Cat. J/AJ/121/3160);
*    n =  1.55 (Herbst et al. 2000AJ....119..261H);
*    o =  5.76 (Herbst et al. 2000AJ....119..261H);
*    p =  8.69 (Stassun et al. 1999, Cat. J/AJ/117/2941);
*    q =  0.84 (Stassun et al. 1999, Cat. J/AJ/117/2941 ;
*               Herbst et al. 2002, Cat. J/A+A/396/513);
*    r =  0.66 (Herbst et al. 2002, Cat. J/A+A/396/513);
*    s =  3.51 (Herbst et al. 2000AJ....119..261H);
*    t =  0.85 (Stassun et al. 1999, Cat. J/AJ/117/2941 ;
*               Herbst et al. 2002, Cat. J/A+A/396/513);
*    u =  8.44 (Herbst et al. 2000AJ....119..261H);
*Note (3): Reference for Per, defined as follows:
*    H = Herbst et al. (2002, Cat. J/A+A/396/513);
*    h = Herbst et al. (2000AJ....119..261H);
*    s = Stassun et al. (1999, Cat. J/AJ/117/2941);
*    c = Carpenter et al. (2001, Cat. J/AJ/121/3160);
*    U = W. Herbst (unpublished).
*Note (4): Indicates filtered light curves (N,L or H) for which the LNP analysis
*          yielded  FAP<0.1%. A '+' indicates that the periodogram analysis
*          was not performed because either Per<2.0d or Cts<100.

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

C  Loading file 'table1.dat'	! COUP sources with assigned rotational period.

C  Format for file interpretation

    1 format(
     +  I4,1X,I5,1X,I5,A1,1X,F5.2,1X,A1,1X,A4,1X,F5.2,1X,F3.1,1X,F4.1,
     +  1X,F4.1,1X,F5.1,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,295
        read(1,'(A60)')ar__
        read(ar__,1)
     +  COUP,Cts,OptId,m_OptId,Per,n_Per,r_Per,Mass,LogAge,LogLx,
     +  Log_Lx_Lb,WCaII,Mod
        if(ar__(12:16) .EQ. '') OptId = iNULL__
        if(ar__(32:36) .EQ. '') Mass = rNULL__
        if(ar__(38:40) .EQ. '') LogAge = rNULL__
        if(ar__(42:45) .EQ. '') LogLx = rNULL__
        if(ar__(47:50) .EQ. '') Log_Lx_Lb = rNULL__
        if(ar__(52:56) .EQ. '') WCaII = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  COUP,Cts,OptId,m_OptId,Per,n_Per,r_Per,Mass,LogAge,LogLx,
     +  Log_Lx_Lb,WCaII,Mod
c    .......End.of.Just test output...........
      end do
      close(1)

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