FORTRAN Generation
(/./ftp/cats/J/A_A/498/949)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/498/949 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 2026-Oct-11
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/498/949 Velocities of 1253 F-K dwarfs in open clusters (Mermilliod+, 2009)
*================================================================================
*Radial- and rotational velocities for 1253 F-K dwarfs in 13 nearby open
*clusters.
*    Mermilliod J.-C., Mayor M., Udry S.
*   <Astron. Astrophys. 498, 949 (2009)>
*   =2009A&A...498..949M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table8.dat'	! Orbital elements

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

      character*9   Cluster     ! Cluster designation
      integer*4     WEBDA       ! Star designation (WEBDA)
      real*8        P0          ! (d) Orbital period
      real*8        T0          ! (d) T at periastron - 240000.
      real*8        gamma       ! (km/s) Systemic radial velocity
      real*4        e           ! Eccentricity
      real*4        Omega       ! (deg) ? Angle omega
      real*4        K1          ! (km/s) Amplitude (A)
      real*4        K2          ! (km/s) ? Amplitude (B)
      real*8        f_m         ! (solMass) Mass function
      real*8        asini       ! (Gm) semi major axis
      real*4        O_C         ! (km/s) sigma (observed - calculated)
      integer*4     Nobs        ! Number of observations
      real*8        e_P0        ! (d) rms uncertainty on P0
      real*8        e_T0        ! (d) rms uncertainty on T0
      real*4        e_gamma     ! (km/s) rms uncertainty on gamma
      real*4        e_e         ! ? rms uncertainty on eccentricity
      real*4        e_Omega     ! (deg) ? rms uncertainty on omega
      real*4        e_K1        ! (km/s) rms uncertainty on K1
      real*4        e_K2        ! (km/s) ? rms uncertainty on K2
      real*8        e_f_m       ! (solMass) ? rms uncertainty on f(m)
      real*8        e_asini     ! (Gm) rms uncertainty on asini
      real*4        e_O_C       ! (km/s) ? rms uncertainty on O-C

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

C  Declarations for 'table11.dat'	! Mean radial and rotational velocities

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*9   Cluster_1   ! Cluster designation
      integer*4     WEBDA_1     ! Star designation (WEBDA)
      character*11  OName       ! Alternate designation
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      real*4        DEs         ! (arcsec) Declination (J2000)
      real*8        RV          ! (km/s) Mean radial velocity
      real*4        e_RV        ! (km/s) Error on the radial velocity
      real*4        sigma       ! (km/s) RMS on velocity
      real*4        E_I         ! ? External/Internal error ratio
      integer*4     N           ! Number of measurements
      real*4        Vsini       ! (km/s) ? Rotational velocity
      real*4        e_Vsini     ! (km/s) ? Error on Vsini
      integer*4     DeltaT      ! (d) ? Time interval spent by the observations
      real*4        Pchi2       ! ? Probability of variability P(chi2)
      character*8   Notes       ! Membership, or duplicity

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

C  Declarations for 'table10.dat'	! Individual radial velocities

      integer*4 nr__2
      parameter (nr__2=8149)	! Number of records
      character*80 ar__2  	! Full-size record

      character*9   Cluster_2   ! Cluster designation
      integer*4     WEBDA_2     ! Star designation (WEBDA)
      real*8        HJD         ! Heliocentric Julian date
      character*1   Comp        ! [ABCVS] Component in SB2
      real*8        RV_1        ! (km/s) Radial velocity
      real*4        e_RV_1      ! (km/s) Error on the radial velocity
      character*10  Obs_Date    ! ("DD/MM/YYYY") Date of observation
      integer*4     Integ       ! (s) ? Integration length
      integer*4     Counts      ! (ct) ? Number of counts
      character*3   Obs         ! Observatory

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

C  Loading file 'table8.dat'	! Orbital elements

C  Format for file interpretation

    1 format(
     +  A9,3X,I4,2X,F11.6,2X,F9.3,1X,F7.2,2X,F5.3,2X,F6.2,2X,F5.2,2X,
     +  F5.2,2X,F8.6,2X,F8.4,3X,F4.2,3X,I2,1X,F10.6,1X,F7.3,1X,F4.2,
     +  1X,F5.3,1X,F5.2,1X,F4.2,1X,F4.2,2X,F8.6,1X,F8.5,2X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,61
        read(1,'(A182)')ar__
        read(ar__,1)
     +  Cluster,WEBDA,P0,T0,gamma,e,Omega,K1,K2,f_m,asini,O_C,Nobs,
     +  e_P0,e_T0,e_gamma,e_e,e_Omega,e_K1,e_K2,e_f_m,e_asini,e_O_C
        if(ar__(58:63) .EQ. '') Omega = rNULL__
        if(ar__(73:77) .EQ. '') K2 = rNULL__
        if(ar__(135:139) .EQ. '') e_e = rNULL__
        if(ar__(141:145) .EQ. '') e_Omega = rNULL__
        if(ar__(152:155) .EQ. '') e_K2 = rNULL__
        if(ar__(158:165) .EQ. '') e_f_m = rNULL__
        if(ar__(177:182) .EQ. '') e_O_C = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Cluster,WEBDA,P0,T0,gamma,e,Omega,K1,K2,f_m,asini,O_C,Nobs,
     +  e_P0,e_T0,e_gamma,e_e,e_Omega,e_K1,e_K2,e_f_m,e_asini,e_O_C
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table11.dat'	! Mean radial and rotational velocities

C  Format for file interpretation

    2 format(
     +  A9,3X,I4,2X,A11,1X,I2,1X,I2,1X,F5.2,2X,A1,I2,1X,I2,1X,F4.1,1X,
     +  F7.2,2X,F5.2,2X,F5.2,2X,F5.2,3X,I2,2X,F4.1,2X,F4.1,2X,I4,2X,
     +  F5.3,2X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table11.dat')
      write(6,*) '....Loading file: table11.dat'
      do i__=1,1259
        read(1,'(A123)')ar__1
        read(ar__1,2)
     +  Cluster_1,WEBDA_1,OName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RV,e_RV,
     +  sigma,E_I,N,Vsini,e_Vsini,DeltaT,Pchi2,Notes
        if(ar__1(79:83) .EQ. '') E_I = rNULL__
        if(ar__1(91:94) .EQ. '') Vsini = rNULL__
        if(ar__1(97:100) .EQ. '') e_Vsini = rNULL__
        if(ar__1(103:106) .EQ. '') DeltaT = iNULL__
        if(ar__1(109:113) .EQ. '') Pchi2 = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,2)
     +  Cluster_1,WEBDA_1,OName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RV,e_RV,
     +  sigma,E_I,N,Vsini,e_Vsini,DeltaT,Pchi2,Notes
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table10.dat'	! Individual radial velocities

C  Format for file interpretation

    3 format(
     +  A9,3X,I4,2X,F11.3,2X,A1,2X,F7.2,2X,F4.2,3X,A10,2X,I4,3X,I6,2X,
     +  A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table10.dat')
      write(6,*) '....Loading file: table10.dat'
      do i__=1,8149
        read(1,'(A80)')ar__2
        read(ar__2,3)
     +  Cluster_2,WEBDA_2,HJD,Comp,RV_1,e_RV_1,Obs_Date,Integ,Counts,
     +  Obs
        if(ar__2(63:66) .EQ. '') Integ = iNULL__
        if(ar__2(70:75) .EQ. '') Counts = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  Cluster_2,WEBDA_2,HJD,Comp,RV_1,e_RV_1,Obs_Date,Integ,Counts,
     +  Obs
c    .......End.of.Just test output...........
      end do
      close(1)

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