FORTRAN Generation
(/./ftp/cats/J/ApJ/789/139)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/789/139 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 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/789/139       Three O-type binaries photometry in LMC     (Morrell+, 2014)
*================================================================================
*Photometric and spectroscopic studies of massive binaries in the Large
*Magellanic Cloud.
*II. Three O-type systems in the 30 Dor region.
*    Morrell N.I., Massey P., Neugent K.F., Penny L.R., Gies D.R.
*   <Astrophys. J., 789, 139 (2014)>
*   =2014ApJ...789..139M    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! LMC 169782 Photometry

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

      real*8        HJD        (nr__) ! (d) Heliocentric Julian Date
      real*4        Vmag       (nr__) ! (mag) Observed V band magnitude
      real*4        e_Vmag     (nr__) ! (mag) The 1{sigma} error in Vmag
      integer*4     Tel        (nr__) ! [1/3] Telescope code (1)
      real*4        Phase      (nr__) ! Orbital phase (2)
*Note (1): Flag as follows :
*    1 = SITe#3 on Swope 1.0-m;
*    2 = Y4KCam on SMARTS Yale 1.0-m;
*    3 = ANDICAM on SMARTS 1.3-m.
*Note (2): Orbital phase :
*    Table 2 : Based upon P = 1.855280 days and T = 2453285.909.
*    Table 6 : Based upon P = 2.875275 days and T = 2453287.010.
*    Table 9 : Based upon P = 2.389321 days and T = 2453285.541.

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

C  Declarations for 'table6.dat'	! LMC 171520 Photometry

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

      real*8        HJD_1      (nr__1) ! (d) Heliocentric Julian Date
      real*4        Vmag_1     (nr__1) ! (mag) Observed V band magnitude
      real*4        e_Vmag_1   (nr__1) ! (mag) The 1{sigma} error in Vmag
      integer*4     Tel_1      (nr__1) ! [1/3] Telescope code (1)
      real*4        Phase_1    (nr__1) ! Orbital phase (2)
*Note (1): Flag as follows :
*    1 = SITe#3 on Swope 1.0-m;
*    2 = Y4KCam on SMARTS Yale 1.0-m;
*    3 = ANDICAM on SMARTS 1.3-m.
*Note (2): Orbital phase :
*    Table 2 : Based upon P = 1.855280 days and T = 2453285.909.
*    Table 6 : Based upon P = 2.875275 days and T = 2453287.010.
*    Table 9 : Based upon P = 2.389321 days and T = 2453285.541.

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

C  Declarations for 'table9.dat'	! [P93] 921 Photometry

      integer*4 nr__2
      parameter (nr__2=444)	! Number of records
      character*34 ar__2  	! Full-size record

      real*8        HJD_2      (nr__2) ! (d) Heliocentric Julian Date
      real*4        Vmag_2     (nr__2) ! (mag) Observed V band magnitude
      real*4        e_Vmag_2   (nr__2) ! (mag) The 1{sigma} error in Vmag
      integer*4     Tel_2      (nr__2) ! [1/3] Telescope code (1)
      real*4        Phase_2    (nr__2) ! Orbital phase (2)
*Note (1): Flag as follows :
*    1 = SITe#3 on Swope 1.0-m;
*    2 = Y4KCam on SMARTS Yale 1.0-m;
*    3 = ANDICAM on SMARTS 1.3-m.
*Note (2): Orbital phase :
*    Table 2 : Based upon P = 1.855280 days and T = 2453285.909.
*    Table 6 : Based upon P = 2.875275 days and T = 2453287.010.
*    Table 9 : Based upon P = 2.389321 days and T = 2453285.541.

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

C  Loading file 'table2.dat'	! LMC 169782 Photometry

C  Format for file interpretation

    1 format(F12.4,1X,F6.3,1X,F5.3,1X,I1,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,342
        read(1,'(A34)')ar__
        read(ar__,1)
     +  HJD(i__),Vmag(i__),e_Vmag(i__),Tel(i__),Phase(i__)
c    ..............Just test output...........
        write(6,1)
     +  HJD(i__),Vmag(i__),e_Vmag(i__),Tel(i__),Phase(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! LMC 171520 Photometry

C  Format for file interpretation

    2 format(F12.4,1X,F6.3,1X,F5.3,1X,I1,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,269
        read(1,'(A34)')ar__1
        read(ar__1,2)
     +  HJD_1(i__),Vmag_1(i__),e_Vmag_1(i__),Tel_1(i__),Phase_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  HJD_1(i__),Vmag_1(i__),e_Vmag_1(i__),Tel_1(i__),Phase_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! [P93] 921 Photometry

C  Format for file interpretation

    3 format(F12.4,1X,F6.3,1X,F5.3,1X,I1,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,444
        read(1,'(A34)')ar__2
        read(ar__2,3)
     +  HJD_2(i__),Vmag_2(i__),e_Vmag_2(i__),Tel_2(i__),Phase_2(i__)
c    ..............Just test output...........
        write(6,3)
     +  HJD_2(i__),Vmag_2(i__),e_Vmag_2(i__),Tel_2(i__),Phase_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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