FORTRAN Generation
(/./ftp/cats/J/A_A/489/1255)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/489/1255 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-Jun-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/489/1255  HARPS observations of eight galactic Cepheids  (Nardetto+, 2008)
*================================================================================
*High resolution spectroscopy for Cepheids distance determination.
*III. A relation between {gamma}-velocities and {gamma}-asymmetries.
*     Nardetto N., Stoekl A., Bersier D., Barnes, T.G.
*    <Astron. Astrophys. 489, 1255 (2008)>
*    =2008A&A...489.1255N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observed sample of Cepheids sorted by increasing
                              period and main results

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

      character*8   Name       (nr__) ! Star name
      integer*4     HD         (nr__) ! HD number
      real*8        Per        (nr__) ! (d) Pulsation period (1)
      real*4        VgGCD      (nr__) ! (km/s) GCD {gamma}-velocities (2)
      real*4        a0         (nr__) ! Slope of the relation (3)
      real*4        e_a0       (nr__) ! Uncertainty on a0
      real*4        b0         (nr__) ! (km/s) Zero-Point of the relation (3)
      real*4        e_b0       (nr__) ! (km/s) Uncertainty on b0
      integer*4     Chi2       (nr__) ! Reduced Chi^2 of the fit
      real*4        VgStar     (nr__) ! (km/s) Physically calibrated {gamma}-velocity of
*                                 the star (4)
      real*4        e_VgStar   (nr__) ! (km/s) Uncertainty on VgStar
*Note (1): The corresponding Julian dates (T0) can be found
*     in Nardetto et al., 2007A&A...471..661N (Paper II)
*Note (2): gGCD is the {gamma}-velocity of the Galactic Cepheid Database :
*     http://www.astro.utoronto.ca/DDO/research/cepheids/
*Note (3): a0 and b0 are respectively the slope and the zero-point of the
*     relation Vg(i)-gGCD=a0*Ag(i)+b0, where i correspond to the metallic
*     line considered. Vg(i) and Ag(i) can be found in table2.dat
*Note (4): VgStar is defined as VgGCD+b0

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

C  Declarations for 'table2.dat'	! Gamma-velocities and {gamma}-asymmetries

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

      character*8   Name_1     (nr__1) ! Star name
      character*4   Ion        (nr__1) ! Species metallic spectral line
      real*8        Line       (nr__1) ! (0.1nm) Wavelength of the spectral line
      real*4        Ag         (nr__1) ! (%) Gamma-asymmetry in % of the FWHM (1)
      real*4        e_Ag       (nr__1) ! (%) Uncertainty on Ag
      real*4        Vg         (nr__1) ! (km/s) Gamma-velocity
      real*4        e_Vg       (nr__1) ! (km/s) Uncertainty on Vg
*Note (1): Quantity derived from a bi-Gaussian fit. See paper for more detail.

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

C  Loading file 'table1.dat'	! Observed sample of Cepheids sorted by increasing
*                              period and main results

C  Format for file interpretation

    1 format(
     +  A8,1X,I6,1X,F8.5,1X,F5.1,1X,F5.2,1X,F4.2,1X,F3.1,1X,F3.1,1X,
     +  I2,1X,F5.1,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,8
        read(1,'(A62)')ar__
        read(ar__,1)
     +  Name(i__),HD(i__),Per(i__),VgGCD(i__),a0(i__),e_a0(i__),
     +  b0(i__),e_b0(i__),Chi2(i__),VgStar(i__),e_VgStar(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),HD(i__),Per(i__),VgGCD(i__),a0(i__),e_a0(i__),
     +  b0(i__),e_b0(i__),Chi2(i__),VgStar(i__),e_VgStar(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Gamma-velocities and {gamma}-asymmetries

C  Format for file interpretation

    2 format(A8,1X,A4,1X,F8.3,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,136
        read(1,'(A45)')ar__1
        read(ar__1,2)
     +  Name_1(i__),Ion(i__),Line(i__),Ag(i__),e_Ag(i__),Vg(i__),
     +  e_Vg(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),Ion(i__),Line(i__),Ag(i__),e_Ag(i__),Vg(i__),
     +  e_Vg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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