FORTRAN Generation
(/./ftp/cats/J/A_A/515/A81)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/515/A81 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-18
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/515/A81    TYC 2627-638-1 BV(RI)c differential photometry    (Olah+, 2010)
*================================================================================
*Young solar type active stars: the TYC 2627-638-1 system.
*    Olah K., Korhonen H., Vida K., Ilyin I., Dall T.H., Jarvinen S.P.,
*    Jurcsik J., Andersen M.I., Djupvik A.A., Pursimo T., Moor A., Datson J.,
*    Karjalainen R., Liimets T., Kubat J., Kawka A.
*   <Astron. Astrophys. 515, A81 (2010)>
*   =2010A&A...515A..81O
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'ab-bvi.dat'	! BVIc magnitudes of TYC 2627-638-1 (A+B components 
                             together), with the 60cm telescope

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

      real*8        HJD        (nr__) ! (d) Heliocentric Julian date
      real*4        DBmag      (nr__) ! (mag) ? Differential Johnson B magnitude
      real*4        DVmag      (nr__) ! (mag) ? Differential Johnson B magnitude
      real*4        DRcmag     (nr__) ! (mag) ? Differential Cousins R magnitude
      real*4        DIcmag     (nr__) ! (mag) ? Differential Cousins I magnitude

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

C  Declarations for 'ab-r.dat'	! Rc magnitudes of TYC 2627-638-1 (A+B components
                             together), with the 60cm telescope

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

      real*8        HJD_1      (nr__1) ! (d) Heliocentric Julian date
      real*4        DBmag_1    (nr__1) ! (mag) ? Differential Johnson B magnitude
      real*4        DVmag_1    (nr__1) ! (mag) ? Differential Johnson B magnitude
      real*4        DRcmag_1   (nr__1) ! (mag) ? Differential Cousins R magnitude
      real*4        DIcmag_1   (nr__1) ! (mag) ? Differential Cousins I magnitude

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

C  Declarations for 'ab-bvri.dat'	! BV(RI)c magnitudes of TYC 2627-638-1 (A+B components
                             together), with the 1m telescope

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

      real*8        HJD_2      (nr__2) ! (d) Heliocentric Julian date
      real*4        DBmag_2    (nr__2) ! (mag) ? Differential Johnson B magnitude
      real*4        DVmag_2    (nr__2) ! (mag) ? Differential Johnson B magnitude
      real*4        DRcmag_2   (nr__2) ! (mag) ? Differential Cousins R magnitude
      real*4        DIcmag_2   (nr__2) ! (mag) ? Differential Cousins I magnitude

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

C  Declarations for 'a-bvri.dat'	! BV(RI)c magnitudes of TYC 2627-638-1A component
                             separately, with the 1m telescope

      integer*4 nr__3
      parameter (nr__3=300)	! Number of records
      character*40 ar__3  	! Full-size record

      real*8        HJD_3      (nr__3) ! (d) Heliocentric Julian date
      real*4        DBmag_3    (nr__3) ! (mag) ? Differential Johnson B magnitude
      real*4        DVmag_3    (nr__3) ! (mag) ? Differential Johnson B magnitude
      real*4        DRcmag_3   (nr__3) ! (mag) ? Differential Cousins R magnitude
      real*4        DIcmag_3   (nr__3) ! (mag) ? Differential Cousins I magnitude

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

C  Declarations for 'b-bvri.dat'	! BV(RI)c magnitudes of TYC 2627-638-1B component
                             separately, with the 1m telescope

      integer*4 nr__4
      parameter (nr__4=325)	! Number of records
      character*40 ar__4  	! Full-size record

      real*8        HJD_4      (nr__4) ! (d) Heliocentric Julian date
      real*4        DBmag_4    (nr__4) ! (mag) ? Differential Johnson B magnitude
      real*4        DVmag_4    (nr__4) ! (mag) ? Differential Johnson B magnitude
      real*4        DRcmag_4   (nr__4) ! (mag) ? Differential Cousins R magnitude
      real*4        DIcmag_4   (nr__4) ! (mag) ? Differential Cousins I magnitude

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

C  Loading file 'ab-bvi.dat'	! BVIc magnitudes of TYC 2627-638-1 (A+B components 
*                             together), with the 60cm telescope

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'ab-bvi.dat')
      write(6,*) '....Loading file: ab-bvi.dat'
      do i__=1,4906
        read(1,'(A40)')ar__
        read(ar__,1)
     +  HJD(i__),DBmag(i__),DVmag(i__),DRcmag(i__),DIcmag(i__)
        if(ar__(14:19) .EQ. '') DBmag(i__) = rNULL__
        if(ar__(21:26) .EQ. '') DVmag(i__) = rNULL__
        if(ar__(28:33) .EQ. '') DRcmag(i__) = rNULL__
        if(ar__(35:40) .EQ. '') DIcmag(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  HJD(i__),DBmag(i__),DVmag(i__),DRcmag(i__),DIcmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ab-r.dat'	! Rc magnitudes of TYC 2627-638-1 (A+B components
*                             together), with the 60cm telescope

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'ab-r.dat')
      write(6,*) '....Loading file: ab-r.dat'
      do i__=1,197
        read(1,'(A40)')ar__1
        read(ar__1,2)
     +  HJD_1(i__),DBmag_1(i__),DVmag_1(i__),DRcmag_1(i__),
     +  DIcmag_1(i__)
        if(ar__1(14:19) .EQ. '') DBmag_1(i__) = rNULL__
        if(ar__1(21:26) .EQ. '') DVmag_1(i__) = rNULL__
        if(ar__1(28:33) .EQ. '') DRcmag_1(i__) = rNULL__
        if(ar__1(35:40) .EQ. '') DIcmag_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  HJD_1(i__),DBmag_1(i__),DVmag_1(i__),DRcmag_1(i__),
     +  DIcmag_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ab-bvri.dat'	! BV(RI)c magnitudes of TYC 2627-638-1 (A+B components
*                             together), with the 1m telescope

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'ab-bvri.dat')
      write(6,*) '....Loading file: ab-bvri.dat'
      do i__=1,2194
        read(1,'(A40)')ar__2
        read(ar__2,3)
     +  HJD_2(i__),DBmag_2(i__),DVmag_2(i__),DRcmag_2(i__),
     +  DIcmag_2(i__)
        if(ar__2(14:19) .EQ. '') DBmag_2(i__) = rNULL__
        if(ar__2(21:26) .EQ. '') DVmag_2(i__) = rNULL__
        if(ar__2(28:33) .EQ. '') DRcmag_2(i__) = rNULL__
        if(ar__2(35:40) .EQ. '') DIcmag_2(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  HJD_2(i__),DBmag_2(i__),DVmag_2(i__),DRcmag_2(i__),
     +  DIcmag_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'a-bvri.dat'	! BV(RI)c magnitudes of TYC 2627-638-1A component
*                             separately, with the 1m telescope

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'a-bvri.dat')
      write(6,*) '....Loading file: a-bvri.dat'
      do i__=1,300
        read(1,'(A40)')ar__3
        read(ar__3,4)
     +  HJD_3(i__),DBmag_3(i__),DVmag_3(i__),DRcmag_3(i__),
     +  DIcmag_3(i__)
        if(ar__3(14:19) .EQ. '') DBmag_3(i__) = rNULL__
        if(ar__3(21:26) .EQ. '') DVmag_3(i__) = rNULL__
        if(ar__3(28:33) .EQ. '') DRcmag_3(i__) = rNULL__
        if(ar__3(35:40) .EQ. '') DIcmag_3(i__) = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  HJD_3(i__),DBmag_3(i__),DVmag_3(i__),DRcmag_3(i__),
     +  DIcmag_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'b-bvri.dat'	! BV(RI)c magnitudes of TYC 2627-638-1B component
*                             separately, with the 1m telescope

C  Format for file interpretation

    5 format(F12.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'b-bvri.dat')
      write(6,*) '....Loading file: b-bvri.dat'
      do i__=1,325
        read(1,'(A40)')ar__4
        read(ar__4,5)
     +  HJD_4(i__),DBmag_4(i__),DVmag_4(i__),DRcmag_4(i__),
     +  DIcmag_4(i__)
        if(ar__4(14:19) .EQ. '') DBmag_4(i__) = rNULL__
        if(ar__4(21:26) .EQ. '') DVmag_4(i__) = rNULL__
        if(ar__4(28:33) .EQ. '') DRcmag_4(i__) = rNULL__
        if(ar__4(35:40) .EQ. '') DIcmag_4(i__) = rNULL__
c    ..............Just test output...........
        write(6,5)
     +  HJD_4(i__),DBmag_4(i__),DVmag_4(i__),DRcmag_4(i__),
     +  DIcmag_4(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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