FORTRAN Generation
(/./ftp/cats/J/ApJ/733/50)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/733/50 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-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/ApJ/733/50 Mid-IR photometric monitoring of the ONC (Morales-Calderon+, 2011)
*================================================================================
*YSOVAR: the first sensitive, wide-area, mid-infrared photometric monitoring of
*the Orion Nebula Cluster.
*    Morales-Calderon M., Stauffer J.R., Hillenbrand L.A., Gutermuth R.,
*    Song I., Rebull L.M., Plavchan P., Carpenter J.M., Whitney B.A., Covey K.,
*    de Oliveira C.A., Winston E., McCaughrean M.J., Bouvier J., Guieu S.,
*    Vrba F.J., Holtzman J., Marchis F., Hora J.L., Wasserman L.H., Terebey S.,
*    Megeath T., Guinan E., Forbrich J., Huelamo N., Riviere-Marichalar P.,
*    Barrado D., Stapelfeldt K., Hernandez J., Allen L.E., Ardila D.R., Bayo A.,
*    Favata F., James D., Werner M., Wood K.
*   <Astrophys. J., 733, 50 (2011)>
*   =2011ApJ...733...50M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'stars.dat'	! The ONC stars sample (table added by CDS with
                           coordinates from table 2 in the published version)

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

C  J2000 position composed of: RAdeg DEdeg
      character*19  ISOY        ! Object identification (JHHMMSS.ss+DDMMSS.s)
      real*8        RAdeg       ! (deg) [83.5/84.1] Right Ascension in decimal
*                                degrees (J2000)
      real*8        DEdeg       ! (deg) [-6.1/-4.6] Declination in decimal degrees
*                                (J2000)

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

C  Declarations for 'table2.dat'	! Time series at the [3.6] and [4.5] IRAC bands
                           for the ONC stars

      integer*4 nr__1
      parameter (nr__1=351324)	! Number of records
      character*58 ar__1  	! Full-size record

      character*19  ISOY_1      ! Object identification (JHHMMSS.ss+DDMMSS.s)
      real*8        MJD         ! (d) [55127.4/55166.7] Modified Julian date of the
*                                observation
      character*5   Band        ! [IRAC1/IRAC2] Spitzer/IRAC band (IRAC1=3.6um or
*                                IRAC2=4.5um)
      real*4        mag         ! (mag) [5.073/16.645] Observed magnitude in Band
      real*4        e_mag       ! (mag) Error in mag

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

C  Loading file 'stars.dat'	! The ONC stars sample (table added by CDS with
*                           coordinates from table 2 in the published version)

C  Format for file interpretation

    1 format(5X,A19,1X,F10.7,1X,F10.7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,2067
        read(1,'(A46)')ar__
        read(ar__,1)ISOY,RAdeg,DEdeg
c    ..............Just test output...........
        write(6,1)ISOY,RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Time series at the [3.6] and [4.5] IRAC bands
*                           for the ONC stars

C  Format for file interpretation

    2 format(5X,A19,1X,F14.8,1X,A5,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,351324
        read(1,'(A58)')ar__1
        read(ar__1,2)ISOY_1,MJD,Band,mag,e_mag
c    ..............Just test output...........
        write(6,2)ISOY_1,MJD,Band,mag,e_mag
c    .......End.of.Just test output...........
      end do
      close(1)

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