FORTRAN Generation
(/./ftp/cats/J/A_A/648/A121)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/648/A121 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 2026-May-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/A+A/648/A121      X-ray activity and accretion in the ONC (Flaischlen+, 2021)
*================================================================================
*Testing the models of X-ray driven photoevaporation with accreting stars in the
*Orion Nebula Cluster.
*    Flaischlen S., Preibisch T., Manara C.F., Ercolano B.
*    <Astron. Astrophys. 648, A121 (2021)>
*    =2021A&A...648A.121F        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'data.dat'	! Stellar parameters

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     COUP       (nr__) ! COUP identification number (1)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000) (2)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000) (2)
      character*1   Meth       (nr__) ! [0/1] Method used to determine the accretion
*                                    rates (3)
      real*4        Mass       (nr__) ! (Msun) Stellar mass (2)
      real*4        logAge     (nr__) ! ([yr]) Logarithm of the isochronal age (2)
      real*8        logLX      (nr__) ! ([10-7W]) Logarithm of the X-ray luminosity (4)
      real*4        logLacc    (nr__) ! ([Lsun]) Logarithm of the accretion luminosity (2)
      real*4        logdM_dt   (nr__) ! ([Msun/yr]) Logarithm of the mass accretion rate (2)
*Note (1): X-ray data from the Chandra Orion Ultradeep Project (COUP), see
*  Getman et al. (2005ApJS..160..319G, Cat. J/ApJS/160/319).
*Note (2): Accretion rates and stellar parameters from Manara et al.
*  (2012ApJ...755..154M, Cat. J/ApJ/755/154).
*  The mass, the isochronal age and the accretion rate were determined using
*  the evolutionary models of Siess et al. (2000A&A...358..593S).
*Note (3): Method used to determine the accretion rates as follows:
*  0 = 2CD method is based on the U-band excess,
*  1 = Halpha method on the equivalent width of the Halpha emission,
*       see Manara et al. (2012ApJ...755..154M,  Cat. J/ApJ/755/154).
*Note (4): LogLX is the total X-ray luminosity corrected for interstellar
*  absorption, corresponding to the total 0.5-8.0keV band.

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

C  Loading file 'data.dat'	! Stellar parameters

C  Format for file interpretation

    1 format(
     +  I4,2X,F8.5,2X,F8.5,2X,A1,2X,F4.2,2X,F4.2,2X,F8.5,2X,F5.2,1X,
     +  F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'data.dat')
      write(6,*) '....Loading file: data.dat'
      do i__=1,332
        read(1,'(A63)')ar__
        read(ar__,1)
     +  COUP(i__),RAdeg(i__),DEdeg(i__),Meth(i__),Mass(i__),
     +  logAge(i__),logLX(i__),logLacc(i__),logdM_dt(i__)
c    ..............Just test output...........
        write(6,1)
     +  COUP(i__),RAdeg(i__),DEdeg(i__),Meth(i__),Mass(i__),
     +  logAge(i__),logLX(i__),logLacc(i__),logdM_dt(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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