FORTRAN Generation
(/./ftp/cats/J/A_A/395/587)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/395/587 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 2026-Sep-08
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/395/587       GR Tau BV light curves                        (Zhang+, 2002)
*================================================================================
*Long-term photometry of the near-contact detached binary GR Tauri.
*      Zhang X., Zhang R.X., Fang M.J.
*     <Astron. Astrophys. 395, 587 (2002)>
*     =2002A&A...395..587Z
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! BV observations of GR Tau in 1985

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

      real*8        HJDV       (nr__) ! (d) Heliocentric Julian date for V observation
      real*4        dVmag      (nr__) ! (mag) Differential V magnitude (GR Tau - BD+20 0684)
      real*8        HJDB       (nr__) ! (d) ? Heliocentric Julian date for B observation
      real*4        dBmag      (nr__) ! (mag) ? Differential B magnitude

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

C  Declarations for 'tablea2.dat'	! BV observations of GR Tau in 1993

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

      real*8        HJDV_1     (nr__1) ! (d) Heliocentric Julian date for V observation
      real*4        dVmag_1    (nr__1) ! (mag) Differential V magnitude (GR Tau - BD+20 0684)
      real*8        HJDB_1     (nr__1) ! (d) ? Heliocentric Julian date for B observation
      real*4        dBmag_1    (nr__1) ! (mag) ? Differential B magnitude

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

C  Declarations for 'tablea3.dat'	! BV observations of GR Tau in 1998

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

      real*8        HJDV_2     (nr__2) ! (d) Heliocentric Julian date for V observation
      real*4        dVmag_2    (nr__2) ! (mag) Differential V magnitude (GR Tau - BD+20 0684)
      real*8        HJDB_2     (nr__2) ! (d) ? Heliocentric Julian date for B observation
      real*4        dBmag_2    (nr__2) ! (mag) ? Differential B magnitude

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

C  Loading file 'tablea1.dat'	! BV observations of GR Tau in 1985

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,150
        read(1,'(A38)')ar__
        read(ar__,1)HJDV(i__),dVmag(i__),HJDB(i__),dBmag(i__)
        if(ar__(20:31) .EQ. '') HJDB(i__) = rNULL__
        if(ar__(33:37) .EQ. '') dBmag(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)HJDV(i__),dVmag(i__),HJDB(i__),dBmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea2.dat'	! BV observations of GR Tau in 1993

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea2.dat')
      write(6,*) '....Loading file: tablea2.dat'
      do i__=1,139
        read(1,'(A38)')ar__1
        read(ar__1,2)HJDV_1(i__),dVmag_1(i__),HJDB_1(i__),dBmag_1(i__)
        if(ar__1(20:31) .EQ. '') HJDB_1(i__) = rNULL__
        if(ar__1(33:37) .EQ. '') dBmag_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)HJDV_1(i__),dVmag_1(i__),HJDB_1(i__),dBmag_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea3.dat'	! BV observations of GR Tau in 1998

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea3.dat')
      write(6,*) '....Loading file: tablea3.dat'
      do i__=1,153
        read(1,'(A38)')ar__2
        read(ar__2,3)HJDV_2(i__),dVmag_2(i__),HJDB_2(i__),dBmag_2(i__)
        if(ar__2(20:31) .EQ. '') HJDB_2(i__) = rNULL__
        if(ar__2(33:37) .EQ. '') dBmag_2(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)HJDV_2(i__),dVmag_2(i__),HJDB_2(i__),dBmag_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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