FORTRAN Generation
(/./ftp/cats/J/ApJ/651/L49)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/651/L49 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 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/ApJ/651/L49     Upper Sco OB association IRAC observations  (Carpenter+, 2006)
*================================================================================
*Evidence for mass-dependent circumstellar disk evolution in the 5Myr
*old upper Scorpius OB association.
*    Carpenter J.M., Mamajek E.E., Hillenbrand L.A., Meyer M.R.
*   <Astrophys. J., 651, L49-L52 (2006)>
*   =2006ApJ...651L..49C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observed IRAC and IRS Fluxes Source

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

      character*1   Flag        ! [ab] a: from this study, b: from FEPS (Meyer
*                                           et al., 2006, Cat. <J/PASP/118/1690>
      character*31  Source      ! Source name
      character*8   SpType      ! MK spectral type
      character*3   r_SpType    ! Reference for spectral type (1)
      integer*4     Obs4_5um    ! Spitzer observation number for 4.5um
      real*8        S4_5um      ! (mJy) IRAC 4.5um flux (2)
      real*4        e_S4_5um    ! (mJy) rms uncertainty on S4.5um
      integer*4     Obs8um      ! Spitzer observation number for 8um
      real*8        S8um        ! (mJy) IRAC 8um flux (3)
      real*4        e_S8um      ! (mJy) rms uncertainty on S8um
      character*1   f_S8um      ! [s] s for saturated
      integer*4     Obs16um     ! ? Spitzer observation number for 16um
      real*4        S16um       ! (mJy) ? IRAC 16um flux (4)
      character*1   n_S16um     ! [e] Note on S16um (5)
      real*4        e_S16um     ! (mJy) ? rms uncertainty on S16um
      character*1   E8          ! [Y/N] 8um excess?
      character*1   E16         ! [Y/N?] 16um excess?
      character*1   n_E16       ! [f] Note on E16um (5)
*Note (1): References as follows:
*    H82 = Houk, 1982, Cat. <III/80>
*    H88 = Houk, 1988, Cat. <III/133>
*    K99 = Kunkel, 1999, Ph.D. thesis, Julius-Maximilians-Univ., Wuerzburg
*    K00 = Koehler et al., 2000, Cat. <J/A+A/356/541>
*    MML = Mamajek, Meyer & Liebert, unpublished
*    P98 = Preibisch et al, 1998, Cat. <J/A+A/333/619>
*    P01 = Preibisch et al., 2001, Cat. <J/AJ/121/1040>
*    P02 = Preibisch et al., 2002, Cat. <J/AJ/124/404>
*    W94 = Walter et al., 1994AJ....107..692W
*Note (2): IRAC 4.5um photometry measured using a flux calibration factor of
*     0.1388MJy/sr/(DN/s).
*Note (3): IRAC 8um photometry measured using a flux calibration factor of
*     0.2021MJy/sr/(DN/s).
*Note (4): IRS 16um PUI photometry measured using a flux calibration factor
*     of 0.01375MJy/sr/(e^-^/s). Saturated sources are listed as sat.
*Note (5): Note as follows:
*      e = Aperture curve of growth deviates from a point source by
*          more than 4%
*      f = ScoPMS 17 is not considered an excess source for this study
*          since the apparent 16 excess is likely from a nearby source
*          that falls partially within the measurement aperture.

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

C  Loading file 'table1.dat'	! Observed IRAC and IRS Fluxes Source

C  Format for file interpretation

    1 format(
     +  A1,1X,A31,1X,A8,1X,A3,1X,I8,1X,F8.2,F6.2,1X,I8,1X,F7.2,1X,
     +  F5.2,A1,I8,1X,F6.2,A1,1X,F4.2,1X,A1,1X,A1,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,218
        read(1,'(A120)')ar__
        read(ar__,1)
     +  Flag,Source,SpType,r_SpType,Obs4_5um,S4_5um,e_S4_5um,Obs8um,
     +  S8um,e_S8um,f_S8um,Obs16um,S16um,n_S16um,e_S16um,E8,E16,n_E16
        if(ar__(95:102) .EQ. '') Obs16um = iNULL__
        if(ar__(104:109) .EQ. '') S16um = rNULL__
        if(ar__(112:115) .EQ. '') e_S16um = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Flag,Source,SpType,r_SpType,Obs4_5um,S4_5um,e_S4_5um,Obs8um,
     +  S8um,e_S8um,f_S8um,Obs16um,S16um,n_S16um,e_S16um,E8,E16,n_E16
c    .......End.of.Just test output...........
      end do
      close(1)

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