FORTRAN Generation
(/./ftp/cats/J/A_A/505/859)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/505/859 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.5, on 2013-May-23
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__
ter  (rNULL__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/A+A/505/859       M dwarfs radial velocities             (Zechmeister+, 2009)
*================================================================================
*The M dwarf planet search programme at the ESO VLT + UVES.
*A search for terrestrial planets in the habitable zone of M dwarfs.
*     Zechmeister M., Kuerster M., Endl M.
*    <Astron. Astrophys. 505, 859 (2009)>
*    =2009A&A...505..859Z
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'targets.dat'	! Targets

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

      character*8   Name        ! Star name
      character*8   OName       ! Other name
      integer*4     N           ! Number of measurements
      integer*4     T           ! (d) Time baseline
      real*4        sigma       ! (m/s) Radial velocity scatter
      real*4        v_sigma_    ! (m/s) Mean radial velocity measurement error
      character*9   Com         ! Comment
      character*7   SpType      ! MK spectral type
      real*4        Vmag        ! (mag) V magnitude
      real*4        d           ! (pc) Heliocentric distance (1)
      real*4        Mass        ! (solMass) Stellar mass (2)
      real*8        pmRA        ! (mas/yr) Proper motion along RA
      real*4        e_pmRA      ! (mas/yr) rms uncertainty on pmRA
      real*8        pmDE        ! (mas/yr) Proper motion along DE
      real*4        e_pmDE      ! (mas/yr) rms uncertainty on pmDE
      real*4        plx         ! (mas) Parallax (1)
      real*4        e_plx       ! (mas) rms uncertainty on plx
      real*4        SA          ! (m/s/yr) Secular acceleration (d(RV(t))/dt)
      real*4        e_SA        ! (m/s/yr) rms uncertainty on SA
      character*11  FileName    ! Name of the file with radial velocity
*                                     measurements in "rv" subdirectory
*Note (1): From Hipparcos, van Leuuwen, 2007A&A...474..653V, Cat. <I/311>
*Note (2): Stellar mass derived from the K-band mass-luminosity relation by
*           Delfosse (2000A&A...364..217D)

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

C  Declarations for 'rv/*'	! Individual RV and error bars

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

      real*8        BJD         ! (d) Barycentric Julian date
      real*8        RV          ! (m/s) Differential radial velocity (1)
      real*4        e_RV        ! (m/s) Uncertainty on RV
*Note (1): RV is not corrected for the secular acceleration. See the paper
*     or the summary table (targets.dat) for the correction values derived
*     from Hipparcos parallax and proper motion.

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

C  Loading file 'targets.dat'	! Targets

C  Format for file interpretation

    1 format(
     +  A8,A8,1X,I2,1X,I4,1X,F6.1,1X,F4.1,1X,A9,1X,A7,1X,F5.2,1X,F6.2,
     +  1X,F4.2,1X,F8.2,1X,F4.2,1X,F8.2,1X,F4.2,1X,F6.2,1X,F4.2,1X,
     +  F5.3,1X,F5.3,1X,A11)

C  Effective file loading

      open(unit=1,file='targets.dat', status='old')
      write(6,*) '....Loading file: targets.dat'
      do i__=1,41
        read(1,'(A136)')ar__
        read(ar__,1)
     +  Name,OName,N,T,sigma,v_sigma_,Com,SpType,Vmag,d,Mass,pmRA,
     +  e_pmRA,pmDE,e_pmDE,plx,e_plx,SA,e_SA,FileName
c    ..............Just test output...........
        write(6,1)
     +  Name,OName,N,T,sigma,v_sigma_,Com,SpType,Vmag,d,Mass,pmRA,
     +  e_pmRA,pmDE,e_pmDE,plx,e_plx,SA,e_SA,FileName
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'rv/*'	! Individual RV and error bars

C  Format for file interpretation

    2 format(F14.6,1X,F8.2,1X,F6.2)

C  Effective file loading

      open(unit=1,file='rv/*', status='old')
      write(6,*) '....Loading file: rv/*'
      do i__=1,41
        read(1,'(A30)')ar__1
        read(ar__1,2)BJD,RV,e_RV
c    ..............Just test output...........
        write(6,2)BJD,RV,e_RV
c    .......End.of.Just test output...........
      end do
      close(1)

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