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

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/395/885 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-20
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/885       Radial velocities of HD 553                (Duemmler+, 2002)
*================================================================================
*The radial velocities and physical parameters of HD 553.
*    Duemmler R., Iliev I.Kh., Iliev L.
*   <Astron. Astrophys. 395, 885 (2002)>
*   =2002A&A...395..885D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Radial velocities measurements of HD 553

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

      real*8        HJD         ! Heliocentric Julian date at mid-exposure
      integer*4     Lam         ! (nm) Approximate centre of the spectral region
      integer*4     SNR         ! Signal-to-noise ratio of the spectrum
      real*8        HRV1        ! (km/s) Heliocentric radial velocity of the primary
      real*4        e_HRV1      ! (km/s) rms uncertainty on RV1
      real*8        HRV2        ! (km/s) ? Heliocentric radial velocity of the secondary
      real*4        e_HRV2      ! (km/s) ? rms uncertainty on RV2

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

C  Loading file 'table1.dat'	! Radial velocities measurements of HD 553

C  Format for file interpretation

    1 format(F12.4,1X,I3,1X,I3,1X,F7.2,1X,F4.2,1X,F7.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,20
        read(1,'(A46)')ar__
        read(ar__,1)HJD,Lam,SNR,HRV1,e_HRV1,HRV2,e_HRV2
        if(ar__(35:41) .EQ. '') HRV2 = rNULL__
        if(ar__(43:46) .EQ. '') e_HRV2 = rNULL__
c    ..............Just test output...........
        write(6,1)HJD,Lam,SNR,HRV1,e_HRV1,HRV2,e_HRV2
c    .......End.of.Just test output...........
      end do
      close(1)

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