FORTRAN Generation
(/./ftp/cats/J/A_A/502/253)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/502/253 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/502/253         V636 Cen radial velocities curves         (Clausen+, 2009)
*================================================================================
*Absolute dimensions of solar-type eclipsing binaries.
*II. V636 Centauri: A 1.05M_{sun}_ primary with an active, cool,
*oversize 0.85M_{sun}_ secondary.
*    Clausen J.V., Bruntt H., Claret A., Larsen A., Andersen J., Nordstrom B.,
*    Gimenez A.
*   <Astron. Astrophys. 502, 253 (2009)>
*   =2009A&A...502..253C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! Radial velocities of V636 Cen and residuals from
                              the final spectroscopic orbit

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

      real*8        HJD_p       ! (d) ? Heliocentric Julian Date primary component
      real*4        Phase_p     ! ? Orbital phase, primary component
      real*4        RV_p        ! (km/s) ? Radial velocity, primary component
      real*4        e_RV_p      ! (km/s) ? Internal velocity error, primary component
      real*4        O_C_p       ! (km/s) ? Observed-calculated velocity residual,
*                                     primary component
      real*8        HJD_s       ! (d) Heliocentric Julian Date secondary component
      real*4        Phase_s     ! Orbital phase, secondary component
      real*8        RV_s        ! (km/s) Radial velocity, secondary component
      real*4        e_RV_s      ! (km/s) Internal velocity error, secondary component
      real*4        O_C_s       ! (km/s) Observed-calculated velocity residual,
*                                   secondary component

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

C  Loading file 'tablea1.dat'	! Radial velocities of V636 Cen and residuals from
*                              the final spectroscopic orbit

C  Format for file interpretation

    1 format(
     +  F11.3,1X,F6.4,1X,F6.2,1X,F4.2,1X,F5.2,1X,F11.3,1X,F6.4,1X,
     +  F7.2,1X,F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,39
        read(1,'(A74)')ar__
        read(ar__,1)
     +  HJD_p,Phase_p,RV_p,e_RV_p,O_C_p,HJD_s,Phase_s,RV_s,e_RV_s,
     +  O_C_s
        if(ar__(1:11) .EQ. '') HJD_p = rNULL__
        if(ar__(13:18) .EQ. '') Phase_p = rNULL__
        if(ar__(20:25) .EQ. '') RV_p = rNULL__
        if(ar__(27:30) .EQ. '') e_RV_p = rNULL__
        if(ar__(32:36) .EQ. '') O_C_p = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  HJD_p,Phase_p,RV_p,e_RV_p,O_C_p,HJD_s,Phase_s,RV_s,e_RV_s,
     +  O_C_s
c    .......End.of.Just test output...........
      end do
      close(1)

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