FORTRAN Generation
(/./ftp/cats/J/A_A/511/A63)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/511/A63 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/A+A/511/A63       V1118 Ori UBVRIJHK outburst light curves   (Audard+, 2010)
*================================================================================
*A multi-wavelength study of the young star V1118 Orionis in outburst.
*    Audard M., Stringfellow G.S., Guedel M., Skinner S.L., Walter F.M.,
*    Guinan E.F., Hamilton R.T., Briggs K.R., Baldovin-Saavedra C.
*   <Astron. Astrophys. 511, A63 (2010)>
*   =2010A&A...511A..63A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea2.dat'	! SMARTS UBVRIJHK photometry

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

      integer*4     MJD         ! (d) Modified Julian Date (JD-2400000.5)
      real*4        Umag        ! (mag) ? SMARTS Johnson U-band magnitude
      real*4        e_Umag      ! (mag) ? SMARTS Johnson U-band magnitude uncertainty
      real*4        Bmag        ! (mag) ? SMARTS Johnson B-band magnitude
      real*4        e_Bmag      ! (mag) ? SMARTS Johnson B-band magnitude uncertainty
      real*4        Vmag        ! (mag) ? SMARTS Johnson V-band magnitude
      real*4        e_Vmag      ! (mag) ? SMARTS Johnson V-band magnitude uncertainty
      real*4        Rmag        ! (mag) ? SMARTS Cousins R-band magnitude
      real*4        e_Rmag      ! (mag) ? SMARTS Cousins R-band magnitude uncertainty
      real*4        Imag        ! (mag) ? SMARTS Cousins I-band magnitude
      real*4        e_Imag      ! (mag) ? SMARTS Cousins I-band magnitude uncertainty
      real*4        Jmag        ! (mag) ? SMARTS J-band magnitude
      real*4        e_Jmag      ! (mag) ? SMARTS J-band magnitude uncertainty
      real*4        Hmag        ! (mag) ? SMARTS H-band magnitude
      real*4        e_Hmag      ! (mag) ? SMARTS H-band magnitude uncertainty
      real*4        Kmag        ! (mag) ? SMARTS K-band magnitude
      real*4        e_Kmag      ! (mag) ? SMARTS K-band magnitude uncertainty

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

C  Declarations for 'tablea3.dat'	! Villanova VRI photometry

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

      integer*4     MJD_1       ! (d) Modified Julian Date (JD-2400000.5)
      real*4        Vmag_1      ! (mag) Villanova Bessel V-band magnitude
      real*4        e_Vmag_1    ! (mag) Villanova Bessel V-band magnitude uncertainty
      real*4        Rmag_1      ! (mag) Villanova Bessel R-band magnitude
      real*4        e_Rmag_1    ! (mag) Villanova Bessel R-band magnitude uncertainty
      real*4        Imag_1      ! (mag) Villanova Bessel I-band magnitude
      real*4        e_Imag_1    ! (mag) Villanova Bessel I-band magnitude uncertainty

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

C  Loading file 'tablea2.dat'	! SMARTS UBVRIJHK photometry

C  Format for file interpretation

    1 format(
     +  I5,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,
     +  1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea2.dat')
      write(6,*) '....Loading file: tablea2.dat'
      do i__=1,155
        read(1,'(A93)')ar__
        read(ar__,1)
     +  MJD,Umag,e_Umag,Bmag,e_Bmag,Vmag,e_Vmag,Rmag,e_Rmag,Imag,
     +  e_Imag,Jmag,e_Jmag,Hmag,e_Hmag,Kmag,e_Kmag
        if(ar__(7:11) .EQ. '') Umag = rNULL__
        if(ar__(13:16) .EQ. '') e_Umag = rNULL__
        if(ar__(18:22) .EQ. '') Bmag = rNULL__
        if(ar__(24:27) .EQ. '') e_Bmag = rNULL__
        if(ar__(29:33) .EQ. '') Vmag = rNULL__
        if(ar__(35:38) .EQ. '') e_Vmag = rNULL__
        if(ar__(40:44) .EQ. '') Rmag = rNULL__
        if(ar__(46:49) .EQ. '') e_Rmag = rNULL__
        if(ar__(51:55) .EQ. '') Imag = rNULL__
        if(ar__(57:60) .EQ. '') e_Imag = rNULL__
        if(ar__(62:66) .EQ. '') Jmag = rNULL__
        if(ar__(68:71) .EQ. '') e_Jmag = rNULL__
        if(ar__(73:77) .EQ. '') Hmag = rNULL__
        if(ar__(79:82) .EQ. '') e_Hmag = rNULL__
        if(ar__(84:88) .EQ. '') Kmag = rNULL__
        if(ar__(90:93) .EQ. '') e_Kmag = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  MJD,Umag,e_Umag,Bmag,e_Bmag,Vmag,e_Vmag,Rmag,e_Rmag,Imag,
     +  e_Imag,Jmag,e_Jmag,Hmag,e_Hmag,Kmag,e_Kmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea3.dat'	! Villanova VRI photometry

C  Format for file interpretation

    2 format(I5,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea3.dat')
      write(6,*) '....Loading file: tablea3.dat'
      do i__=1,35
        read(1,'(A38)')ar__1
        read(ar__1,2)
     +  MJD_1,Vmag_1,e_Vmag_1,Rmag_1,e_Rmag_1,Imag_1,e_Imag_1
c    ..............Just test output...........
        write(6,2)
     +  MJD_1,Vmag_1,e_Vmag_1,Rmag_1,e_Rmag_1,Imag_1,e_Imag_1
c    .......End.of.Just test output...........
      end do
      close(1)

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