FORTRAN Generation
(/./ftp/cats/J/A_A/527/A63)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/527/A63 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 2024-Mar-28
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/527/A63 Radial velocities of 7 new HARPS planetary systems (Moutou+, 2011)
*================================================================================
*The HARPS search for southern extra-solar planets.
*XXVII. Seven new planetary systems.
*    Moutou C., Mayor M., Lo Curto G., Segransan D., Udry S., Bouchy F., Benz W.,
*    Lovis C., Naef D., Pepe F., Queloz D., Santos N.C., Sousa S.
*   <Astron. Astrophys. 527, A63 (2011)>
*   =2011A&A...527A..63M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Star list

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

      character*10  Name       (nr__) ! Star name (HD 33473 is also HD 33473A)
      character*5   SpT        (nr__) ! MK spectral type
      real*4        Vmag       (nr__) ! (mag) Johnson V magnitude
      real*4        B_V        (nr__) ! (mag) Johnson (B-V) color index
      real*4        plx        (nr__) ! (mas) Trigonometric parallax
      real*4        L          (nr__) ! (Lsun) Star luminosity
      integer*4     Teff       (nr__) ! (K) Effective temperature of the star
      real*4        logg       (nr__) ! ([cm/s2]) Star gravity
      real*4        v_Fe_H_    (nr__) ! ([Sun]) Star metallicity
      real*4        M_         (nr__) ! (Msun) Star mass
      real*4        Age        (nr__) ! (Gyr) Estimated age
      real*4        R_         (nr__) ! (Rsun) Stellar radius
      character*1   l_vsini    (nr__) ! [<] Limit flag on vsini
      real*4        vsini      (nr__) ! (km/s) ?=--- Rotation velocity

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

C  Declarations for 'rvel.dat'	! Radial-velocity time series

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

      character*10  Name_1     (nr__1) ! Name
      real*8        JD         (nr__1) ! (d) Julian Date
      real*8        RV         (nr__1) ! (km/s) Radial velocity
      real*8        e_RV       (nr__1) ! (km/s) 1-sigma error on the radial velocity
      real*8        FWHM       (nr__1) ! (km/s) Full-width-at-half maximum of the
*                                   cross-correlation function
      real*8        Span       (nr__1) ! (km/s) Slope of the bisector span
      real*8        Smw        (nr__1) ! Mount Wilson S value
      real*8        e_Smw      (nr__1) ! 1-sigma error on the Mount Wilson S value

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

C  Loading file 'table1.dat'	! Star list

C  Format for file interpretation

    1 format(
     +  A10,1X,A5,1X,F5.2,1X,F6.3,1X,F5.2,1X,F5.2,1X,I4,1X,F4.2,1X,
     +  F5.2,1X,F4.2,1X,F4.1,1X,F5.2,1X,A1,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,10
        read(1,'(A78)')ar__
        read(ar__,1)
     +  Name(i__),SpT(i__),Vmag(i__),B_V(i__),plx(i__),L(i__),
     +  Teff(i__),logg(i__),v_Fe_H_(i__),M_(i__),Age(i__),R_(i__),
     +  l_vsini(i__),vsini(i__)
        if (idig(ar__(76:78)).EQ.0) vsini(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),SpT(i__),Vmag(i__),B_V(i__),plx(i__),L(i__),
     +  Teff(i__),logg(i__),v_Fe_H_(i__),M_(i__),Age(i__),R_(i__),
     +  l_vsini(i__),vsini(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'rvel.dat'	! Radial-velocity time series

C  Format for file interpretation

    2 format(
     +  A10,1X,F14.6,1X,F9.5,1X,F7.5,1X,F7.5,1X,F8.5,1X,F8.6,1X,F8.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'rvel.dat')
      write(6,*) '....Loading file: rvel.dat'
      do i__=1,318
        read(1,'(A78)')ar__1
        read(ar__1,2)
     +  Name_1(i__),JD(i__),RV(i__),e_RV(i__),FWHM(i__),Span(i__),
     +  Smw(i__),e_Smw(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),JD(i__),RV(i__),e_RV(i__),FWHM(i__),Span(i__),
     +  Smw(i__),e_Smw(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end