FORTRAN Generation
(/./ftp/cats/J/A_A/520/A52)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/520/A52 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/520/A52       31 Com radial velocities                (Strassmeier+, 2010)
*================================================================================
*Rotation and magnetic activity of the Hertzsprung-gap giant 31 Comae.
*    Strassmeier K.G., Granzer T., Kopf M., Weber M., Kueker M., Reegen P.,
*    Rice J.B., Matthews J.M., Kuschnig R., Rowe J.F., Guenther D.B.,
*    Moffat A.F.J., Rucinski S.M., Sasselov D., Weiss W.W.
*   <Astron. Astrophys. 520, A52 (2010)>
*   =2010A&A...520A..52S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Radial velocities

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

      character*10  Obs_date    ! ("DD.MM.YYYY") Observation date
      character*8   Obs_time    ! ("h:m:s") Time of observation (hh:mm:ss)
      real*8        HJD         ! (d) Heliocentric Julian date of observation
      real*4        RV          ! (km/s) Radial velocity
      real*4        e_RV        ! (km/s) rms uncertainty on RV

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

C  Declarations for 'table3.dat'	! KPNO radial velocities

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

      character*10  Date        ! ("YYYY/DD/MM") UT Date
      real*8        HJD_1       ! (d) Heliocentric Julian date
      real*4        RV_1        ! (km/s) Radial velocity
      real*4        e_RV_1      ! (km/s) rms uncertainty on RV (1)
      character*11  RefStar     ! Reference star (2)
*Note (1): From 1994-1995 the error of a single unit-weight velocity was
*     4.5km/s. In 1996, a CCD with smaller pixels but also smaller
*     wavelength coverage was used and the uncertainties were accordingly
*     larger, ~7km/s. In 1998, the larger wavelength coverage with a bigger
*     CCD reduced this again to 4.0km/s.
*Note (2): The cross-correlation reference stars 16 Vir, {delta} Aur, HR
*     3145, {alpha} Tau, and {beta} Gem were used with an adopted velocity
*     of +35.70, +7.61, +70.90, +54.1 and +3.30km/s, respectively.

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

C  Loading file 'table2.dat'	! Radial velocities

C  Format for file interpretation

    1 format(1X,A10,1X,A8,3X,F14.6,2X,F6.3,3X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,186
        read(1,'(A53)')ar__
        read(ar__,1)Obs_date,Obs_time,HJD,RV,e_RV
c    ..............Just test output...........
        write(6,1)Obs_date,Obs_time,HJD,RV,e_RV
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! KPNO radial velocities

C  Format for file interpretation

    2 format(1X,A10,1X,F12.4,2X,F4.1,1X,F4.1,2X,A11)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,91
        read(1,'(A48)')ar__1
        read(ar__1,2)Date,HJD_1,RV_1,e_RV_1,RefStar
c    ..............Just test output...........
        write(6,2)Date,HJD_1,RV_1,e_RV_1,RefStar
c    .......End.of.Just test output...........
      end do
      close(1)

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