FORTRAN Generation
(/./ftp/cats/J/A_A/534/A111)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/534/A111 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/534/A111     CT Her differential BV photometry and RV     (Lampens+, 2011)
*================================================================================
*Multi-site, multi-year monitoring of the oscillating Algol-type eclipsing binary
*CT Her.
*    Lampens P., Strigachev A., Kim S.-L., Rodriguez E., Lopez-Gonzalez M.J.,
*    Vidal-Sainz J., Mkrtichian D., Koo J.-R., Kang Y.B., Van Cauteren P.,
*    Wils P., Kraicheva Z., Dimitrov D., Southworth J., Garcia Melendo E.,
*    Gomez Forellad J.M.
*   <Astron. Astrophys. 534, A111 (2011)>
*   =2011A&A...534A.111L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Campaigns and instrumentation

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

      integer*4     Year        ! (yr) Year of observation
      character*13  Site        ! Site of observation
      character*8   Country     ! Country of observation
      character*6   Tel         ! Telescope used
      character*15  Obs         ! Period of observation (& Obs)
      integer*4     Nights      ! Number of nights fo observation
      integer*4     Nused       ! Number of useful observation
      integer*4     Nhours      ! (h) Number of hours of observations
      character*1   Filt        ! [BV] Filter used
      character*4   Code        ! Observatory code

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

C  Declarations for 'table3.dat'	! Differential magnitudes (CT Her - C1) in B filter
                             (166h of observations)

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

      real*8        HJD         ! Heliocentric Julian date
      real*8        dmag        ! (mag) B (table3) or V (table4) differential magnitude
*                                  (CT Her - C1) (1)
      character*4   Code_1      ! Observatory code (in table1.dat file)
      integer*4     Year_1      ! Year of observation
*Note (1): Comparison star C1 = GSC 01509-1140 (V=10.951, B=12.365)

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

C  Declarations for 'table4.dat'	! Differential magnitudes (CT Her - C1) in V filter
                             (86h of observations)

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

      real*8        HJD_1       ! Heliocentric Julian date
      real*8        dmag_1      ! (mag) B (table3) or V (table4) differential magnitude
*                                  (CT Her - C1) (1)
      character*4   Code_2      ! Observatory code (in table1.dat file)
      integer*4     Year_2      ! Year of observation
*Note (1): Comparison star C1 = GSC 01509-1140 (V=10.951, B=12.365)

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

C  Declarations for 'table9.dat'	! Radial velocities of CT Her (component A)

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

      real*8        HJD_2       ! Heliocentric Julian date
      real*4        RV          ! (km/s) Radial velocity measured with the
*                                   cross-correlation technique
      real*4        e_RV        ! (km/s) Uncertainty of the radial velocity

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

C  Declarations for 'table12.dat'	! O-C values for two models representing the
                              evolution of P_orb_

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

      real*8        HJD_3       ! Heliocentric Julian date
      integer*4     E           ! Cycle number
      real*8        O_C1        ! Residual value for the linear model
      real*8        O_C2        ! Residual value for the parabolic model
      character*1   p_s         ! Primary/secondary minimum
      character*3   Tech        ! Observational method following 'O-C Gateway' (1)
*Note (1): 'O-C Gateway' (2009), cf. http://var.astro.cz/ocgate/ocgate.php

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

C  Loading file 'table1.dat'	! Campaigns and instrumentation

C  Format for file interpretation

    1 format(
     +  I4,1X,A13,1X,A8,1X,A6,1X,A15,1X,I2,1X,I4,1X,I2,1X,A1,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,13
        read(1,'(A68)')ar__
        read(ar__,1)
     +  Year,Site,Country,Tel,Obs,Nights,Nused,Nhours,Filt,Code
c    ..............Just test output...........
        write(6,1)
     +  Year,Site,Country,Tel,Obs,Nights,Nused,Nhours,Filt,Code
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Differential magnitudes (CT Her - C1) in B filter
*                             (166h of observations)

C  Format for file interpretation

    2 format(F14.6,1X,F9.6,1X,A4,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,7960
        read(1,'(A34)')ar__1
        read(ar__1,2)HJD,dmag,Code_1,Year_1
c    ..............Just test output...........
        write(6,2)HJD,dmag,Code_1,Year_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Differential magnitudes (CT Her - C1) in V filter
*                             (86h of observations)

C  Format for file interpretation

    3 format(F14.6,1X,F9.6,1X,A4,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,2180
        read(1,'(A34)')ar__2
        read(ar__2,3)HJD_1,dmag_1,Code_2,Year_2
c    ..............Just test output...........
        write(6,3)HJD_1,dmag_1,Code_2,Year_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! Radial velocities of CT Her (component A)

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,25
        read(1,'(A26)')ar__3
        read(ar__3,4)HJD_2,RV,e_RV
c    ..............Just test output...........
        write(6,4)HJD_2,RV,e_RV
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table12.dat'	! O-C values for two models representing the
*                              evolution of P_orb_

C  Format for file interpretation

    5 format(F12.4,2X,I5,2X,F7.4,2X,F7.4,2X,A1,2X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table12.dat')
      write(6,*) '....Loading file: table12.dat'
      do i__=1,173
        read(1,'(A45)')ar__4
        read(ar__4,5)HJD_3,E,O_C1,O_C2,p_s,Tech
c    ..............Just test output...........
        write(6,5)HJD_3,E,O_C1,O_C2,p_s,Tech
c    .......End.of.Just test output...........
      end do
      close(1)

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