FORTRAN Generation
(/./ftp/cats/J/MNRAS/401/1141)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/401/1141 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.5, on 2013-Jun-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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/MNRAS/401/1141    NSVS 06507557 VRI differential photometry  (Cakirli+, 2010)
*================================================================================
*NSVS 06507557: a low-mass double-lined eclipsing binary.
*    Cakirli O., Ibanoglu C.
*   <Mon. Not. R. Astron. Soc., 401, 1141-1150 (2010)>
*   =2010MNRAS.401.1141C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'iphot.dat'	! I-band differential photometry

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

      real*8        HJD        (nr__) ! (d) Heliocentric Julian date
      real*8        Phase      (nr__) ! Phase
      real*4        Dmag       (nr__) ! (mag) Variable minus comparison magnitude
      real*4        e_Dmag     (nr__) ! (mag) rms uncertainty on Dmag

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

C  Declarations for 'rphot.dat'	! R-band differential photometry

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

      real*8        HJD_1      (nr__1) ! (d) Heliocentric Julian date
      real*8        Phase_1    (nr__1) ! Phase
      real*4        Dmag_1     (nr__1) ! (mag) Variable minus comparison magnitude
      real*4        e_Dmag_1   (nr__1) ! (mag) rms uncertainty on Dmag

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

C  Declarations for 'vphot.dat'	! V-band differential photometry

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

      real*8        HJD_2      (nr__2) ! (d) Heliocentric Julian date
      real*8        Phase_2    (nr__2) ! Phase
      real*4        Dmag_2     (nr__2) ! (mag) Variable minus comparison magnitude
      real*4        e_Dmag_2   (nr__2) ! (mag) rms uncertainty on Dmag

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

C  Loading file 'iphot.dat'	! I-band differential photometry

C  Format for file interpretation

    1 format(F13.5,3X,F7.5,1X,F6.4,2X,F6.4)

C  Effective file loading

      open(unit=1,file='iphot.dat', status='old')
      write(6,*) '....Loading file: iphot.dat'
      do i__=1,614
        read(1,'(A38)')ar__
        read(ar__,1)HJD(i__),Phase(i__),Dmag(i__),e_Dmag(i__)
c    ..............Just test output...........
        write(6,1)HJD(i__),Phase(i__),Dmag(i__),e_Dmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'rphot.dat'	! R-band differential photometry

C  Format for file interpretation

    2 format(F13.5,3X,F7.5,1X,F6.4,2X,F6.4)

C  Effective file loading

      open(unit=1,file='rphot.dat', status='old')
      write(6,*) '....Loading file: rphot.dat'
      do i__=1,813
        read(1,'(A38)')ar__1
        read(ar__1,2)HJD_1(i__),Phase_1(i__),Dmag_1(i__),e_Dmag_1(i__)
c    ..............Just test output...........
        write(6,2)HJD_1(i__),Phase_1(i__),Dmag_1(i__),e_Dmag_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'vphot.dat'	! V-band differential photometry

C  Format for file interpretation

    3 format(F13.5,3X,F7.5,1X,F6.4,2X,F6.4)

C  Effective file loading

      open(unit=1,file='vphot.dat', status='old')
      write(6,*) '....Loading file: vphot.dat'
      do i__=1,743
        read(1,'(A38)')ar__2
        read(ar__2,3)HJD_2(i__),Phase_2(i__),Dmag_2(i__),e_Dmag_2(i__)
c    ..............Just test output...........
        write(6,3)HJD_2(i__),Phase_2(i__),Dmag_2(i__),e_Dmag_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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